MicrosoftGraphDirectoryRole Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDirectoryObjectInner - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDirectoryRole
- com.
- com.
- com.
public final class MicrosoftGraphDirectoryRole
extends MicrosoftGraphDirectoryObjectInner
Represents a directory role.
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 Microsoft |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Map<String,Object> |
additionalProperties()
Get the additional |
| String |
description()
Get the description property: The description for the directory role. |
| String |
displayName()
Get the display |
|
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
|
List<Microsoft |
members()
Get the members property: Users that are members of this directory role. |
| String |
roleTemplateId()
Get the role |
|
List<Microsoft |
scopedMembers()
Get the scoped |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
|
Microsoft |
withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deleted |
|
Microsoft |
withDescription(String description)
Set the description property: The description for the directory role. |
|
Microsoft |
withDisplayName(String displayName)
Set the display |
|
Microsoft |
withId(String id)
Set the id property: Read-only. |
|
Microsoft |
withMembers(List<MicrosoftGraphDirectoryObjectInner> members)
Set the members property: Users that are members of this directory role. |
|
Microsoft |
withRoleTemplateId(String roleTemplateId)
Set the role |
|
Microsoft |
withScopedMembers(List<MicrosoftGraphScopedRoleMembership> scopedMembers)
Set the scoped |
Methods inherited from MicrosoftGraphDirectoryObjectInner
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphDirectoryRole
public MicrosoftGraphDirectoryRole()
Creates an instance of MicrosoftGraphDirectoryRole class.
Method Details
additionalProperties
public Map<String,Object> 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:
description
public String description()
Get the description property: The description for the directory role. Read-only.
Returns:
displayName
public String displayName()
Get the displayName property: The display name for the directory role. Read-only.
Returns:
fromJson
public static MicrosoftGraphDirectoryRole fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphDirectoryRole from the JsonReader.
Parameters:
Returns:
Throws:
members
public List<MicrosoftGraphDirectoryObjectInner> members()
Get the members property: Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable.
Returns:
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:
scopedMembers
public List<MicrosoftGraphScopedRoleMembership> scopedMembers()
Get the scopedMembers property: The scopedMembers property.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphDirectoryRole.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphDirectoryRole.validate()withAdditionalProperties
public MicrosoftGraphDirectoryRole withAdditionalProperties(Map<String,Object> 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:
Returns:
withDeletedDateTime
public MicrosoftGraphDirectoryRole withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: The deletedDateTime property.
Overrides:
MicrosoftGraphDirectoryRole.withDeletedDateTime(OffsetDateTime deletedDateTime)Parameters:
withDescription
public MicrosoftGraphDirectoryRole withDescription(String description)
Set the description property: The description for the directory role. Read-only.
Parameters:
Returns:
withDisplayName
public MicrosoftGraphDirectoryRole withDisplayName(String displayName)
Set the displayName property: The display name for the directory role. Read-only.
Parameters:
Returns:
withId
public MicrosoftGraphDirectoryRole withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphDirectoryRole.withId(String id)Parameters:
withMembers
public MicrosoftGraphDirectoryRole withMembers(List<MicrosoftGraphDirectoryObjectInner> members)
Set the members property: Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable.
Parameters:
Returns:
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:
Returns:
withScopedMembers
public MicrosoftGraphDirectoryRole withScopedMembers(List<MicrosoftGraphScopedRoleMembership> scopedMembers)
Set the scopedMembers property: The scopedMembers property.
Parameters:
Returns: