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

MicrosoftGraphDelegatedPermissionClassification Class

public final class MicrosoftGraphDelegatedPermissionClassification
extends MicrosoftGraphEntity

delegatedPermissionClassification.

Constructor Summary

Constructor Description
MicrosoftGraphDelegatedPermissionClassification()

Creates an instance of MicrosoftGraphDelegatedPermissionClassification class.

Method Summary

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

Get the additionalProperties property: delegatedPermissionClassification.

MicrosoftGraphPermissionClassificationType classification()

Get the classification property: permissionClassificationType.

static MicrosoftGraphDelegatedPermissionClassification fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDelegatedPermissionClassification from the JsonReader.

String permissionId()

Get the permissionId property: The unique identifier (id) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal.

String permissionName()

Get the permissionName property: The claim value (value) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphDelegatedPermissionClassification withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: delegatedPermissionClassification.

MicrosoftGraphDelegatedPermissionClassification withClassification(MicrosoftGraphPermissionClassificationType classification)

Set the classification property: permissionClassificationType.

MicrosoftGraphDelegatedPermissionClassification withId(String id)

Set the id property: Read-only.

MicrosoftGraphDelegatedPermissionClassification withPermissionId(String permissionId)

Set the permissionId property: The unique identifier (id) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal.

MicrosoftGraphDelegatedPermissionClassification withPermissionName(String permissionName)

Set the permissionName property: The claim value (value) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDelegatedPermissionClassification

public MicrosoftGraphDelegatedPermissionClassification()

Creates an instance of MicrosoftGraphDelegatedPermissionClassification class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: delegatedPermissionClassification.

Overrides:

MicrosoftGraphDelegatedPermissionClassification.additionalProperties()

Returns:

the additionalProperties value.

classification

public MicrosoftGraphPermissionClassificationType classification()

Get the classification property: permissionClassificationType.

Returns:

the classification value.

fromJson

public static MicrosoftGraphDelegatedPermissionClassification fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDelegatedPermissionClassification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

permissionId

public String permissionId()

Get the permissionId property: The unique identifier (id) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal. Required on create. Does not support $filter.

Returns:

the permissionId value.

permissionName

public String permissionName()

Get the permissionName property: The claim value (value) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal. Does not support $filter.

Returns:

the permissionName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphDelegatedPermissionClassification.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphDelegatedPermissionClassification.validate()

withAdditionalProperties

public MicrosoftGraphDelegatedPermissionClassification withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: delegatedPermissionClassification.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDelegatedPermissionClassification object itself.

withClassification

public MicrosoftGraphDelegatedPermissionClassification withClassification(MicrosoftGraphPermissionClassificationType classification)

Set the classification property: permissionClassificationType.

Parameters:

classification - the classification value to set.

Returns:

the MicrosoftGraphDelegatedPermissionClassification object itself.

withId

public MicrosoftGraphDelegatedPermissionClassification withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphDelegatedPermissionClassification.withId(String id)

Parameters:

id

withPermissionId

public MicrosoftGraphDelegatedPermissionClassification withPermissionId(String permissionId)

Set the permissionId property: The unique identifier (id) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal. Required on create. Does not support $filter.

Parameters:

permissionId - the permissionId value to set.

Returns:

the MicrosoftGraphDelegatedPermissionClassification object itself.

withPermissionName

public MicrosoftGraphDelegatedPermissionClassification withPermissionName(String permissionName)

Set the permissionName property: The claim value (value) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal. Does not support $filter.

Parameters:

permissionName - the permissionName value to set.

Returns:

the MicrosoftGraphDelegatedPermissionClassification object itself.

Applies to