Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AdminConsentRequestPolicy
createFromDiscriminatorValue
(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 isEnabled property value.Gets the notifyReviewers property value.Gets the remindersEnabled property value.Gets the requestDurationInDays property value.Gets the reviewers property value.Gets the version property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setIsEnabled
(Boolean value) Sets the isEnabled property value.void
setNotifyReviewers
(Boolean value) Sets the notifyReviewers property value.void
setRemindersEnabled
(Boolean value) Sets the remindersEnabled property value.void
setRequestDurationInDays
(Integer value) Sets the requestDurationInDays property value.void
Sets the reviewers property value.void
setVersion
(Integer value) Sets the version property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
AdminConsentRequestPolicy
public AdminConsentRequestPolicy()Instantiates a newAdminConsentRequestPolicy
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsEnabled
Gets the isEnabled property value. Specifies whether the admin consent request feature is enabled or disabled. Required.- Returns:
- a
Boolean
-
getNotifyReviewers
Gets the notifyReviewers property value. Specifies whether reviewers will receive notifications. Required.- Returns:
- a
Boolean
-
getRemindersEnabled
Gets the remindersEnabled property value. Specifies whether reviewers will receive reminder emails. Required.- Returns:
- a
Boolean
-
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
Gets the reviewers property value. The list of reviewers for the admin consent. Required.- Returns:
- a
List<AccessReviewReviewerScope>
-
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 -
setIsEnabled
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
Sets the notifyReviewers property value. Specifies whether reviewers will receive notifications. Required.- Parameters:
value
- Value to set for the notifyReviewers property.
-
setRemindersEnabled
Sets the remindersEnabled property value. Specifies whether reviewers will receive reminder emails. Required.- Parameters:
value
- Value to set for the remindersEnabled property.
-
setRequestDurationInDays
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
Sets the reviewers property value. The list of reviewers for the admin consent. Required.- Parameters:
value
- Value to set for the reviewers property.
-
setVersion
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.
-