Package com.microsoft.graph.models
Class AccessReviewScheduleSettings
java.lang.Object
com.microsoft.graph.models.AccessReviewScheduleSettings
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class AccessReviewScheduleSettings
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newAccessReviewScheduleSettingsand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessReviewScheduleSettingscreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.Gets the applyActions property value.Gets the autoApplyDecisionsEnabled property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.Gets the decisionHistoriesForReviewersEnabled property value.Gets the defaultDecision property value.Gets the defaultDecisionEnabled property value.The deserialization information for the current modelGets the instanceDurationInDays property value.Gets the justificationRequiredOnApproval property value.Gets the mailNotificationsEnabled property value.Gets the @odata.type property value.Gets the recommendationInsightSettings property value.com.microsoft.kiota.PeriodAndDurationGets the recommendationLookBackDuration property value.Gets the recommendationsEnabled property value.Gets the recurrence property value.Gets the reminderNotificationsEnabled property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidSets the applyActions property value.voidSets the autoApplyDecisionsEnabled property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidSets the decisionHistoriesForReviewersEnabled property value.voidsetDefaultDecision(String value) Sets the defaultDecision property value.voidsetDefaultDecisionEnabled(Boolean value) Sets the defaultDecisionEnabled property value.voidsetInstanceDurationInDays(Integer value) Sets the instanceDurationInDays property value.voidSets the justificationRequiredOnApproval property value.voidSets the mailNotificationsEnabled property value.voidsetOdataType(String value) Sets the @odata.type property value.voidSets the recommendationInsightSettings property value.voidsetRecommendationLookBackDuration(com.microsoft.kiota.PeriodAndDuration value) Sets the recommendationLookBackDuration property value.voidsetRecommendationsEnabled(Boolean value) Sets the recommendationsEnabled property value.voidsetRecurrence(PatternedRecurrence value) Sets the recurrence property value.voidSets the reminderNotificationsEnabled property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
AccessReviewScheduleSettings
public AccessReviewScheduleSettings()Instantiates a newAccessReviewScheduleSettingsand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static AccessReviewScheduleSettings 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
AccessReviewScheduleSettings
-
getAdditionalData
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getApplyActions
Gets the applyActions property value. Optional field. Describes the actions to take once a review is complete. There are two types that are currently supported: removeAccessApplyAction (default) and disableAndDeleteUserApplyAction. Field only needs to be specified in the case of disableAndDeleteUserApplyAction.- Returns:
- a
List<AccessReviewApplyAction>
-
getAutoApplyDecisionsEnabled
Gets the autoApplyDecisionsEnabled property value. Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond.- Returns:
- a
Boolean
-
getBackingStore
@Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()Gets the backingStore property value. Stores model information.- Specified by:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
getDecisionHistoriesForReviewersEnabled
Gets the decisionHistoriesForReviewersEnabled property value. Indicates whether decisions on previous access review stages are available for reviewers on an accessReviewInstance with multiple subsequent stages. If not provided, the default is disabled (false).- Returns:
- a
Boolean
-
getDefaultDecision
Gets the defaultDecision property value. Decision chosen if defaultDecisionEnabled is enabled. Can be one of Approve, Deny, or Recommendation.- Returns:
- a
String
-
getDefaultDecisionEnabled
Gets the defaultDecisionEnabled property value. Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond.- Returns:
- a
Boolean
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model -
getInstanceDurationInDays
Gets the instanceDurationInDays property value. Duration of an access review instance in days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its durationInDays setting will be used instead of the value of this property.- Returns:
- a
Integer
-
getJustificationRequiredOnApproval
Gets the justificationRequiredOnApproval property value. Indicates whether reviewers are required to provide justification with their decision. Default value is false.- Returns:
- a
Boolean
-
getMailNotificationsEnabled
Gets the mailNotificationsEnabled property value. Indicates whether emails are enabled or disabled. Default value is false.- Returns:
- a
Boolean
-
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getRecommendationInsightSettings
Gets the recommendationInsightSettings property value. Optional. Describes the types of insights that aid reviewers to make access review decisions. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationInsightSettings setting will be used instead of the value of this property.- Returns:
- a
List<AccessReviewRecommendationInsightSetting>
-
getRecommendationLookBackDuration
@Nullable public com.microsoft.kiota.PeriodAndDuration getRecommendationLookBackDuration()Gets the recommendationLookBackDuration property value. Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Microsoft Entra roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property.- Returns:
- a
PeriodAndDuration
-
getRecommendationsEnabled
Gets the recommendationsEnabled property value. Indicates whether decision recommendations are enabled or disabled. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationsEnabled setting will be used instead of the value of this property.- Returns:
- a
Boolean
-
getRecurrence
Gets the recurrence property value. Detailed settings for recurrence using the standard Outlook recurrence object. Note: Only dayOfMonth, interval, and type (weekly, absoluteMonthly) properties are supported. Use the property startDate on recurrenceRange to determine the day the review starts.- Returns:
- a
PatternedRecurrence
-
getReminderNotificationsEnabled
Gets the reminderNotificationsEnabled property value. Indicates whether reminders are enabled or disabled. Default value is false.- Returns:
- a
Boolean
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.- Parameters:
value- Value to set for the AdditionalData property.
-
setApplyActions
Sets the applyActions property value. Optional field. Describes the actions to take once a review is complete. There are two types that are currently supported: removeAccessApplyAction (default) and disableAndDeleteUserApplyAction. Field only needs to be specified in the case of disableAndDeleteUserApplyAction.- Parameters:
value- Value to set for the applyActions property.
-
setAutoApplyDecisionsEnabled
Sets the autoApplyDecisionsEnabled property value. Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond.- Parameters:
value- Value to set for the autoApplyDecisionsEnabled property.
-
setBackingStore
public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value. Stores model information.- Parameters:
value- Value to set for the backingStore property.
-
setDecisionHistoriesForReviewersEnabled
Sets the decisionHistoriesForReviewersEnabled property value. Indicates whether decisions on previous access review stages are available for reviewers on an accessReviewInstance with multiple subsequent stages. If not provided, the default is disabled (false).- Parameters:
value- Value to set for the decisionHistoriesForReviewersEnabled property.
-
setDefaultDecision
Sets the defaultDecision property value. Decision chosen if defaultDecisionEnabled is enabled. Can be one of Approve, Deny, or Recommendation.- Parameters:
value- Value to set for the defaultDecision property.
-
setDefaultDecisionEnabled
Sets the defaultDecisionEnabled property value. Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond.- Parameters:
value- Value to set for the defaultDecisionEnabled property.
-
setInstanceDurationInDays
Sets the instanceDurationInDays property value. Duration of an access review instance in days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its durationInDays setting will be used instead of the value of this property.- Parameters:
value- Value to set for the instanceDurationInDays property.
-
setJustificationRequiredOnApproval
Sets the justificationRequiredOnApproval property value. Indicates whether reviewers are required to provide justification with their decision. Default value is false.- Parameters:
value- Value to set for the justificationRequiredOnApproval property.
-
setMailNotificationsEnabled
Sets the mailNotificationsEnabled property value. Indicates whether emails are enabled or disabled. Default value is false.- Parameters:
value- Value to set for the mailNotificationsEnabled property.
-
setOdataType
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setRecommendationInsightSettings
public void setRecommendationInsightSettings(@Nullable List<AccessReviewRecommendationInsightSetting> value) Sets the recommendationInsightSettings property value. Optional. Describes the types of insights that aid reviewers to make access review decisions. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationInsightSettings setting will be used instead of the value of this property.- Parameters:
value- Value to set for the recommendationInsightSettings property.
-
setRecommendationLookBackDuration
public void setRecommendationLookBackDuration(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the recommendationLookBackDuration property value. Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Microsoft Entra roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property.- Parameters:
value- Value to set for the recommendationLookBackDuration property.
-
setRecommendationsEnabled
Sets the recommendationsEnabled property value. Indicates whether decision recommendations are enabled or disabled. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationsEnabled setting will be used instead of the value of this property.- Parameters:
value- Value to set for the recommendationsEnabled property.
-
setRecurrence
Sets the recurrence property value. Detailed settings for recurrence using the standard Outlook recurrence object. Note: Only dayOfMonth, interval, and type (weekly, absoluteMonthly) properties are supported. Use the property startDate on recurrenceRange to determine the day the review starts.- Parameters:
value- Value to set for the recurrence property.
-
setReminderNotificationsEnabled
Sets the reminderNotificationsEnabled property value. Indicates whether reminders are enabled or disabled. Default value is false.- Parameters:
value- Value to set for the reminderNotificationsEnabled property.
-