MicrosoftGraphResourceAccess Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphResourceAccess

Implements

public final class MicrosoftGraphResourceAccess
implements JsonSerializable<MicrosoftGraphResourceAccess>

resourceAccess.

Constructor Summary

Constructor Description
MicrosoftGraphResourceAccess()

Creates an instance of MicrosoftGraphResourceAccess class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: resourceAccess.

static MicrosoftGraphResourceAccess fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphResourceAccess from the JsonReader.

UUID id()

Get the id property: The unique identifier for one of the oauth2PermissionScopes or appRole instances that the resource application exposes.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Specifies whether the id property references an oauth2PermissionScopes or an appRole.

void validate()

Validates the instance.

MicrosoftGraphResourceAccess withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: resourceAccess.

MicrosoftGraphResourceAccess withId(UUID id)

Set the id property: The unique identifier for one of the oauth2PermissionScopes or appRole instances that the resource application exposes.

MicrosoftGraphResourceAccess withType(String type)

Set the type property: Specifies whether the id property references an oauth2PermissionScopes or an appRole.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphResourceAccess

public MicrosoftGraphResourceAccess()

Creates an instance of MicrosoftGraphResourceAccess class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: resourceAccess.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphResourceAccess fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphResourceAccess from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphResourceAccess if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphResourceAccess.

id

public UUID id()

Get the id property: The unique identifier for one of the oauth2PermissionScopes or appRole instances that the resource application exposes.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Specifies whether the id property references an oauth2PermissionScopes or an appRole. Possible values are Scope or Role.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphResourceAccess withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: resourceAccess.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphResourceAccess object itself.

withId

public MicrosoftGraphResourceAccess withId(UUID id)

Set the id property: The unique identifier for one of the oauth2PermissionScopes or appRole instances that the resource application exposes.

Parameters:

id - the id value to set.

Returns:

the MicrosoftGraphResourceAccess object itself.

withType

public MicrosoftGraphResourceAccess withType(String type)

Set the type property: Specifies whether the id property references an oauth2PermissionScopes or an appRole. Possible values are Scope or Role.

Parameters:

type - the type value to set.

Returns:

the MicrosoftGraphResourceAccess object itself.

Applies to