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

    • UnifiedRoleManagementPolicy

      public UnifiedRoleManagementPolicy()
      Instantiates a new UnifiedRoleManagementPolicy 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

      @Nullable public String getDescription()
      Gets the description property value. Description for the policy.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Display name for the policy.
      Returns:
      a String
    • getEffectiveRules

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

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

      @Nullable public Identity getLastModifiedBy()
      Gets the lastModifiedBy property value. The identity who last modified the role setting.
      Returns:
      a Identity
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. The time when the role setting was last modified.
      Returns:
      a OffsetDateTime
    • getRules

      @Nullable public List<UnifiedRoleManagementPolicyRule> getRules()
      Gets the rules property value. The collection of rules like approval rules and expiration rules. Supports $expand.
      Returns:
      a List<UnifiedRoleManagementPolicyRule>
    • getScopeId

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

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

      public void setDescription(@Nullable String value)
      Sets the description property value. Description for the policy.
      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 policy.
      Parameters:
      value - Value to set for the displayName property.
    • setEffectiveRules

      public void setEffectiveRules(@Nullable List<UnifiedRoleManagementPolicyRule> value)
      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

      public void setIsOrganizationDefault(@Nullable Boolean value)
      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

      public void setLastModifiedBy(@Nullable Identity value)
      Sets the lastModifiedBy property value. The identity who last modified the role setting.
      Parameters:
      value - Value to set for the lastModifiedBy property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. The time when the role setting was last modified.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setRules

      public void setRules(@Nullable List<UnifiedRoleManagementPolicyRule> value)
      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

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

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