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