forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageResourceRole.java
More file actions
129 lines (128 loc) · 5.86 KB
/
Copy pathAccessPackageResourceRole.java
File metadata and controls
129 lines (128 loc) · 5.86 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
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 AccessPackageResourceRole extends Entity implements Parsable {
/**
* Instantiates a new {@link AccessPackageResourceRole} and sets the default values.
*/
public AccessPackageResourceRole() {
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 AccessPackageResourceRole}
*/
@jakarta.annotation.Nonnull
public static AccessPackageResourceRole createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AccessPackageResourceRole();
}
/**
* Gets the description property value. A description for the resource role.
* @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 resource role such as the role defined by the application.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* 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("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("originId", (n) -> { this.setOriginId(n.getStringValue()); });
deserializerMap.put("originSystem", (n) -> { this.setOriginSystem(n.getStringValue()); });
deserializerMap.put("resource", (n) -> { this.setResource(n.getObjectValue(AccessPackageResource::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOriginId() {
return this.backingStore.get("originId");
}
/**
* Gets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOriginSystem() {
return this.backingStore.get("originSystem");
}
/**
* Gets the resource property value. The resource property
* @return a {@link AccessPackageResource}
*/
@jakarta.annotation.Nullable
public AccessPackageResource getResource() {
return this.backingStore.get("resource");
}
/**
* 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("description", this.getDescription());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeStringValue("originId", this.getOriginId());
writer.writeStringValue("originSystem", this.getOriginSystem());
writer.writeObjectValue("resource", this.getResource());
}
/**
* Sets the description property value. A description for the resource role.
* @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 resource role such as the role defined by the application.
* @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 originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site.
* @param value Value to set for the originId property.
*/
public void setOriginId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("originId", value);
}
/**
* Sets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
* @param value Value to set for the originSystem property.
*/
public void setOriginSystem(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("originSystem", value);
}
/**
* Sets the resource property value. The resource property
* @param value Value to set for the resource property.
*/
public void setResource(@jakarta.annotation.Nullable final AccessPackageResource value) {
this.backingStore.set("resource", value);
}
}