forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessReviewScheduleSettings.java
More file actions
171 lines (147 loc) · 8.03 KB
/
Copy pathAccessReviewScheduleSettings.java
File metadata and controls
171 lines (147 loc) · 8.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.http.BaseCollectionPage;
import com.microsoft.graph.models.AccessReviewApplyAction;
import com.microsoft.graph.models.AccessReviewRecommendationInsightSetting;
import com.microsoft.graph.models.PatternedRecurrence;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Access Review Schedule Settings.
*/
public class AccessReviewScheduleSettings implements IJsonBackedObject {
/** the OData type of the object as returned by the service */
@SerializedName("@odata.type")
@Expose
@Nullable
public String oDataType;
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
@Override
@Nonnull
public final AdditionalDataManager additionalDataManager() {
return additionalDataManager;
}
/**
* The Apply Actions.
* 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.
*/
@SerializedName(value = "applyActions", alternate = {"ApplyActions"})
@Expose
@Nullable
public java.util.List<AccessReviewApplyAction> applyActions;
/**
* The Auto Apply Decisions Enabled.
* 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.
*/
@SerializedName(value = "autoApplyDecisionsEnabled", alternate = {"AutoApplyDecisionsEnabled"})
@Expose
@Nullable
public Boolean autoApplyDecisionsEnabled;
/**
* The Decision Histories For Reviewers Enabled.
* 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).
*/
@SerializedName(value = "decisionHistoriesForReviewersEnabled", alternate = {"DecisionHistoriesForReviewersEnabled"})
@Expose
@Nullable
public Boolean decisionHistoriesForReviewersEnabled;
/**
* The Default Decision.
* Decision chosen if defaultDecisionEnabled is enabled. Can be one of Approve, Deny, or Recommendation.
*/
@SerializedName(value = "defaultDecision", alternate = {"DefaultDecision"})
@Expose
@Nullable
public String defaultDecision;
/**
* The Default Decision Enabled.
* 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.
*/
@SerializedName(value = "defaultDecisionEnabled", alternate = {"DefaultDecisionEnabled"})
@Expose
@Nullable
public Boolean defaultDecisionEnabled;
/**
* The Instance Duration In Days.
* 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.
*/
@SerializedName(value = "instanceDurationInDays", alternate = {"InstanceDurationInDays"})
@Expose
@Nullable
public Integer instanceDurationInDays;
/**
* The Justification Required On Approval.
* Indicates whether reviewers are required to provide justification with their decision. Default value is false.
*/
@SerializedName(value = "justificationRequiredOnApproval", alternate = {"JustificationRequiredOnApproval"})
@Expose
@Nullable
public Boolean justificationRequiredOnApproval;
/**
* The Mail Notifications Enabled.
* Indicates whether emails are enabled or disabled. Default value is false.
*/
@SerializedName(value = "mailNotificationsEnabled", alternate = {"MailNotificationsEnabled"})
@Expose
@Nullable
public Boolean mailNotificationsEnabled;
/**
* The Recommendation Insight Settings.
* 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.
*/
@SerializedName(value = "recommendationInsightSettings", alternate = {"RecommendationInsightSettings"})
@Expose
@Nullable
public java.util.List<AccessReviewRecommendationInsightSetting> recommendationInsightSettings;
/**
* The Recommendation Look Back Duration.
* 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.
*/
@SerializedName(value = "recommendationLookBackDuration", alternate = {"RecommendationLookBackDuration"})
@Expose
@Nullable
public javax.xml.datatype.Duration recommendationLookBackDuration;
/**
* The Recommendations Enabled.
* 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.
*/
@SerializedName(value = "recommendationsEnabled", alternate = {"RecommendationsEnabled"})
@Expose
@Nullable
public Boolean recommendationsEnabled;
/**
* The Recurrence.
* 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.
*/
@SerializedName(value = "recurrence", alternate = {"Recurrence"})
@Expose
@Nullable
public PatternedRecurrence recurrence;
/**
* The Reminder Notifications Enabled.
* Indicates whether reminders are enabled or disabled. Default value is false.
*/
@SerializedName(value = "reminderNotificationsEnabled", alternate = {"ReminderNotificationsEnabled"})
@Expose
@Nullable
public Boolean reminderNotificationsEnabled;
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
}
}