Class AdminConsentRequestPolicy

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.AdminConsentRequestPolicy
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class AdminConsentRequestPolicy extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • AdminConsentRequestPolicy

      public AdminConsentRequestPolicy()
      Instantiates a new AdminConsentRequestPolicy and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static AdminConsentRequestPolicy 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 AdminConsentRequestPolicy
    • 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>>
    • getIsEnabled

      @Nullable public Boolean getIsEnabled()
      Gets the isEnabled property value. Specifies whether the admin consent request feature is enabled or disabled. Required.
      Returns:
      a Boolean
    • getNotifyReviewers

      @Nullable public Boolean getNotifyReviewers()
      Gets the notifyReviewers property value. Specifies whether reviewers will receive notifications. Required.
      Returns:
      a Boolean
    • getRemindersEnabled

      @Nullable public Boolean getRemindersEnabled()
      Gets the remindersEnabled property value. Specifies whether reviewers will receive reminder emails. Required.
      Returns:
      a Boolean
    • getRequestDurationInDays

      @Nullable public Integer getRequestDurationInDays()
      Gets the requestDurationInDays property value. Specifies the duration the request is active before it automatically expires if no decision is applied.
      Returns:
      a Integer
    • getReviewers

      @Nullable public List<AccessReviewReviewerScope> getReviewers()
      Gets the reviewers property value. The list of reviewers for the admin consent. Required.
      Returns:
      a List<AccessReviewReviewerScope>
    • getVersion

      @Nullable public Integer getVersion()
      Gets the version property value. Specifies the version of this policy. When the policy is updated, this version is updated. Read-only.
      Returns:
      a Integer
    • 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
    • setIsEnabled

      public void setIsEnabled(@Nullable Boolean value)
      Sets the isEnabled property value. Specifies whether the admin consent request feature is enabled or disabled. Required.
      Parameters:
      value - Value to set for the isEnabled property.
    • setNotifyReviewers

      public void setNotifyReviewers(@Nullable Boolean value)
      Sets the notifyReviewers property value. Specifies whether reviewers will receive notifications. Required.
      Parameters:
      value - Value to set for the notifyReviewers property.
    • setRemindersEnabled

      public void setRemindersEnabled(@Nullable Boolean value)
      Sets the remindersEnabled property value. Specifies whether reviewers will receive reminder emails. Required.
      Parameters:
      value - Value to set for the remindersEnabled property.
    • setRequestDurationInDays

      public void setRequestDurationInDays(@Nullable Integer value)
      Sets the requestDurationInDays property value. Specifies the duration the request is active before it automatically expires if no decision is applied.
      Parameters:
      value - Value to set for the requestDurationInDays property.
    • setReviewers

      public void setReviewers(@Nullable List<AccessReviewReviewerScope> value)
      Sets the reviewers property value. The list of reviewers for the admin consent. Required.
      Parameters:
      value - Value to set for the reviewers property.
    • setVersion

      public void setVersion(@Nullable Integer value)
      Sets the version property value. Specifies the version of this policy. When the policy is updated, this version is updated. Read-only.
      Parameters:
      value - Value to set for the version property.