Package com.microsoft.graph.models
Class UnifiedRoleManagementPolicy
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.UnifiedRoleManagementPolicy
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class UnifiedRoleManagementPolicy
extends Entity
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 UnifiedRoleManagementPolicy
createFromDiscriminatorValue
(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 effectiveRules property value.The deserialization information for the current modelGets the isOrganizationDefault property value.Gets the lastModifiedBy property value.Gets the lastModifiedDateTime property value.getRules()
Gets the rules property value.Gets the scopeId property value.Gets the scopeType property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setDescription
(String value) Sets the description property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the effectiveRules property value.void
setIsOrganizationDefault
(Boolean value) Sets the isOrganizationDefault property value.void
setLastModifiedBy
(Identity value) Sets the lastModifiedBy property value.void
Sets the lastModifiedDateTime property value.void
Sets the rules property value.void
setScopeId
(String value) Sets the scopeId property value.void
setScopeType
(String value) Sets the scopeType property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
UnifiedRoleManagementPolicy
public UnifiedRoleManagementPolicy()Instantiates a newUnifiedRoleManagementPolicy
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static UnifiedRoleManagementPolicy 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
UnifiedRoleManagementPolicy
-
getDescription
Gets the description property value. Description for the policy.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. Display name for the policy.- Returns:
- a
String
-
getEffectiveRules
Gets the effectiveRules property value. The list of effective rules like approval rules and expiration rules evaluated based on inherited referenced rules. For example, if there is a tenant-wide policy to enforce enabling an approval rule, the effective rule will be to enable approval even if the policy has a rule to disable approval. Supports $expand.- Returns:
- a
List<UnifiedRoleManagementPolicyRule>
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsOrganizationDefault
Gets the isOrganizationDefault property value. This can only be set to true for a single tenant-wide policy which will apply to all scopes and roles. Set the scopeId to / and scopeType to Directory. Supports $filter (eq, ne).- Returns:
- a
Boolean
-
getLastModifiedBy
Gets the lastModifiedBy property value. The identity who last modified the role setting.- Returns:
- a
Identity
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. The time when the role setting was last modified.- Returns:
- a
OffsetDateTime
-
getRules
Gets the rules property value. The collection of rules like approval rules and expiration rules. Supports $expand.- Returns:
- a
List<UnifiedRoleManagementPolicyRule>
-
getScopeId
Gets the scopeId property value. The identifier of the scope where the policy is created. Can be / for the tenant or a group ID. Required.- Returns:
- a
String
-
getScopeType
Gets the scopeType property value. The type of the scope where the policy is created. One of Directory, DirectoryRole, Group. Required.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setDescription
Sets the description property value. Description for the policy.- Parameters:
value
- Value to set for the description property.
-
setDisplayName
Sets the displayName property value. Display name for the policy.- Parameters:
value
- Value to set for the displayName property.
-
setEffectiveRules
Sets the effectiveRules property value. The list of effective rules like approval rules and expiration rules evaluated based on inherited referenced rules. For example, if there is a tenant-wide policy to enforce enabling an approval rule, the effective rule will be to enable approval even if the policy has a rule to disable approval. Supports $expand.- Parameters:
value
- Value to set for the effectiveRules property.
-
setIsOrganizationDefault
Sets the isOrganizationDefault property value. This can only be set to true for a single tenant-wide policy which will apply to all scopes and roles. Set the scopeId to / and scopeType to Directory. Supports $filter (eq, ne).- Parameters:
value
- Value to set for the isOrganizationDefault property.
-
setLastModifiedBy
Sets the lastModifiedBy property value. The identity who last modified the role setting.- Parameters:
value
- Value to set for the lastModifiedBy property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. The time when the role setting was last modified.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setRules
Sets the rules property value. The collection of rules like approval rules and expiration rules. Supports $expand.- Parameters:
value
- Value to set for the rules property.
-
setScopeId
Sets the scopeId property value. The identifier of the scope where the policy is created. Can be / for the tenant or a group ID. Required.- Parameters:
value
- Value to set for the scopeId property.
-
setScopeType
Sets the scopeType property value. The type of the scope where the policy is created. One of Directory, DirectoryRole, Group. Required.- Parameters:
value
- Value to set for the scopeType property.
-