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
  • Constructor Details

  • 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getPolicy

      @Nullable public UnifiedRoleManagementPolicy 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

      @Nullable public String getPolicyId()
      Gets the policyId property value. The id of the policy. Inherited from entity.
      Returns:
      a String
    • getRoleDefinitionId

      @Nullable public 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

      @Nullable public 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

      @Nullable public 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setPolicy

      public void setPolicy(@Nullable UnifiedRoleManagementPolicy value)
      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

      public void setPolicyId(@Nullable String value)
      Sets the policyId property value. The id of the policy. Inherited from entity.
      Parameters:
      value - Value to set for the policyId property.
    • setRoleDefinitionId

      public void setRoleDefinitionId(@Nullable String value)
      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

      public void setScopeId(@Nullable String value)
      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

      public void setScopeType(@Nullable String value)
      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.