Package com.microsoft.graph.models
Class UnifiedRoleManagementPolicyAssignment
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.UnifiedRoleManagementPolicyAssignment
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class UnifiedRoleManagementPolicyAssignment
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newUnifiedRoleManagementPolicyAssignment
and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueThe deserialization information for the current modelGets the policy property value.Gets the policyId property value.Gets the roleDefinitionId 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
Sets the policy property value.void
setPolicyId
(String value) Sets the policyId property value.void
setRoleDefinitionId
(String value) Sets the roleDefinitionId 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
-
UnifiedRoleManagementPolicyAssignment
public UnifiedRoleManagementPolicyAssignment()Instantiates a newUnifiedRoleManagementPolicyAssignment
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static UnifiedRoleManagementPolicyAssignment 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
UnifiedRoleManagementPolicyAssignment
-
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>>
-
getPolicy
Gets the policy property value. The policy that's associated with a policy assignment. Supports $expand and a nested $expand of the rules and effectiveRules relationships for the policy.- Returns:
- a
UnifiedRoleManagementPolicy
-
getPolicyId
Gets the policyId property value. The id of the policy. Inherited from entity.- Returns:
- a
String
-
getRoleDefinitionId
Gets the roleDefinitionId property value. For Microsoft Entra roles policy, it's the identifier of the role definition object where the policy applies. For PIM for groups membership and ownership, it's either member or owner. Supports $filter (eq).- Returns:
- a
String
-
getScopeId
Gets the scopeId property value. The identifier of the scope where the policy is assigned. 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 assigned. 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 -
setPolicy
Sets the policy property value. The policy that's associated with a policy assignment. Supports $expand and a nested $expand of the rules and effectiveRules relationships for the policy.- Parameters:
value
- Value to set for the policy property.
-
setPolicyId
Sets the policyId property value. The id of the policy. Inherited from entity.- Parameters:
value
- Value to set for the policyId property.
-
setRoleDefinitionId
Sets the roleDefinitionId property value. For Microsoft Entra roles policy, it's the identifier of the role definition object where the policy applies. For PIM for groups membership and ownership, it's either member or owner. Supports $filter (eq).- Parameters:
value
- Value to set for the roleDefinitionId property.
-
setScopeId
Sets the scopeId property value. The identifier of the scope where the policy is assigned. 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 assigned. One of Directory, DirectoryRole, Group. Required.- Parameters:
value
- Value to set for the scopeType property.
-