Class AdministrativeUnit

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class AdministrativeUnit extends DirectoryObject implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • AdministrativeUnit

      public AdministrativeUnit()
      Instantiates a new AdministrativeUnit and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static AdministrativeUnit createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a AdministrativeUnit
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. An optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith), $search.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Display name for the administrative unit. Maximum length is 256 characters. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.
      Returns:
      a String
    • getExtensions

      @Nullable public List<Extension> getExtensions()
      Gets the extensions property value. The collection of open extensions defined for this administrative unit. Nullable.
      Returns:
      a List<Extension>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class DirectoryObject
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsMemberManagementRestricted

      @Nullable public Boolean getIsMemberManagementRestricted()
      Gets the isMemberManagementRestricted property value. The isMemberManagementRestricted property
      Returns:
      a Boolean
    • getMembers

      @Nullable public List<DirectoryObject> getMembers()
      Gets the members property value. Users and groups that are members of this administrative unit. Supports $expand.
      Returns:
      a List<DirectoryObject>
    • getMembershipRule

      @Nullable public String getMembershipRule()
      Gets the membershipRule property value. The dynamic membership rule for the administrative unit. For more information about the rules you can use for dynamic administrative units and dynamic groups, see Manage rules for dynamic membership groups in Microsoft Entra ID.
      Returns:
      a String
    • getMembershipRuleProcessingState

      @Nullable public String getMembershipRuleProcessingState()
      Gets the membershipRuleProcessingState property value. Controls whether the dynamic membership rule is actively processed. Set to On to activate the dynamic membership rule, or Paused to stop updating membership dynamically.
      Returns:
      a String
    • getMembershipType

      @Nullable public String getMembershipType()
      Gets the membershipType property value. Indicates the membership type for the administrative unit. The possible values are: dynamic, assigned. If not set, the default value is null and the default behavior is assigned.
      Returns:
      a String
    • getScopedRoleMembers

      @Nullable public List<ScopedRoleMembership> getScopedRoleMembers()
      Gets the scopedRoleMembers property value. Scoped-role members of this administrative unit.
      Returns:
      a List<ScopedRoleMembership>
    • getVisibility

      @Nullable public String getVisibility()
      Gets the visibility property value. Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership. If not set, the default value is null and the default behavior is public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit.
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class DirectoryObject
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. An optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith), $search.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Display name for the administrative unit. Maximum length is 256 characters. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.
      Parameters:
      value - Value to set for the displayName property.
    • setExtensions

      public void setExtensions(@Nullable List<Extension> value)
      Sets the extensions property value. The collection of open extensions defined for this administrative unit. Nullable.
      Parameters:
      value - Value to set for the extensions property.
    • setIsMemberManagementRestricted

      public void setIsMemberManagementRestricted(@Nullable Boolean value)
      Sets the isMemberManagementRestricted property value. The isMemberManagementRestricted property
      Parameters:
      value - Value to set for the isMemberManagementRestricted property.
    • setMembers

      public void setMembers(@Nullable List<DirectoryObject> value)
      Sets the members property value. Users and groups that are members of this administrative unit. Supports $expand.
      Parameters:
      value - Value to set for the members property.
    • setMembershipRule

      public void setMembershipRule(@Nullable String value)
      Sets the membershipRule property value. The dynamic membership rule for the administrative unit. For more information about the rules you can use for dynamic administrative units and dynamic groups, see Manage rules for dynamic membership groups in Microsoft Entra ID.
      Parameters:
      value - Value to set for the membershipRule property.
    • setMembershipRuleProcessingState

      public void setMembershipRuleProcessingState(@Nullable String value)
      Sets the membershipRuleProcessingState property value. Controls whether the dynamic membership rule is actively processed. Set to On to activate the dynamic membership rule, or Paused to stop updating membership dynamically.
      Parameters:
      value - Value to set for the membershipRuleProcessingState property.
    • setMembershipType

      public void setMembershipType(@Nullable String value)
      Sets the membershipType property value. Indicates the membership type for the administrative unit. The possible values are: dynamic, assigned. If not set, the default value is null and the default behavior is assigned.
      Parameters:
      value - Value to set for the membershipType property.
    • setScopedRoleMembers

      public void setScopedRoleMembers(@Nullable List<ScopedRoleMembership> value)
      Sets the scopedRoleMembers property value. Scoped-role members of this administrative unit.
      Parameters:
      value - Value to set for the scopedRoleMembers property.
    • setVisibility

      public void setVisibility(@Nullable String value)
      Sets the visibility property value. Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership. If not set, the default value is null and the default behavior is public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit.
      Parameters:
      value - Value to set for the visibility property.