Class MicrosoftGraphAdministrativeUnit
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAdministrativeUnit
administrativeUnit
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 MicrosoftGraphAdministrativeUnit class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Represents an Azure Active Directory object.Get the description property: An optional description for the administrative unit.Get the displayName property: Display name for the administrative unit.Get the extensions property: The extensions property.members()Get the members property: Users and groups that are members of this Adminsitrative Unit.Get the scopedRoleMembers property: Scoped-role members of this Administrative Unit.voidvalidate()Validates the instance.Get the visibility property: Controls whether the administrative unit and its members are hidden or public.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: An optional description for the administrative unit.withDisplayName(String displayName) Set the displayName property: Display name for the administrative unit.withExtensions(List<MicrosoftGraphExtension> extensions) Set the extensions property: The extensions property.Set the id property: Read-only.Set the members property: Users and groups that are members of this Adminsitrative Unit.withScopedRoleMembers(List<MicrosoftGraphScopedRoleMembership> scopedRoleMembers) Set the scopedRoleMembers property: Scoped-role members of this Administrative Unit.withVisibility(String visibility) Set the visibility property: Controls whether the administrative unit and its members are hidden or public.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
-
MicrosoftGraphAdministrativeUnit
public MicrosoftGraphAdministrativeUnit()Creates an instance of MicrosoftGraphAdministrativeUnit class.
-
-
Method Details
-
description
Get the description property: An optional description for the administrative unit.- Returns:
- the description value.
-
withDescription
Set the description property: An optional description for the administrative unit.- Parameters:
description- the description value to set.- Returns:
- the MicrosoftGraphAdministrativeUnit object itself.
-
displayName
Get the displayName property: Display name for the administrative unit.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name for the administrative unit.- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphAdministrativeUnit object itself.
-
visibility
Get the visibility property: Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the adminstrative unit.- Returns:
- the visibility value.
-
withVisibility
Set the visibility property: Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the adminstrative unit.- Parameters:
visibility- the visibility value to set.- Returns:
- the MicrosoftGraphAdministrativeUnit object itself.
-
members
Get the members property: Users and groups that are members of this Adminsitrative Unit. HTTP Methods: GET (list members), POST (add members), DELETE (remove members).- Returns:
- the members value.
-
withMembers
public MicrosoftGraphAdministrativeUnit withMembers(List<MicrosoftGraphDirectoryObjectInner> members) Set the members property: Users and groups that are members of this Adminsitrative Unit. HTTP Methods: GET (list members), POST (add members), DELETE (remove members).- Parameters:
members- the members value to set.- Returns:
- the MicrosoftGraphAdministrativeUnit object itself.
-
scopedRoleMembers
Get the scopedRoleMembers property: Scoped-role members of this Administrative Unit. HTTP Methods: GET (list scopedRoleMemberships), POST (add scopedRoleMembership), DELETE (remove scopedRoleMembership).- Returns:
- the scopedRoleMembers value.
-
withScopedRoleMembers
public MicrosoftGraphAdministrativeUnit withScopedRoleMembers(List<MicrosoftGraphScopedRoleMembership> scopedRoleMembers) Set the scopedRoleMembers property: Scoped-role members of this Administrative Unit. HTTP Methods: GET (list scopedRoleMemberships), POST (add scopedRoleMembership), DELETE (remove scopedRoleMembership).- Parameters:
scopedRoleMembers- the scopedRoleMembers value to set.- Returns:
- the MicrosoftGraphAdministrativeUnit object itself.
-
extensions
Get the extensions property: The extensions property.- Returns:
- the extensions value.
-
withExtensions
Set the extensions property: The extensions property.- Parameters:
extensions- the extensions value to set.- Returns:
- the MicrosoftGraphAdministrativeUnit 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 MicrosoftGraphAdministrativeUnit 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 MicrosoftGraphAdministrativeUnit 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.
-