forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageAssignment.java
More file actions
181 lines (180 loc) · 9.81 KB
/
Copy pathAccessPackageAssignment.java
File metadata and controls
181 lines (180 loc) · 9.81 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
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 AccessPackageAssignment extends Entity implements Parsable {
/**
* Instantiates a new {@link AccessPackageAssignment} and sets the default values.
*/
public AccessPackageAssignment() {
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 AccessPackageAssignment}
*/
@jakarta.annotation.Nonnull
public static AccessPackageAssignment createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AccessPackageAssignment();
}
/**
* Gets the accessPackage property value. Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.
* @return a {@link AccessPackage}
*/
@jakarta.annotation.Nullable
public AccessPackage getAccessPackage() {
return this.backingStore.get("accessPackage");
}
/**
* Gets the assignmentPolicy property value. Read-only. Supports $filter (eq) on the id property and $expand query parameters.
* @return a {@link AccessPackageAssignmentPolicy}
*/
@jakarta.annotation.Nullable
public AccessPackageAssignmentPolicy getAssignmentPolicy() {
return this.backingStore.get("assignmentPolicy");
}
/**
* Gets the customExtensionCalloutInstances property value. Information about all the custom extension calls that were made during the access package assignment workflow.
* @return a {@link java.util.List<CustomExtensionCalloutInstance>}
*/
@jakarta.annotation.Nullable
public java.util.List<CustomExtensionCalloutInstance> getCustomExtensionCalloutInstances() {
return this.backingStore.get("customExtensionCalloutInstances");
}
/**
* Gets the expiredDateTime 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. Read-only.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getExpiredDateTime() {
return this.backingStore.get("expiredDateTime");
}
/**
* 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("assignmentPolicy", (n) -> { this.setAssignmentPolicy(n.getObjectValue(AccessPackageAssignmentPolicy::createFromDiscriminatorValue)); });
deserializerMap.put("customExtensionCalloutInstances", (n) -> { this.setCustomExtensionCalloutInstances(n.getCollectionOfObjectValues(CustomExtensionCalloutInstance::createFromDiscriminatorValue)); });
deserializerMap.put("expiredDateTime", (n) -> { this.setExpiredDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("schedule", (n) -> { this.setSchedule(n.getObjectValue(EntitlementManagementSchedule::createFromDiscriminatorValue)); });
deserializerMap.put("state", (n) -> { this.setState(n.getEnumValue(AccessPackageAssignmentState::forValue)); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getStringValue()); });
deserializerMap.put("target", (n) -> { this.setTarget(n.getObjectValue(AccessPackageSubject::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the schedule property value. When the access assignment is to be in place. Read-only.
* @return a {@link EntitlementManagementSchedule}
*/
@jakarta.annotation.Nullable
public EntitlementManagementSchedule getSchedule() {
return this.backingStore.get("schedule");
}
/**
* Gets the state property value. The state of the access package assignment. The possible values are: delivering, partiallyDelivered, delivered, expired, deliveryFailed, unknownFutureValue. Read-only. Supports $filter (eq).
* @return a {@link AccessPackageAssignmentState}
*/
@jakarta.annotation.Nullable
public AccessPackageAssignmentState getState() {
return this.backingStore.get("state");
}
/**
* Gets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getStatus() {
return this.backingStore.get("status");
}
/**
* Gets the target property value. The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId.
* @return a {@link AccessPackageSubject}
*/
@jakarta.annotation.Nullable
public AccessPackageSubject getTarget() {
return this.backingStore.get("target");
}
/**
* 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.writeObjectValue("assignmentPolicy", this.getAssignmentPolicy());
writer.writeCollectionOfObjectValues("customExtensionCalloutInstances", this.getCustomExtensionCalloutInstances());
writer.writeOffsetDateTimeValue("expiredDateTime", this.getExpiredDateTime());
writer.writeObjectValue("schedule", this.getSchedule());
writer.writeEnumValue("state", this.getState());
writer.writeStringValue("status", this.getStatus());
writer.writeObjectValue("target", this.getTarget());
}
/**
* Sets the accessPackage property value. Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.
* @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 assignmentPolicy property value. Read-only. Supports $filter (eq) on the id property and $expand query parameters.
* @param value Value to set for the assignmentPolicy property.
*/
public void setAssignmentPolicy(@jakarta.annotation.Nullable final AccessPackageAssignmentPolicy value) {
this.backingStore.set("assignmentPolicy", value);
}
/**
* Sets the customExtensionCalloutInstances property value. Information about all the custom extension calls that were made during the access package assignment workflow.
* @param value Value to set for the customExtensionCalloutInstances property.
*/
public void setCustomExtensionCalloutInstances(@jakarta.annotation.Nullable final java.util.List<CustomExtensionCalloutInstance> value) {
this.backingStore.set("customExtensionCalloutInstances", value);
}
/**
* Sets the expiredDateTime 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. Read-only.
* @param value Value to set for the expiredDateTime property.
*/
public void setExpiredDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("expiredDateTime", value);
}
/**
* Sets the schedule property value. When the access assignment is to be in place. Read-only.
* @param value Value to set for the schedule property.
*/
public void setSchedule(@jakarta.annotation.Nullable final EntitlementManagementSchedule value) {
this.backingStore.set("schedule", value);
}
/**
* Sets the state property value. The state of the access package assignment. The possible values are: delivering, partiallyDelivered, delivered, expired, deliveryFailed, unknownFutureValue. Read-only. Supports $filter (eq).
* @param value Value to set for the state property.
*/
public void setState(@jakarta.annotation.Nullable final AccessPackageAssignmentState value) {
this.backingStore.set("state", value);
}
/**
* Sets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only.
* @param value Value to set for the status property.
*/
public void setStatus(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("status", value);
}
/**
* Sets the target property value. The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId.
* @param value Value to set for the target property.
*/
public void setTarget(@jakarta.annotation.Nullable final AccessPackageSubject value) {
this.backingStore.set("target", value);
}
}