Class MicrosoftGraphDirectoryRole
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryRole
directoryRole
Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphDirectoryRole class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Represents an Azure Active Directory object.Get the description property: The description for the directory role.Get the displayName property: The display name for the directory role.members()Get the members property: Users that are members of this directory role.Get the roleTemplateId property: The id of the directoryRoleTemplate that this role is based on.Get the scopedMembers property: The scopedMembers property.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: Represents an Azure Active Directory object.withDeletedDateTime(OffsetDateTime deletedDateTime) Set the deletedDateTime property: The deletedDateTime property.withDescription(String description) Set the description property: The description for the directory role.withDisplayName(String displayName) Set the displayName property: The display name for the directory role.Set the id property: Read-only.Set the members property: Users that are members of this directory role.withRoleTemplateId(String roleTemplateId) Set the roleTemplateId property: The id of the directoryRoleTemplate that this role is based on.withScopedMembers(List<MicrosoftGraphScopedRoleMembership> scopedMembers) Set the scopedMembers property: The scopedMembers property.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
deletedDateTimeMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphDirectoryRole
public MicrosoftGraphDirectoryRole()Creates an instance of MicrosoftGraphDirectoryRole class.
-
-
Method Details
-
description
Get the description property: The description for the directory role. Read-only.- Returns:
- the description value.
-
withDescription
Set the description property: The description for the directory role. Read-only.- Parameters:
description- the description value to set.- Returns:
- the MicrosoftGraphDirectoryRole object itself.
-
displayName
Get the displayName property: The display name for the directory role. Read-only.- Returns:
- the displayName value.
-
withDisplayName
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.
-
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.
-
withRoleTemplateId
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.
-
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.
-
withMembers
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.
-
scopedMembers
Get the scopedMembers property: The scopedMembers property.- Returns:
- the scopedMembers value.
-
withScopedMembers
public MicrosoftGraphDirectoryRole withScopedMembers(List<MicrosoftGraphScopedRoleMembership> scopedMembers) Set the scopedMembers property: The scopedMembers property.- Parameters:
scopedMembers- the scopedMembers value to set.- Returns:
- the MicrosoftGraphDirectoryRole object itself.
-
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:
additionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Returns:
- the additionalProperties value.
-
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:
withAdditionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphDirectoryRole object itself.
-
withDeletedDateTime
Set the deletedDateTime property: The deletedDateTime property.- Overrides:
withDeletedDateTimein classMicrosoftGraphDirectoryObjectInner- Parameters:
deletedDateTime- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphDirectoryObjectInner object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphDirectoryObjectInner- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphDirectoryObjectInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-