Class MicrosoftGraphAdministrativeUnit


public final class MicrosoftGraphAdministrativeUnit extends MicrosoftGraphDirectoryObjectInner
administrativeUnit

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

  • Constructor Details

    • MicrosoftGraphAdministrativeUnit

      public MicrosoftGraphAdministrativeUnit()
      Creates an instance of MicrosoftGraphAdministrativeUnit class.
  • Method Details

    • description

      public String description()
      Get the description property: An optional description for the administrative unit.
      Returns:
      the description value.
    • withDescription

      public MicrosoftGraphAdministrativeUnit withDescription(String description)
      Set the description property: An optional description for the administrative unit.
      Parameters:
      description - the description value to set.
      Returns:
      the MicrosoftGraphAdministrativeUnit object itself.
    • displayName

      public String displayName()
      Get the displayName property: Display name for the administrative unit.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphAdministrativeUnit withDisplayName(String displayName)
      Set the displayName property: Display name for the administrative unit.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphAdministrativeUnit object itself.
    • visibility

      public String 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

      public MicrosoftGraphAdministrativeUnit withVisibility(String visibility)
      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

      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

      public List<MicrosoftGraphScopedRoleMembership> 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

      public List<MicrosoftGraphExtension> extensions()
      Get the extensions property: The extensions property.
      Returns:
      the extensions value.
    • withExtensions

      public MicrosoftGraphAdministrativeUnit withExtensions(List<MicrosoftGraphExtension> extensions)
      Set the extensions property: The extensions property.
      Parameters:
      extensions - the extensions value to set.
      Returns:
      the MicrosoftGraphAdministrativeUnit 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 class MicrosoftGraphDirectoryObjectInner
      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:
      withAdditionalProperties in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphAdministrativeUnit object itself.
    • withDeletedDateTime

      public MicrosoftGraphAdministrativeUnit withDeletedDateTime(OffsetDateTime deletedDateTime)
      Set the deletedDateTime property: The deletedDateTime property.
      Overrides:
      withDeletedDateTime in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      deletedDateTime - the deletedDateTime value to set.
      Returns:
      the MicrosoftGraphDirectoryObjectInner object itself.
    • withId

      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphDirectoryObjectInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.