-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathAdministrativeUnit.java
More file actions
164 lines (163 loc) · 9.46 KB
/
AdministrativeUnit.java
File metadata and controls
164 lines (163 loc) · 9.46 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
package com.microsoft.graph.beta.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 AdministrativeUnit extends DirectoryObject implements Parsable {
/**
* Instantiates a new AdministrativeUnit and sets the default values.
*/
public AdministrativeUnit() {
super();
this.setOdataType("#microsoft.graph.administrativeUnit");
}
/**
* 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 AdministrativeUnit
*/
@jakarta.annotation.Nonnull
public static AdministrativeUnit createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AdministrativeUnit();
}
/**
* Gets the description property value. An optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith), $search.
* @return a String
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* Gets the displayName property value. Display name for the administrative unit. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.
* @return a String
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* Gets the extensions property value. The collection of open extensions defined for this administrative unit. Nullable.
* @return a java.util.List<Extension>
*/
@jakarta.annotation.Nullable
public java.util.List<Extension> getExtensions() {
return this.backingStore.get("extensions");
}
/**
* The deserialization information for the current model
* @return a 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("extensions", (n) -> { this.setExtensions(n.getCollectionOfObjectValues(Extension::createFromDiscriminatorValue)); });
deserializerMap.put("isMemberManagementRestricted", (n) -> { this.setIsMemberManagementRestricted(n.getBooleanValue()); });
deserializerMap.put("members", (n) -> { this.setMembers(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("scopedRoleMembers", (n) -> { this.setScopedRoleMembers(n.getCollectionOfObjectValues(ScopedRoleMembership::createFromDiscriminatorValue)); });
deserializerMap.put("visibility", (n) -> { this.setVisibility(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the isMemberManagementRestricted property value. true if members of this administrative unit should be treated as sensitive, which requires specific permissions to manage. Default value is false. Use this property to define administrative units whose roles don't inherit from tenant-level administrators, and management of individual member objects is limited to administrators scoped to a restricted management administrative unit. Immutable, so can't be changed later. For more information about working with restricted management administrative units, see Restricted management administrative units in Microsoft Entra ID.
* @return a Boolean
*/
@jakarta.annotation.Nullable
public Boolean getIsMemberManagementRestricted() {
return this.backingStore.get("isMemberManagementRestricted");
}
/**
* Gets the members property value. Users and groups that are members of this administrative unit. Supports $expand.
* @return a java.util.List<DirectoryObject>
*/
@jakarta.annotation.Nullable
public java.util.List<DirectoryObject> getMembers() {
return this.backingStore.get("members");
}
/**
* Gets the scopedRoleMembers property value. Scoped-role members of this administrative unit.
* @return a java.util.List<ScopedRoleMembership>
*/
@jakarta.annotation.Nullable
public java.util.List<ScopedRoleMembership> getScopedRoleMembers() {
return this.backingStore.get("scopedRoleMembers");
}
/**
* Gets the visibility property value. Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, the default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit.
* @return a String
*/
@jakarta.annotation.Nullable
public String getVisibility() {
return this.backingStore.get("visibility");
}
/**
* 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.writeCollectionOfObjectValues("extensions", this.getExtensions());
writer.writeBooleanValue("isMemberManagementRestricted", this.getIsMemberManagementRestricted());
writer.writeCollectionOfObjectValues("members", this.getMembers());
writer.writeCollectionOfObjectValues("scopedRoleMembers", this.getScopedRoleMembers());
writer.writeStringValue("visibility", this.getVisibility());
}
/**
* Sets the description property value. An optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith), $search.
* @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. Display name for the administrative unit. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.
* @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 extensions property value. The collection of open extensions defined for this administrative unit. Nullable.
* @param value Value to set for the extensions property.
*/
public void setExtensions(@jakarta.annotation.Nullable final java.util.List<Extension> value) {
this.backingStore.set("extensions", value);
}
/**
* Sets the isMemberManagementRestricted property value. true if members of this administrative unit should be treated as sensitive, which requires specific permissions to manage. Default value is false. Use this property to define administrative units whose roles don't inherit from tenant-level administrators, and management of individual member objects is limited to administrators scoped to a restricted management administrative unit. Immutable, so can't be changed later. For more information about working with restricted management administrative units, see Restricted management administrative units in Microsoft Entra ID.
* @param value Value to set for the isMemberManagementRestricted property.
*/
public void setIsMemberManagementRestricted(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isMemberManagementRestricted", value);
}
/**
* Sets the members property value. Users and groups that are members of this administrative unit. Supports $expand.
* @param value Value to set for the members property.
*/
public void setMembers(@jakarta.annotation.Nullable final java.util.List<DirectoryObject> value) {
this.backingStore.set("members", value);
}
/**
* Sets the scopedRoleMembers property value. Scoped-role members of this administrative unit.
* @param value Value to set for the scopedRoleMembers property.
*/
public void setScopedRoleMembers(@jakarta.annotation.Nullable final java.util.List<ScopedRoleMembership> value) {
this.backingStore.set("scopedRoleMembers", value);
}
/**
* Sets the visibility property value. Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, the default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit.
* @param value Value to set for the visibility property.
*/
public void setVisibility(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("visibility", value);
}
}