All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.databoxedge.outputs.GetOrderResult Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.AddressResponse;
import com.pulumi.azurenative.databoxedge.outputs.ContactDetailsResponse;
import com.pulumi.azurenative.databoxedge.outputs.OrderStatusResponse;
import com.pulumi.azurenative.databoxedge.outputs.SystemDataResponse;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetOrderResult {
    /**
     * @return The contact details.
     * 
     */
    private ContactDetailsResponse contactInformation;
    /**
     * @return Current status of the order.
     * 
     */
    private OrderStatusResponse currentStatus;
    /**
     * @return Tracking information for the package delivered to the customer whether it has an original or a replacement device.
     * 
     */
    private List deliveryTrackingInfo;
    /**
     * @return The path ID that uniquely identifies the object.
     * 
     */
    private String id;
    /**
     * @return It specify the order api version.
     * 
     */
    private String kind;
    /**
     * @return The object name.
     * 
     */
    private String name;
    /**
     * @return List of status changes in the order.
     * 
     */
    private List orderHistory;
    /**
     * @return It specify the order resource id.
     * 
     */
    private String orderId;
    /**
     * @return Tracking information for the package returned from the customer whether it has an original or a replacement device.
     * 
     */
    private List returnTrackingInfo;
    /**
     * @return Serial number of the device.
     * 
     */
    private String serialNumber;
    /**
     * @return ShipmentType of the order
     * 
     */
    private @Nullable String shipmentType;
    /**
     * @return The shipping address.
     * 
     */
    private @Nullable AddressResponse shippingAddress;
    /**
     * @return Metadata pertaining to creation and last modification of Order
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The hierarchical type of the object.
     * 
     */
    private String type;

    private GetOrderResult() {}
    /**
     * @return The contact details.
     * 
     */
    public ContactDetailsResponse contactInformation() {
        return this.contactInformation;
    }
    /**
     * @return Current status of the order.
     * 
     */
    public OrderStatusResponse currentStatus() {
        return this.currentStatus;
    }
    /**
     * @return Tracking information for the package delivered to the customer whether it has an original or a replacement device.
     * 
     */
    public List deliveryTrackingInfo() {
        return this.deliveryTrackingInfo;
    }
    /**
     * @return The path ID that uniquely identifies the object.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return It specify the order api version.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The object name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return List of status changes in the order.
     * 
     */
    public List orderHistory() {
        return this.orderHistory;
    }
    /**
     * @return It specify the order resource id.
     * 
     */
    public String orderId() {
        return this.orderId;
    }
    /**
     * @return Tracking information for the package returned from the customer whether it has an original or a replacement device.
     * 
     */
    public List returnTrackingInfo() {
        return this.returnTrackingInfo;
    }
    /**
     * @return Serial number of the device.
     * 
     */
    public String serialNumber() {
        return this.serialNumber;
    }
    /**
     * @return ShipmentType of the order
     * 
     */
    public Optional shipmentType() {
        return Optional.ofNullable(this.shipmentType);
    }
    /**
     * @return The shipping address.
     * 
     */
    public Optional shippingAddress() {
        return Optional.ofNullable(this.shippingAddress);
    }
    /**
     * @return Metadata pertaining to creation and last modification of Order
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The hierarchical type of the object.
     * 
     */
    public String type() {
        return this.type;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetOrderResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ContactDetailsResponse contactInformation;
        private OrderStatusResponse currentStatus;
        private List deliveryTrackingInfo;
        private String id;
        private String kind;
        private String name;
        private List orderHistory;
        private String orderId;
        private List returnTrackingInfo;
        private String serialNumber;
        private @Nullable String shipmentType;
        private @Nullable AddressResponse shippingAddress;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetOrderResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.contactInformation = defaults.contactInformation;
    	      this.currentStatus = defaults.currentStatus;
    	      this.deliveryTrackingInfo = defaults.deliveryTrackingInfo;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.name = defaults.name;
    	      this.orderHistory = defaults.orderHistory;
    	      this.orderId = defaults.orderId;
    	      this.returnTrackingInfo = defaults.returnTrackingInfo;
    	      this.serialNumber = defaults.serialNumber;
    	      this.shipmentType = defaults.shipmentType;
    	      this.shippingAddress = defaults.shippingAddress;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder contactInformation(ContactDetailsResponse contactInformation) {
            if (contactInformation == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "contactInformation");
            }
            this.contactInformation = contactInformation;
            return this;
        }
        @CustomType.Setter
        public Builder currentStatus(OrderStatusResponse currentStatus) {
            if (currentStatus == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "currentStatus");
            }
            this.currentStatus = currentStatus;
            return this;
        }
        @CustomType.Setter
        public Builder deliveryTrackingInfo(List deliveryTrackingInfo) {
            if (deliveryTrackingInfo == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "deliveryTrackingInfo");
            }
            this.deliveryTrackingInfo = deliveryTrackingInfo;
            return this;
        }
        public Builder deliveryTrackingInfo(TrackingInfoResponse... deliveryTrackingInfo) {
            return deliveryTrackingInfo(List.of(deliveryTrackingInfo));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder orderHistory(List orderHistory) {
            if (orderHistory == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "orderHistory");
            }
            this.orderHistory = orderHistory;
            return this;
        }
        public Builder orderHistory(OrderStatusResponse... orderHistory) {
            return orderHistory(List.of(orderHistory));
        }
        @CustomType.Setter
        public Builder orderId(String orderId) {
            if (orderId == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "orderId");
            }
            this.orderId = orderId;
            return this;
        }
        @CustomType.Setter
        public Builder returnTrackingInfo(List returnTrackingInfo) {
            if (returnTrackingInfo == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "returnTrackingInfo");
            }
            this.returnTrackingInfo = returnTrackingInfo;
            return this;
        }
        public Builder returnTrackingInfo(TrackingInfoResponse... returnTrackingInfo) {
            return returnTrackingInfo(List.of(returnTrackingInfo));
        }
        @CustomType.Setter
        public Builder serialNumber(String serialNumber) {
            if (serialNumber == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "serialNumber");
            }
            this.serialNumber = serialNumber;
            return this;
        }
        @CustomType.Setter
        public Builder shipmentType(@Nullable String shipmentType) {

            this.shipmentType = shipmentType;
            return this;
        }
        @CustomType.Setter
        public Builder shippingAddress(@Nullable AddressResponse shippingAddress) {

            this.shippingAddress = shippingAddress;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetOrderResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetOrderResult build() {
            final var _resultValue = new GetOrderResult();
            _resultValue.contactInformation = contactInformation;
            _resultValue.currentStatus = currentStatus;
            _resultValue.deliveryTrackingInfo = deliveryTrackingInfo;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.name = name;
            _resultValue.orderHistory = orderHistory;
            _resultValue.orderId = orderId;
            _resultValue.returnTrackingInfo = returnTrackingInfo;
            _resultValue.serialNumber = serialNumber;
            _resultValue.shipmentType = shipmentType;
            _resultValue.shippingAddress = shippingAddress;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy