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

MicrosoftGraphDirectoryRoleTemplate Class

public final class MicrosoftGraphDirectoryRoleTemplate
extends MicrosoftGraphDirectoryObjectInner

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

Constructor Summary

Constructor Description
MicrosoftGraphDirectoryRoleTemplate()

Creates an instance of MicrosoftGraphDirectoryRoleTemplate 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 to set for the directory role.

String displayName()

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

static MicrosoftGraphDirectoryRoleTemplate fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDirectoryRoleTemplate from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphDirectoryRoleTemplate withAdditionalProperties(Map<String,Object> additionalProperties)

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

MicrosoftGraphDirectoryRoleTemplate withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphDirectoryRoleTemplate withDescription(String description)

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

MicrosoftGraphDirectoryRoleTemplate withDisplayName(String displayName)

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

MicrosoftGraphDirectoryRoleTemplate withId(String id)

Set the id property: Read-only.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDirectoryRoleTemplate

public MicrosoftGraphDirectoryRoleTemplate()

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

MicrosoftGraphDirectoryRoleTemplate.additionalProperties()

Returns:

the additionalProperties value.

description

public String description()

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

Returns:

the description value.

displayName

public String displayName()

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

Returns:

the displayName value.

fromJson

public static MicrosoftGraphDirectoryRoleTemplate fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDirectoryRoleTemplate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphDirectoryRoleTemplate.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphDirectoryRoleTemplate.validate()

withAdditionalProperties

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

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDirectoryRoleTemplate object itself.

withDeletedDateTime

public MicrosoftGraphDirectoryRoleTemplate withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphDirectoryRoleTemplate.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDescription

public MicrosoftGraphDirectoryRoleTemplate withDescription(String description)

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

Parameters:

description - the description value to set.

Returns:

the MicrosoftGraphDirectoryRoleTemplate object itself.

withDisplayName

public MicrosoftGraphDirectoryRoleTemplate withDisplayName(String displayName)

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

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphDirectoryRoleTemplate object itself.

withId

public MicrosoftGraphDirectoryRoleTemplate withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphDirectoryRoleTemplate.withId(String id)

Parameters:

id

Applies to