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

MicrosoftGraphDirectoryRole Class

public final class MicrosoftGraphDirectoryRole
extends MicrosoftGraphDirectoryObjectInner

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

Constructor Summary

Constructor Description
MicrosoftGraphDirectoryRole()

Creates an instance of MicrosoftGraphDirectoryRole class.

Method Summary

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

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

String description()

Get the description property: The description for the directory role.

String displayName()

Get the displayName property: The display name for the directory role.

static MicrosoftGraphDirectoryRole fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDirectoryRole from the JsonReader.

List<MicrosoftGraphDirectoryObjectInner> members()

Get the members property: Users that are members of this directory role.

String roleTemplateId()

Get the roleTemplateId property: The id of the directoryRoleTemplate that this role is based on.

List<MicrosoftGraphScopedRoleMembership> scopedMembers()

Get the scopedMembers property: The scopedMembers property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphDirectoryRole withAdditionalProperties(Map<String,Object> additionalProperties)

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

MicrosoftGraphDirectoryRole withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphDirectoryRole withDescription(String description)

Set the description property: The description for the directory role.

MicrosoftGraphDirectoryRole withDisplayName(String displayName)

Set the displayName property: The display name for the directory role.

MicrosoftGraphDirectoryRole withId(String id)

Set the id property: Read-only.

MicrosoftGraphDirectoryRole withMembers(List<MicrosoftGraphDirectoryObjectInner> members)

Set the members property: Users that are members of this directory role.

MicrosoftGraphDirectoryRole withRoleTemplateId(String roleTemplateId)

Set the roleTemplateId property: The id of the directoryRoleTemplate that this role is based on.

MicrosoftGraphDirectoryRole withScopedMembers(List<MicrosoftGraphScopedRoleMembership> scopedMembers)

Set the scopedMembers property: The scopedMembers property.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDirectoryRole

public MicrosoftGraphDirectoryRole()

Creates an instance of MicrosoftGraphDirectoryRole 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:

MicrosoftGraphDirectoryRole.additionalProperties()

Returns:

the additionalProperties value.

description

public String description()

Get the description property: The description for the directory role. Read-only.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The display name for the directory role. Read-only.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphDirectoryRole fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDirectoryRole from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

members

public List members()

Get the members property: Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable.

Returns:

the members value.

roleTemplateId

public String roleTemplateId()

Get the roleTemplateId property: The id of the directoryRoleTemplate that this role is based on. The property must be specified when activating a directory role in a tenant with a POST operation. After the directory role has been activated, the property is read only.

Returns:

the roleTemplateId value.

scopedMembers

public List scopedMembers()

Get the scopedMembers property: The scopedMembers property.

Returns:

the scopedMembers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphDirectoryRole.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphDirectoryRole.validate()

withAdditionalProperties

public MicrosoftGraphDirectoryRole 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:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDirectoryRole object itself.

withDeletedDateTime

public MicrosoftGraphDirectoryRole withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphDirectoryRole.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDescription

public MicrosoftGraphDirectoryRole withDescription(String description)

Set the description property: The description for the directory role. Read-only.

Parameters:

description - the description value to set.

Returns:

the MicrosoftGraphDirectoryRole object itself.

withDisplayName

public MicrosoftGraphDirectoryRole withDisplayName(String displayName)

Set the displayName property: The display name for the directory role. Read-only.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphDirectoryRole object itself.

withId

public MicrosoftGraphDirectoryRole withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphDirectoryRole.withId(String id)

Parameters:

id

withMembers

public MicrosoftGraphDirectoryRole withMembers(List members)

Set the members property: Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable.

Parameters:

members - the members value to set.

Returns:

the MicrosoftGraphDirectoryRole object itself.

withRoleTemplateId

public MicrosoftGraphDirectoryRole withRoleTemplateId(String roleTemplateId)

Set the roleTemplateId property: The id of the directoryRoleTemplate that this role is based on. The property must be specified when activating a directory role in a tenant with a POST operation. After the directory role has been activated, the property is read only.

Parameters:

roleTemplateId - the roleTemplateId value to set.

Returns:

the MicrosoftGraphDirectoryRole object itself.

withScopedMembers

public MicrosoftGraphDirectoryRole withScopedMembers(List scopedMembers)

Set the scopedMembers property: The scopedMembers property.

Parameters:

scopedMembers - the scopedMembers value to set.

Returns:

the MicrosoftGraphDirectoryRole object itself.

Applies to