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

com.pulumi.azurenative.databox.outputs.GetJobResult Maven / Gradle / Ivy

There is a newer version: 2.82.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.databox.outputs;

import com.pulumi.azurenative.databox.outputs.CloudErrorResponse;
import com.pulumi.azurenative.databox.outputs.DataBoxCustomerDiskJobDetailsResponse;
import com.pulumi.azurenative.databox.outputs.DataBoxDiskJobDetailsResponse;
import com.pulumi.azurenative.databox.outputs.DataBoxHeavyJobDetailsResponse;
import com.pulumi.azurenative.databox.outputs.DataBoxJobDetailsResponse;
import com.pulumi.azurenative.databox.outputs.JobDeliveryInfoResponse;
import com.pulumi.azurenative.databox.outputs.ResourceIdentityResponse;
import com.pulumi.azurenative.databox.outputs.SkuResponse;
import com.pulumi.azurenative.databox.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetJobResult {
    /**
     * @return Reason for cancellation.
     * 
     */
    private String cancellationReason;
    /**
     * @return Delivery Info of Job.
     * 
     */
    private @Nullable JobDeliveryInfoResponse deliveryInfo;
    /**
     * @return Delivery type of Job.
     * 
     */
    private @Nullable String deliveryType;
    /**
     * @return Details of a job run. This field will only be sent for expand details filter.
     * 
     */
    private @Nullable Object details;
    /**
     * @return Top level error for the job.
     * 
     */
    private CloudErrorResponse error;
    /**
     * @return Id of the object.
     * 
     */
    private String id;
    /**
     * @return Msi identity of the resource
     * 
     */
    private @Nullable ResourceIdentityResponse identity;
    /**
     * @return Describes whether the job is cancellable or not.
     * 
     */
    private Boolean isCancellable;
    /**
     * @return Flag to indicate cancellation of scheduled job.
     * 
     */
    private Boolean isCancellableWithoutFee;
    /**
     * @return Describes whether the job is deletable or not.
     * 
     */
    private Boolean isDeletable;
    /**
     * @return Is Prepare To Ship Enabled on this job
     * 
     */
    private Boolean isPrepareToShipEnabled;
    /**
     * @return Describes whether the shipping address is editable or not.
     * 
     */
    private Boolean isShippingAddressEditable;
    /**
     * @return The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed.
     * 
     */
    private String location;
    /**
     * @return Name of the object.
     * 
     */
    private String name;
    /**
     * @return The Editable status for Reverse Shipping Address and Contact Info
     * 
     */
    private String reverseShippingDetailsUpdate;
    /**
     * @return The Editable status for Reverse Transport preferences
     * 
     */
    private String reverseTransportPreferenceUpdate;
    /**
     * @return The sku type.
     * 
     */
    private SkuResponse sku;
    /**
     * @return Time at which the job was started in UTC ISO 8601 format.
     * 
     */
    private String startTime;
    /**
     * @return Name of the stage which is in progress.
     * 
     */
    private String status;
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Type of the data transfer.
     * 
     */
    private String transferType;
    /**
     * @return Type of the object.
     * 
     */
    private String type;

    private GetJobResult() {}
    /**
     * @return Reason for cancellation.
     * 
     */
    public String cancellationReason() {
        return this.cancellationReason;
    }
    /**
     * @return Delivery Info of Job.
     * 
     */
    public Optional deliveryInfo() {
        return Optional.ofNullable(this.deliveryInfo);
    }
    /**
     * @return Delivery type of Job.
     * 
     */
    public Optional deliveryType() {
        return Optional.ofNullable(this.deliveryType);
    }
    /**
     * @return Details of a job run. This field will only be sent for expand details filter.
     * 
     */
    public Optional details() {
        return Optional.ofNullable(this.details);
    }
    /**
     * @return Top level error for the job.
     * 
     */
    public CloudErrorResponse error() {
        return this.error;
    }
    /**
     * @return Id of the object.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Msi identity of the resource
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return Describes whether the job is cancellable or not.
     * 
     */
    public Boolean isCancellable() {
        return this.isCancellable;
    }
    /**
     * @return Flag to indicate cancellation of scheduled job.
     * 
     */
    public Boolean isCancellableWithoutFee() {
        return this.isCancellableWithoutFee;
    }
    /**
     * @return Describes whether the job is deletable or not.
     * 
     */
    public Boolean isDeletable() {
        return this.isDeletable;
    }
    /**
     * @return Is Prepare To Ship Enabled on this job
     * 
     */
    public Boolean isPrepareToShipEnabled() {
        return this.isPrepareToShipEnabled;
    }
    /**
     * @return Describes whether the shipping address is editable or not.
     * 
     */
    public Boolean isShippingAddressEditable() {
        return this.isShippingAddressEditable;
    }
    /**
     * @return The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Name of the object.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The Editable status for Reverse Shipping Address and Contact Info
     * 
     */
    public String reverseShippingDetailsUpdate() {
        return this.reverseShippingDetailsUpdate;
    }
    /**
     * @return The Editable status for Reverse Transport preferences
     * 
     */
    public String reverseTransportPreferenceUpdate() {
        return this.reverseTransportPreferenceUpdate;
    }
    /**
     * @return The sku type.
     * 
     */
    public SkuResponse sku() {
        return this.sku;
    }
    /**
     * @return Time at which the job was started in UTC ISO 8601 format.
     * 
     */
    public String startTime() {
        return this.startTime;
    }
    /**
     * @return Name of the stage which is in progress.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Type of the data transfer.
     * 
     */
    public String transferType() {
        return this.transferType;
    }
    /**
     * @return Type of the object.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetJobResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String cancellationReason;
        private @Nullable JobDeliveryInfoResponse deliveryInfo;
        private @Nullable String deliveryType;
        private @Nullable Object details;
        private CloudErrorResponse error;
        private String id;
        private @Nullable ResourceIdentityResponse identity;
        private Boolean isCancellable;
        private Boolean isCancellableWithoutFee;
        private Boolean isDeletable;
        private Boolean isPrepareToShipEnabled;
        private Boolean isShippingAddressEditable;
        private String location;
        private String name;
        private String reverseShippingDetailsUpdate;
        private String reverseTransportPreferenceUpdate;
        private SkuResponse sku;
        private String startTime;
        private String status;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String transferType;
        private String type;
        public Builder() {}
        public Builder(GetJobResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cancellationReason = defaults.cancellationReason;
    	      this.deliveryInfo = defaults.deliveryInfo;
    	      this.deliveryType = defaults.deliveryType;
    	      this.details = defaults.details;
    	      this.error = defaults.error;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.isCancellable = defaults.isCancellable;
    	      this.isCancellableWithoutFee = defaults.isCancellableWithoutFee;
    	      this.isDeletable = defaults.isDeletable;
    	      this.isPrepareToShipEnabled = defaults.isPrepareToShipEnabled;
    	      this.isShippingAddressEditable = defaults.isShippingAddressEditable;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.reverseShippingDetailsUpdate = defaults.reverseShippingDetailsUpdate;
    	      this.reverseTransportPreferenceUpdate = defaults.reverseTransportPreferenceUpdate;
    	      this.sku = defaults.sku;
    	      this.startTime = defaults.startTime;
    	      this.status = defaults.status;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.transferType = defaults.transferType;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder cancellationReason(String cancellationReason) {
            if (cancellationReason == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "cancellationReason");
            }
            this.cancellationReason = cancellationReason;
            return this;
        }
        @CustomType.Setter
        public Builder deliveryInfo(@Nullable JobDeliveryInfoResponse deliveryInfo) {

            this.deliveryInfo = deliveryInfo;
            return this;
        }
        @CustomType.Setter
        public Builder deliveryType(@Nullable String deliveryType) {

            this.deliveryType = deliveryType;
            return this;
        }
        @CustomType.Setter
        public Builder details(@Nullable Object details) {

            this.details = details;
            return this;
        }
        @CustomType.Setter
        public Builder error(CloudErrorResponse error) {
            if (error == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "error");
            }
            this.error = error;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable ResourceIdentityResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder isCancellable(Boolean isCancellable) {
            if (isCancellable == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "isCancellable");
            }
            this.isCancellable = isCancellable;
            return this;
        }
        @CustomType.Setter
        public Builder isCancellableWithoutFee(Boolean isCancellableWithoutFee) {
            if (isCancellableWithoutFee == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "isCancellableWithoutFee");
            }
            this.isCancellableWithoutFee = isCancellableWithoutFee;
            return this;
        }
        @CustomType.Setter
        public Builder isDeletable(Boolean isDeletable) {
            if (isDeletable == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "isDeletable");
            }
            this.isDeletable = isDeletable;
            return this;
        }
        @CustomType.Setter
        public Builder isPrepareToShipEnabled(Boolean isPrepareToShipEnabled) {
            if (isPrepareToShipEnabled == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "isPrepareToShipEnabled");
            }
            this.isPrepareToShipEnabled = isPrepareToShipEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder isShippingAddressEditable(Boolean isShippingAddressEditable) {
            if (isShippingAddressEditable == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "isShippingAddressEditable");
            }
            this.isShippingAddressEditable = isShippingAddressEditable;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder reverseShippingDetailsUpdate(String reverseShippingDetailsUpdate) {
            if (reverseShippingDetailsUpdate == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "reverseShippingDetailsUpdate");
            }
            this.reverseShippingDetailsUpdate = reverseShippingDetailsUpdate;
            return this;
        }
        @CustomType.Setter
        public Builder reverseTransportPreferenceUpdate(String reverseTransportPreferenceUpdate) {
            if (reverseTransportPreferenceUpdate == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "reverseTransportPreferenceUpdate");
            }
            this.reverseTransportPreferenceUpdate = reverseTransportPreferenceUpdate;
            return this;
        }
        @CustomType.Setter
        public Builder sku(SkuResponse sku) {
            if (sku == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "sku");
            }
            this.sku = sku;
            return this;
        }
        @CustomType.Setter
        public Builder startTime(String startTime) {
            if (startTime == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "startTime");
            }
            this.startTime = startTime;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder transferType(String transferType) {
            if (transferType == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "transferType");
            }
            this.transferType = transferType;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetJobResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetJobResult build() {
            final var _resultValue = new GetJobResult();
            _resultValue.cancellationReason = cancellationReason;
            _resultValue.deliveryInfo = deliveryInfo;
            _resultValue.deliveryType = deliveryType;
            _resultValue.details = details;
            _resultValue.error = error;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.isCancellable = isCancellable;
            _resultValue.isCancellableWithoutFee = isCancellableWithoutFee;
            _resultValue.isDeletable = isDeletable;
            _resultValue.isPrepareToShipEnabled = isPrepareToShipEnabled;
            _resultValue.isShippingAddressEditable = isShippingAddressEditable;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.reverseShippingDetailsUpdate = reverseShippingDetailsUpdate;
            _resultValue.reverseTransportPreferenceUpdate = reverseTransportPreferenceUpdate;
            _resultValue.sku = sku;
            _resultValue.startTime = startTime;
            _resultValue.status = status;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.transferType = transferType;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}