你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphResourceSpecificPermissionGrant Class

public final class MicrosoftGraphResourceSpecificPermissionGrant
extends MicrosoftGraphDirectoryObjectInner

resourceSpecificPermissionGrant Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Constructor Summary

Constructor Description
MicrosoftGraphResourceSpecificPermissionGrant()

Creates an instance of MicrosoftGraphResourceSpecificPermissionGrant class.

Method Summary

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

Get the additionalProperties property: Represents an Azure Active Directory object.

String clientAppId()

Get the clientAppId property: The clientAppId property.

String clientId()

Get the clientId property: The clientId property.

static MicrosoftGraphResourceSpecificPermissionGrant fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphResourceSpecificPermissionGrant from the JsonReader.

String permission()

Get the permission property: The permission property.

String permissionType()

Get the permissionType property: The permissionType property.

String resourceAppId()

Get the resourceAppId property: The resourceAppId property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphResourceSpecificPermissionGrant withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object.

MicrosoftGraphResourceSpecificPermissionGrant withClientAppId(String clientAppId)

Set the clientAppId property: The clientAppId property.

MicrosoftGraphResourceSpecificPermissionGrant withClientId(String clientId)

Set the clientId property: The clientId property.

MicrosoftGraphResourceSpecificPermissionGrant withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphResourceSpecificPermissionGrant withId(String id)

Set the id property: Read-only.

MicrosoftGraphResourceSpecificPermissionGrant withPermission(String permission)

Set the permission property: The permission property.

MicrosoftGraphResourceSpecificPermissionGrant withPermissionType(String permissionType)

Set the permissionType property: The permissionType property.

MicrosoftGraphResourceSpecificPermissionGrant withResourceAppId(String resourceAppId)

Set the resourceAppId property: The resourceAppId property.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphResourceSpecificPermissionGrant

public MicrosoftGraphResourceSpecificPermissionGrant()

Creates an instance of MicrosoftGraphResourceSpecificPermissionGrant class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

MicrosoftGraphResourceSpecificPermissionGrant.additionalProperties()

Returns:

the additionalProperties value.

clientAppId

public String clientAppId()

Get the clientAppId property: The clientAppId property.

Returns:

the clientAppId value.

clientId

public String clientId()

Get the clientId property: The clientId property.

Returns:

the clientId value.

fromJson

public static MicrosoftGraphResourceSpecificPermissionGrant fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphResourceSpecificPermissionGrant from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphResourceSpecificPermissionGrant 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 MicrosoftGraphResourceSpecificPermissionGrant.

permission

public String permission()

Get the permission property: The permission property.

Returns:

the permission value.

permissionType

public String permissionType()

Get the permissionType property: The permissionType property.

Returns:

the permissionType value.

resourceAppId

public String resourceAppId()

Get the resourceAppId property: The resourceAppId property.

Returns:

the resourceAppId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphResourceSpecificPermissionGrant.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphResourceSpecificPermissionGrant.validate()

withAdditionalProperties

public MicrosoftGraphResourceSpecificPermissionGrant withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

MicrosoftGraphResourceSpecificPermissionGrant.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphResourceSpecificPermissionGrant object itself.

withClientAppId

public MicrosoftGraphResourceSpecificPermissionGrant withClientAppId(String clientAppId)

Set the clientAppId property: The clientAppId property.

Parameters:

clientAppId - the clientAppId value to set.

Returns:

the MicrosoftGraphResourceSpecificPermissionGrant object itself.

withClientId

public MicrosoftGraphResourceSpecificPermissionGrant withClientId(String clientId)

Set the clientId property: The clientId property.

Parameters:

clientId - the clientId value to set.

Returns:

the MicrosoftGraphResourceSpecificPermissionGrant object itself.

withDeletedDateTime

public MicrosoftGraphResourceSpecificPermissionGrant withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphResourceSpecificPermissionGrant.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withId

public MicrosoftGraphResourceSpecificPermissionGrant withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphResourceSpecificPermissionGrant.withId(String id)

Parameters:

id

withPermission

public MicrosoftGraphResourceSpecificPermissionGrant withPermission(String permission)

Set the permission property: The permission property.

Parameters:

permission - the permission value to set.

Returns:

the MicrosoftGraphResourceSpecificPermissionGrant object itself.

withPermissionType

public MicrosoftGraphResourceSpecificPermissionGrant withPermissionType(String permissionType)

Set the permissionType property: The permissionType property.

Parameters:

permissionType - the permissionType value to set.

Returns:

the MicrosoftGraphResourceSpecificPermissionGrant object itself.

withResourceAppId

public MicrosoftGraphResourceSpecificPermissionGrant withResourceAppId(String resourceAppId)

Set the resourceAppId property: The resourceAppId property.

Parameters:

resourceAppId - the resourceAppId value to set.

Returns:

the MicrosoftGraphResourceSpecificPermissionGrant object itself.

Applies to