
com.pulumi.azurenative.databoxedge.outputs.OrderStatusResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.databoxedge.outputs;
import com.pulumi.azurenative.databoxedge.outputs.TrackingInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class OrderStatusResponse {
/**
* @return Dictionary to hold generic information which is not stored
* by the already existing properties
*
*/
private Map additionalOrderDetails;
/**
* @return Comments related to this status change.
*
*/
private @Nullable String comments;
/**
* @return Status of the order as per the allowed status types.
*
*/
private String status;
/**
* @return Tracking information related to the state in the ordering flow
*
*/
private TrackingInfoResponse trackingInformation;
/**
* @return Time of status update.
*
*/
private String updateDateTime;
private OrderStatusResponse() {}
/**
* @return Dictionary to hold generic information which is not stored
* by the already existing properties
*
*/
public Map additionalOrderDetails() {
return this.additionalOrderDetails;
}
/**
* @return Comments related to this status change.
*
*/
public Optional comments() {
return Optional.ofNullable(this.comments);
}
/**
* @return Status of the order as per the allowed status types.
*
*/
public String status() {
return this.status;
}
/**
* @return Tracking information related to the state in the ordering flow
*
*/
public TrackingInfoResponse trackingInformation() {
return this.trackingInformation;
}
/**
* @return Time of status update.
*
*/
public String updateDateTime() {
return this.updateDateTime;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OrderStatusResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Map additionalOrderDetails;
private @Nullable String comments;
private String status;
private TrackingInfoResponse trackingInformation;
private String updateDateTime;
public Builder() {}
public Builder(OrderStatusResponse defaults) {
Objects.requireNonNull(defaults);
this.additionalOrderDetails = defaults.additionalOrderDetails;
this.comments = defaults.comments;
this.status = defaults.status;
this.trackingInformation = defaults.trackingInformation;
this.updateDateTime = defaults.updateDateTime;
}
@CustomType.Setter
public Builder additionalOrderDetails(Map additionalOrderDetails) {
if (additionalOrderDetails == null) {
throw new MissingRequiredPropertyException("OrderStatusResponse", "additionalOrderDetails");
}
this.additionalOrderDetails = additionalOrderDetails;
return this;
}
@CustomType.Setter
public Builder comments(@Nullable String comments) {
this.comments = comments;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("OrderStatusResponse", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder trackingInformation(TrackingInfoResponse trackingInformation) {
if (trackingInformation == null) {
throw new MissingRequiredPropertyException("OrderStatusResponse", "trackingInformation");
}
this.trackingInformation = trackingInformation;
return this;
}
@CustomType.Setter
public Builder updateDateTime(String updateDateTime) {
if (updateDateTime == null) {
throw new MissingRequiredPropertyException("OrderStatusResponse", "updateDateTime");
}
this.updateDateTime = updateDateTime;
return this;
}
public OrderStatusResponse build() {
final var _resultValue = new OrderStatusResponse();
_resultValue.additionalOrderDetails = additionalOrderDetails;
_resultValue.comments = comments;
_resultValue.status = status;
_resultValue.trackingInformation = trackingInformation;
_resultValue.updateDateTime = updateDateTime;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy