Package com.microsoft.graph.models
Class AdministrativeUnit
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AdministrativeUnitcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the description property value.Gets the displayName property value.Gets the extensions property value.The deserialization information for the current modelGets the isMemberManagementRestricted property value.Gets the members property value.Gets the membershipRule property value.Gets the membershipRuleProcessingState property value.Gets the membershipType property value.Gets the scopedRoleMembers property value.Gets the visibility property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetDescription(String value) Sets the description property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetExtensions(List<Extension> value) Sets the extensions property value.voidSets the isMemberManagementRestricted property value.voidsetMembers(List<DirectoryObject> value) Sets the members property value.voidsetMembershipRule(String value) Sets the membershipRule property value.voidSets the membershipRuleProcessingState property value.voidsetMembershipType(String value) Sets the membershipType property value.voidSets the scopedRoleMembers property value.voidsetVisibility(String value) Sets the visibility property value.Methods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
AdministrativeUnit
public AdministrativeUnit()Instantiates a newAdministrativeUnitand 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
Gets the description property value. An optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith), $search.- Returns:
- a
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
Gets the extensions property value. The collection of open extensions defined for this administrative unit. Nullable. -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classDirectoryObject- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsMemberManagementRestricted
Gets the isMemberManagementRestricted property value. true if members of this administrative unit should be treated as sensitive, which requires specific permissions to manage. If not set, the default value is null and the default behavior is false. Use this property to define administrative units with roles that don't inherit from tenant-level administrators, and where the management of individual member objects is limited to administrators scoped to a restricted management administrative unit. This property is immutable and can't be changed later. For more information on how to work with restricted management administrative units, see Restricted management administrative units in Microsoft Entra ID.- Returns:
- a
Boolean
-
getMembers
Gets the members property value. Users and groups that are members of this administrative unit. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
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
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
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
Gets the scopedRoleMembers property value. Scoped-role members of this administrative unit.- Returns:
- a
List<ScopedRoleMembership>
-
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classDirectoryObject- Parameters:
writer- Serialization writer to use to serialize this model
-
setDescription
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
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
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
Sets the isMemberManagementRestricted property value. true if members of this administrative unit should be treated as sensitive, which requires specific permissions to manage. If not set, the default value is null and the default behavior is false. Use this property to define administrative units with roles that don't inherit from tenant-level administrators, and where the management of individual member objects is limited to administrators scoped to a restricted management administrative unit. This property is immutable and can't be changed later. For more information on how to work with restricted management administrative units, see Restricted management administrative units in Microsoft Entra ID.- Parameters:
value- Value to set for the isMemberManagementRestricted property.
-
setMembers
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
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
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
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
Sets the scopedRoleMembers property value. Scoped-role members of this administrative unit.- Parameters:
value- Value to set for the scopedRoleMembers property.
-
setVisibility
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.
-