forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageSubject.java
More file actions
163 lines (162 loc) · 7.68 KB
/
Copy pathAccessPackageSubject.java
File metadata and controls
163 lines (162 loc) · 7.68 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
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 AccessPackageSubject extends Entity implements Parsable {
/**
* Instantiates a new {@link AccessPackageSubject} and sets the default values.
*/
public AccessPackageSubject() {
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 AccessPackageSubject}
*/
@jakarta.annotation.Nonnull
public static AccessPackageSubject createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AccessPackageSubject();
}
/**
* Gets the connectedOrganization property value. The connected organization of the subject. Read-only. Nullable.
* @return a {@link ConnectedOrganization}
*/
@jakarta.annotation.Nullable
public ConnectedOrganization getConnectedOrganization() {
return this.backingStore.get("connectedOrganization");
}
/**
* Gets the displayName property value. The display name of the subject.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* Gets the email property value. The email address of the subject.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getEmail() {
return this.backingStore.get("email");
}
/**
* 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("connectedOrganization", (n) -> { this.setConnectedOrganization(n.getObjectValue(ConnectedOrganization::createFromDiscriminatorValue)); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); });
deserializerMap.put("objectId", (n) -> { this.setObjectId(n.getStringValue()); });
deserializerMap.put("onPremisesSecurityIdentifier", (n) -> { this.setOnPremisesSecurityIdentifier(n.getStringValue()); });
deserializerMap.put("principalName", (n) -> { this.setPrincipalName(n.getStringValue()); });
deserializerMap.put("subjectType", (n) -> { this.setSubjectType(n.getEnumValue(AccessPackageSubjectType::forValue)); });
return deserializerMap;
}
/**
* Gets the objectId property value. The object identifier of the subject. null if the subject isn't yet a user in the tenant.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getObjectId() {
return this.backingStore.get("objectId");
}
/**
* Gets the onPremisesSecurityIdentifier property value. A string representation of the principal's security identifier, if known, or null if the subject doesn't have a security identifier.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOnPremisesSecurityIdentifier() {
return this.backingStore.get("onPremisesSecurityIdentifier");
}
/**
* Gets the principalName property value. The principal name, if known, of the subject.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPrincipalName() {
return this.backingStore.get("principalName");
}
/**
* Gets the subjectType property value. The resource type of the subject. The possible values are: notSpecified, user, servicePrincipal, unknownFutureValue.
* @return a {@link AccessPackageSubjectType}
*/
@jakarta.annotation.Nullable
public AccessPackageSubjectType getSubjectType() {
return this.backingStore.get("subjectType");
}
/**
* 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("connectedOrganization", this.getConnectedOrganization());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeStringValue("email", this.getEmail());
writer.writeStringValue("objectId", this.getObjectId());
writer.writeStringValue("onPremisesSecurityIdentifier", this.getOnPremisesSecurityIdentifier());
writer.writeStringValue("principalName", this.getPrincipalName());
writer.writeEnumValue("subjectType", this.getSubjectType());
}
/**
* Sets the connectedOrganization property value. The connected organization of the subject. Read-only. Nullable.
* @param value Value to set for the connectedOrganization property.
*/
public void setConnectedOrganization(@jakarta.annotation.Nullable final ConnectedOrganization value) {
this.backingStore.set("connectedOrganization", value);
}
/**
* Sets the displayName property value. The display name of the subject.
* @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 email property value. The email address of the subject.
* @param value Value to set for the email property.
*/
public void setEmail(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("email", value);
}
/**
* Sets the objectId property value. The object identifier of the subject. null if the subject isn't yet a user in the tenant.
* @param value Value to set for the objectId property.
*/
public void setObjectId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("objectId", value);
}
/**
* Sets the onPremisesSecurityIdentifier property value. A string representation of the principal's security identifier, if known, or null if the subject doesn't have a security identifier.
* @param value Value to set for the onPremisesSecurityIdentifier property.
*/
public void setOnPremisesSecurityIdentifier(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("onPremisesSecurityIdentifier", value);
}
/**
* Sets the principalName property value. The principal name, if known, of the subject.
* @param value Value to set for the principalName property.
*/
public void setPrincipalName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("principalName", value);
}
/**
* Sets the subjectType property value. The resource type of the subject. The possible values are: notSpecified, user, servicePrincipal, unknownFutureValue.
* @param value Value to set for the subjectType property.
*/
public void setSubjectType(@jakarta.annotation.Nullable final AccessPackageSubjectType value) {
this.backingStore.set("subjectType", value);
}
}