forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageResourceRoleScope.java
More file actions
96 lines (95 loc) · 4.39 KB
/
Copy pathAccessPackageResourceRoleScope.java
File metadata and controls
96 lines (95 loc) · 4.39 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
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 AccessPackageResourceRoleScope extends Entity implements Parsable {
/**
* Instantiates a new {@link AccessPackageResourceRoleScope} and sets the default values.
*/
public AccessPackageResourceRoleScope() {
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 AccessPackageResourceRoleScope}
*/
@jakarta.annotation.Nonnull
public static AccessPackageResourceRoleScope createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AccessPackageResourceRoleScope();
}
/**
* Gets the createdDateTime 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
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* 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("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("role", (n) -> { this.setRole(n.getObjectValue(AccessPackageResourceRole::createFromDiscriminatorValue)); });
deserializerMap.put("scope", (n) -> { this.setScope(n.getObjectValue(AccessPackageResourceScope::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the role property value. The role property
* @return a {@link AccessPackageResourceRole}
*/
@jakarta.annotation.Nullable
public AccessPackageResourceRole getRole() {
return this.backingStore.get("role");
}
/**
* Gets the scope property value. The scope property
* @return a {@link AccessPackageResourceScope}
*/
@jakarta.annotation.Nullable
public AccessPackageResourceScope getScope() {
return this.backingStore.get("scope");
}
/**
* 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.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
writer.writeObjectValue("role", this.getRole());
writer.writeObjectValue("scope", this.getScope());
}
/**
* Sets the createdDateTime 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
* @param value Value to set for the createdDateTime property.
*/
public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("createdDateTime", value);
}
/**
* Sets the role property value. The role property
* @param value Value to set for the role property.
*/
public void setRole(@jakarta.annotation.Nullable final AccessPackageResourceRole value) {
this.backingStore.set("role", value);
}
/**
* Sets the scope property value. The scope property
* @param value Value to set for the scope property.
*/
public void setScope(@jakarta.annotation.Nullable final AccessPackageResourceScope value) {
this.backingStore.set("scope", value);
}
}