forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageAssignmentRequestCallbackData.java
More file actions
113 lines (112 loc) · 6.17 KB
/
Copy pathAccessPackageAssignmentRequestCallbackData.java
File metadata and controls
113 lines (112 loc) · 6.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
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.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AccessPackageAssignmentRequestCallbackData extends CustomExtensionData implements Parsable {
/**
* Instantiates a new {@link AccessPackageAssignmentRequestCallbackData} and sets the default values.
*/
public AccessPackageAssignmentRequestCallbackData() {
super();
this.setOdataType("#microsoft.graph.accessPackageAssignmentRequestCallbackData");
}
/**
* 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 AccessPackageAssignmentRequestCallbackData}
*/
@jakarta.annotation.Nonnull
public static AccessPackageAssignmentRequestCallbackData createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AccessPackageAssignmentRequestCallbackData();
}
/**
* Gets the customExtensionStageInstanceDetail property value. Details for the callback.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCustomExtensionStageInstanceDetail() {
return this.backingStore.get("customExtensionStageInstanceDetail");
}
/**
* Gets the customExtensionStageInstanceId property value. Unique identifier of the callout to the custom extension.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCustomExtensionStageInstanceId() {
return this.backingStore.get("customExtensionStageInstanceId");
}
/**
* 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("customExtensionStageInstanceDetail", (n) -> { this.setCustomExtensionStageInstanceDetail(n.getStringValue()); });
deserializerMap.put("customExtensionStageInstanceId", (n) -> { this.setCustomExtensionStageInstanceId(n.getStringValue()); });
deserializerMap.put("stage", (n) -> { this.setStage(n.getEnumValue(AccessPackageCustomExtensionStage::forValue)); });
deserializerMap.put("state", (n) -> { this.setState(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the stage property value. Indicates the stage at which the custom callout extension is executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue.
* @return a {@link AccessPackageCustomExtensionStage}
*/
@jakarta.annotation.Nullable
public AccessPackageCustomExtensionStage getStage() {
return this.backingStore.get("stage");
}
/**
* Gets the state property value. Allow the extension to be able to deny or cancel the request submitted by the requestor. The supported values are Denied and Canceled. This property can only be set for an assignmentRequestCreated stage.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getState() {
return this.backingStore.get("state");
}
/**
* 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.writeStringValue("customExtensionStageInstanceDetail", this.getCustomExtensionStageInstanceDetail());
writer.writeStringValue("customExtensionStageInstanceId", this.getCustomExtensionStageInstanceId());
writer.writeEnumValue("stage", this.getStage());
writer.writeStringValue("state", this.getState());
}
/**
* Sets the customExtensionStageInstanceDetail property value. Details for the callback.
* @param value Value to set for the customExtensionStageInstanceDetail property.
*/
public void setCustomExtensionStageInstanceDetail(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("customExtensionStageInstanceDetail", value);
}
/**
* Sets the customExtensionStageInstanceId property value. Unique identifier of the callout to the custom extension.
* @param value Value to set for the customExtensionStageInstanceId property.
*/
public void setCustomExtensionStageInstanceId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("customExtensionStageInstanceId", value);
}
/**
* Sets the stage property value. Indicates the stage at which the custom callout extension is executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue.
* @param value Value to set for the stage property.
*/
public void setStage(@jakarta.annotation.Nullable final AccessPackageCustomExtensionStage value) {
this.backingStore.set("stage", value);
}
/**
* Sets the state property value. Allow the extension to be able to deny or cancel the request submitted by the requestor. The supported values are Denied and Canceled. This property can only be set for an assignmentRequestCreated stage.
* @param value Value to set for the state property.
*/
public void setState(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("state", value);
}
}