com.microsoft.graph.beta.generated.models.DelegatedAdminAccessAssignment Maven / Gradle / Ivy
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.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DelegatedAdminAccessAssignment extends Entity implements Parsable {
/**
* Instantiates a new {@link DelegatedAdminAccessAssignment} and sets the default values.
*/
public DelegatedAdminAccessAssignment() {
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 DelegatedAdminAccessAssignment}
*/
@jakarta.annotation.Nonnull
public static DelegatedAdminAccessAssignment createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new DelegatedAdminAccessAssignment();
}
/**
* Gets the accessContainer property value. The accessContainer property
* @return a {@link DelegatedAdminAccessContainer}
*/
@jakarta.annotation.Nullable
public DelegatedAdminAccessContainer getAccessContainer() {
return this.backingStore.get("accessContainer");
}
/**
* Gets the accessDetails property value. The accessDetails property
* @return a {@link DelegatedAdminAccessDetails}
*/
@jakarta.annotation.Nullable
public DelegatedAdminAccessDetails getAccessDetails() {
return this.backingStore.get("accessDetails");
}
/**
* Gets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the access assignment was created. Read-only.
* @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>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("accessContainer", (n) -> { this.setAccessContainer(n.getObjectValue(DelegatedAdminAccessContainer::createFromDiscriminatorValue)); });
deserializerMap.put("accessDetails", (n) -> { this.setAccessDetails(n.getObjectValue(DelegatedAdminAccessDetails::createFromDiscriminatorValue)); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(DelegatedAdminAccessAssignmentStatus::forValue)); });
return deserializerMap;
}
/**
* Gets the lastModifiedDateTime property value. The date and time in ISO 8601 and in UTC time when this access assignment was last modified. Read-only.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastModifiedDateTime() {
return this.backingStore.get("lastModifiedDateTime");
}
/**
* Gets the status property value. The status of the access assignment. Read-only. The possible values are: pending, active, deleting, deleted, error, unknownFutureValue.
* @return a {@link DelegatedAdminAccessAssignmentStatus}
*/
@jakarta.annotation.Nullable
public DelegatedAdminAccessAssignmentStatus getStatus() {
return this.backingStore.get("status");
}
/**
* 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("accessContainer", this.getAccessContainer());
writer.writeObjectValue("accessDetails", this.getAccessDetails());
writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime());
writer.writeEnumValue("status", this.getStatus());
}
/**
* Sets the accessContainer property value. The accessContainer property
* @param value Value to set for the accessContainer property.
*/
public void setAccessContainer(@jakarta.annotation.Nullable final DelegatedAdminAccessContainer value) {
this.backingStore.set("accessContainer", value);
}
/**
* Sets the accessDetails property value. The accessDetails property
* @param value Value to set for the accessDetails property.
*/
public void setAccessDetails(@jakarta.annotation.Nullable final DelegatedAdminAccessDetails value) {
this.backingStore.set("accessDetails", value);
}
/**
* Sets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the access assignment was created. Read-only.
* @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 lastModifiedDateTime property value. The date and time in ISO 8601 and in UTC time when this access assignment was last modified. Read-only.
* @param value Value to set for the lastModifiedDateTime property.
*/
public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastModifiedDateTime", value);
}
/**
* Sets the status property value. The status of the access assignment. Read-only. The possible values are: pending, active, deleting, deleted, error, unknownFutureValue.
* @param value Value to set for the status property.
*/
public void setStatus(@jakarta.annotation.Nullable final DelegatedAdminAccessAssignmentStatus value) {
this.backingStore.set("status", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy