
com.microsoft.graph.beta.generated.models.managedtenants.ManagementTemplateStepDeployment Maven / Gradle / Ivy
package com.microsoft.graph.beta.models.managedtenants;
import com.microsoft.graph.beta.models.Entity;
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 ManagementTemplateStepDeployment extends Entity implements Parsable {
/**
* Instantiates a new {@link ManagementTemplateStepDeployment} and sets the default values.
*/
public ManagementTemplateStepDeployment() {
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 ManagementTemplateStepDeployment}
*/
@jakarta.annotation.Nonnull
public static ManagementTemplateStepDeployment createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ManagementTemplateStepDeployment();
}
/**
* Gets the createdByUserId property value. The createdByUserId property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCreatedByUserId() {
return this.backingStore.get("createdByUserId");
}
/**
* Gets the createdDateTime property value. The createdDateTime property
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* Gets the error property value. The error property
* @return a {@link GraphAPIErrorDetails}
*/
@jakarta.annotation.Nullable
public GraphAPIErrorDetails getError() {
return this.backingStore.get("error");
}
/**
* 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("createdByUserId", (n) -> { this.setCreatedByUserId(n.getStringValue()); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("error", (n) -> { this.setError(n.getObjectValue(GraphAPIErrorDetails::createFromDiscriminatorValue)); });
deserializerMap.put("lastActionByUserId", (n) -> { this.setLastActionByUserId(n.getStringValue()); });
deserializerMap.put("lastActionDateTime", (n) -> { this.setLastActionDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(ManagementTemplateDeploymentStatus::forValue)); });
deserializerMap.put("templateStepVersion", (n) -> { this.setTemplateStepVersion(n.getObjectValue(ManagementTemplateStepVersion::createFromDiscriminatorValue)); });
deserializerMap.put("tenantId", (n) -> { this.setTenantId(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the lastActionByUserId property value. The lastActionByUserId property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getLastActionByUserId() {
return this.backingStore.get("lastActionByUserId");
}
/**
* Gets the lastActionDateTime property value. The lastActionDateTime property
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastActionDateTime() {
return this.backingStore.get("lastActionDateTime");
}
/**
* Gets the status property value. The status property
* @return a {@link ManagementTemplateDeploymentStatus}
*/
@jakarta.annotation.Nullable
public ManagementTemplateDeploymentStatus getStatus() {
return this.backingStore.get("status");
}
/**
* Gets the templateStepVersion property value. The templateStepVersion property
* @return a {@link ManagementTemplateStepVersion}
*/
@jakarta.annotation.Nullable
public ManagementTemplateStepVersion getTemplateStepVersion() {
return this.backingStore.get("templateStepVersion");
}
/**
* Gets the tenantId property value. The tenantId property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getTenantId() {
return this.backingStore.get("tenantId");
}
/**
* 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("createdByUserId", this.getCreatedByUserId());
writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
writer.writeObjectValue("error", this.getError());
writer.writeStringValue("lastActionByUserId", this.getLastActionByUserId());
writer.writeOffsetDateTimeValue("lastActionDateTime", this.getLastActionDateTime());
writer.writeEnumValue("status", this.getStatus());
writer.writeObjectValue("templateStepVersion", this.getTemplateStepVersion());
writer.writeStringValue("tenantId", this.getTenantId());
}
/**
* Sets the createdByUserId property value. The createdByUserId property
* @param value Value to set for the createdByUserId property.
*/
public void setCreatedByUserId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("createdByUserId", value);
}
/**
* Sets the createdDateTime property value. The createdDateTime property
* @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 error property value. The error property
* @param value Value to set for the error property.
*/
public void setError(@jakarta.annotation.Nullable final GraphAPIErrorDetails value) {
this.backingStore.set("error", value);
}
/**
* Sets the lastActionByUserId property value. The lastActionByUserId property
* @param value Value to set for the lastActionByUserId property.
*/
public void setLastActionByUserId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("lastActionByUserId", value);
}
/**
* Sets the lastActionDateTime property value. The lastActionDateTime property
* @param value Value to set for the lastActionDateTime property.
*/
public void setLastActionDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastActionDateTime", value);
}
/**
* Sets the status property value. The status property
* @param value Value to set for the status property.
*/
public void setStatus(@jakarta.annotation.Nullable final ManagementTemplateDeploymentStatus value) {
this.backingStore.set("status", value);
}
/**
* Sets the templateStepVersion property value. The templateStepVersion property
* @param value Value to set for the templateStepVersion property.
*/
public void setTemplateStepVersion(@jakarta.annotation.Nullable final ManagementTemplateStepVersion value) {
this.backingStore.set("templateStepVersion", value);
}
/**
* Sets the tenantId property value. The tenantId property
* @param value Value to set for the tenantId property.
*/
public void setTenantId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("tenantId", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy