forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageAssignmentPolicy.java
More file actions
300 lines (299 loc) · 17 KB
/
Copy pathAccessPackageAssignmentPolicy.java
File metadata and controls
300 lines (299 loc) · 17 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AccessPackageAssignmentPolicy extends Entity implements Parsable {
/**
* Instantiates a new {@link AccessPackageAssignmentPolicy} and sets the default values.
*/
public AccessPackageAssignmentPolicy() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link AccessPackageAssignmentPolicy}
*/
@jakarta.annotation.Nonnull
public static AccessPackageAssignmentPolicy createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AccessPackageAssignmentPolicy();
}
/**
* Gets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand.
* @return a {@link AccessPackage}
*/
@jakarta.annotation.Nullable
public AccessPackage getAccessPackage() {
return this.backingStore.get("accessPackage");
}
/**
* Gets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, unknownFutureValue.
* @return a {@link AllowedTargetScope}
*/
@jakarta.annotation.Nullable
public AllowedTargetScope getAllowedTargetScope() {
return this.backingStore.get("allowedTargetScope");
}
/**
* Gets the automaticRequestSettings property value. This property is only present for an auto assignment policy; if absent, this is a request-based policy.
* @return a {@link AccessPackageAutomaticRequestSettings}
*/
@jakarta.annotation.Nullable
public AccessPackageAutomaticRequestSettings getAutomaticRequestSettings() {
return this.backingStore.get("automaticRequestSettings");
}
/**
* Gets the catalog property value. Catalog of the access package containing this policy. Read-only.
* @return a {@link AccessPackageCatalog}
*/
@jakarta.annotation.Nullable
public AccessPackageCatalog getCatalog() {
return this.backingStore.get("catalog");
}
/**
* Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* Gets the customExtensionStageSettings property value. The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand.
* @return a {@link java.util.List<CustomExtensionStageSetting>}
*/
@jakarta.annotation.Nullable
public java.util.List<CustomExtensionStageSetting> getCustomExtensionStageSettings() {
return this.backingStore.get("customExtensionStageSettings");
}
/**
* Gets the description property value. The description of the policy.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* Gets the displayName property value. The display name of the policy.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* Gets the expiration property value. The expiration date for assignments created in this policy.
* @return a {@link ExpirationPattern}
*/
@jakarta.annotation.Nullable
public ExpirationPattern getExpiration() {
return this.backingStore.get("expiration");
}
/**
* The deserialization information for the current model
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
*/
@jakarta.annotation.Nonnull
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(super.getFieldDeserializers());
deserializerMap.put("accessPackage", (n) -> { this.setAccessPackage(n.getObjectValue(AccessPackage::createFromDiscriminatorValue)); });
deserializerMap.put("allowedTargetScope", (n) -> { this.setAllowedTargetScope(n.getEnumValue(AllowedTargetScope::forValue)); });
deserializerMap.put("automaticRequestSettings", (n) -> { this.setAutomaticRequestSettings(n.getObjectValue(AccessPackageAutomaticRequestSettings::createFromDiscriminatorValue)); });
deserializerMap.put("catalog", (n) -> { this.setCatalog(n.getObjectValue(AccessPackageCatalog::createFromDiscriminatorValue)); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("customExtensionStageSettings", (n) -> { this.setCustomExtensionStageSettings(n.getCollectionOfObjectValues(CustomExtensionStageSetting::createFromDiscriminatorValue)); });
deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("expiration", (n) -> { this.setExpiration(n.getObjectValue(ExpirationPattern::createFromDiscriminatorValue)); });
deserializerMap.put("modifiedDateTime", (n) -> { this.setModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("questions", (n) -> { this.setQuestions(n.getCollectionOfObjectValues(AccessPackageQuestion::createFromDiscriminatorValue)); });
deserializerMap.put("requestApprovalSettings", (n) -> { this.setRequestApprovalSettings(n.getObjectValue(AccessPackageAssignmentApprovalSettings::createFromDiscriminatorValue)); });
deserializerMap.put("requestorSettings", (n) -> { this.setRequestorSettings(n.getObjectValue(AccessPackageAssignmentRequestorSettings::createFromDiscriminatorValue)); });
deserializerMap.put("reviewSettings", (n) -> { this.setReviewSettings(n.getObjectValue(AccessPackageAssignmentReviewSettings::createFromDiscriminatorValue)); });
deserializerMap.put("specificAllowedTargets", (n) -> { this.setSpecificAllowedTargets(n.getCollectionOfObjectValues(SubjectSet::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getModifiedDateTime() {
return this.backingStore.get("modifiedDateTime");
}
/**
* Gets the questions property value. Questions that are posed to the requestor.
* @return a {@link java.util.List<AccessPackageQuestion>}
*/
@jakarta.annotation.Nullable
public java.util.List<AccessPackageQuestion> getQuestions() {
return this.backingStore.get("questions");
}
/**
* Gets the requestApprovalSettings property value. Specifies the settings for approval of requests for an access package assignment through this policy. For example, if approval is required for new requests.
* @return a {@link AccessPackageAssignmentApprovalSettings}
*/
@jakarta.annotation.Nullable
public AccessPackageAssignmentApprovalSettings getRequestApprovalSettings() {
return this.backingStore.get("requestApprovalSettings");
}
/**
* Gets the requestorSettings property value. Provides additional settings to select who can create a request for an access package assignment through this policy, and what they can include in their request.
* @return a {@link AccessPackageAssignmentRequestorSettings}
*/
@jakarta.annotation.Nullable
public AccessPackageAssignmentRequestorSettings getRequestorSettings() {
return this.backingStore.get("requestorSettings");
}
/**
* Gets the reviewSettings property value. Settings for access reviews of assignments through this policy.
* @return a {@link AccessPackageAssignmentReviewSettings}
*/
@jakarta.annotation.Nullable
public AccessPackageAssignmentReviewSettings getReviewSettings() {
return this.backingStore.get("reviewSettings");
}
/**
* Gets the specificAllowedTargets property value. The principals that can be assigned access from an access package through this policy.
* @return a {@link java.util.List<SubjectSet>}
*/
@jakarta.annotation.Nullable
public java.util.List<SubjectSet> getSpecificAllowedTargets() {
return this.backingStore.get("specificAllowedTargets");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeObjectValue("accessPackage", this.getAccessPackage());
writer.writeEnumValue("allowedTargetScope", this.getAllowedTargetScope());
writer.writeObjectValue("automaticRequestSettings", this.getAutomaticRequestSettings());
writer.writeObjectValue("catalog", this.getCatalog());
writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
writer.writeCollectionOfObjectValues("customExtensionStageSettings", this.getCustomExtensionStageSettings());
writer.writeStringValue("description", this.getDescription());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeObjectValue("expiration", this.getExpiration());
writer.writeOffsetDateTimeValue("modifiedDateTime", this.getModifiedDateTime());
writer.writeCollectionOfObjectValues("questions", this.getQuestions());
writer.writeObjectValue("requestApprovalSettings", this.getRequestApprovalSettings());
writer.writeObjectValue("requestorSettings", this.getRequestorSettings());
writer.writeObjectValue("reviewSettings", this.getReviewSettings());
writer.writeCollectionOfObjectValues("specificAllowedTargets", this.getSpecificAllowedTargets());
}
/**
* Sets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand.
* @param value Value to set for the accessPackage property.
*/
public void setAccessPackage(@jakarta.annotation.Nullable final AccessPackage value) {
this.backingStore.set("accessPackage", value);
}
/**
* Sets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, unknownFutureValue.
* @param value Value to set for the allowedTargetScope property.
*/
public void setAllowedTargetScope(@jakarta.annotation.Nullable final AllowedTargetScope value) {
this.backingStore.set("allowedTargetScope", value);
}
/**
* Sets the automaticRequestSettings property value. This property is only present for an auto assignment policy; if absent, this is a request-based policy.
* @param value Value to set for the automaticRequestSettings property.
*/
public void setAutomaticRequestSettings(@jakarta.annotation.Nullable final AccessPackageAutomaticRequestSettings value) {
this.backingStore.set("automaticRequestSettings", value);
}
/**
* Sets the catalog property value. Catalog of the access package containing this policy. Read-only.
* @param value Value to set for the catalog property.
*/
public void setCatalog(@jakarta.annotation.Nullable final AccessPackageCatalog value) {
this.backingStore.set("catalog", value);
}
/**
* Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @param value Value to set for the createdDateTime property.
*/
public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("createdDateTime", value);
}
/**
* Sets the customExtensionStageSettings property value. The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand.
* @param value Value to set for the customExtensionStageSettings property.
*/
public void setCustomExtensionStageSettings(@jakarta.annotation.Nullable final java.util.List<CustomExtensionStageSetting> value) {
this.backingStore.set("customExtensionStageSettings", value);
}
/**
* Sets the description property value. The description of the policy.
* @param value Value to set for the description property.
*/
public void setDescription(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("description", value);
}
/**
* Sets the displayName property value. The display name of the policy.
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the expiration property value. The expiration date for assignments created in this policy.
* @param value Value to set for the expiration property.
*/
public void setExpiration(@jakarta.annotation.Nullable final ExpirationPattern value) {
this.backingStore.set("expiration", value);
}
/**
* Sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @param value Value to set for the modifiedDateTime property.
*/
public void setModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("modifiedDateTime", value);
}
/**
* Sets the questions property value. Questions that are posed to the requestor.
* @param value Value to set for the questions property.
*/
public void setQuestions(@jakarta.annotation.Nullable final java.util.List<AccessPackageQuestion> value) {
this.backingStore.set("questions", value);
}
/**
* Sets the requestApprovalSettings property value. Specifies the settings for approval of requests for an access package assignment through this policy. For example, if approval is required for new requests.
* @param value Value to set for the requestApprovalSettings property.
*/
public void setRequestApprovalSettings(@jakarta.annotation.Nullable final AccessPackageAssignmentApprovalSettings value) {
this.backingStore.set("requestApprovalSettings", value);
}
/**
* Sets the requestorSettings property value. Provides additional settings to select who can create a request for an access package assignment through this policy, and what they can include in their request.
* @param value Value to set for the requestorSettings property.
*/
public void setRequestorSettings(@jakarta.annotation.Nullable final AccessPackageAssignmentRequestorSettings value) {
this.backingStore.set("requestorSettings", value);
}
/**
* Sets the reviewSettings property value. Settings for access reviews of assignments through this policy.
* @param value Value to set for the reviewSettings property.
*/
public void setReviewSettings(@jakarta.annotation.Nullable final AccessPackageAssignmentReviewSettings value) {
this.backingStore.set("reviewSettings", value);
}
/**
* Sets the specificAllowedTargets property value. The principals that can be assigned access from an access package through this policy.
* @param value Value to set for the specificAllowedTargets property.
*/
public void setSpecificAllowedTargets(@jakarta.annotation.Nullable final java.util.List<SubjectSet> value) {
this.backingStore.set("specificAllowedTargets", value);
}
}