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

com.pulumi.azurenative.importexport.outputs.DeliveryPackageInformationResponse Maven / Gradle / Ivy

// *** 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.importexport.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeliveryPackageInformationResponse {
    /**
     * @return The name of the carrier that is used to ship the import or export drives.
     * 
     */
    private String carrierName;
    /**
     * @return The number of drives included in the package.
     * 
     */
    private @Nullable Double driveCount;
    /**
     * @return The date when the package is shipped.
     * 
     */
    private @Nullable String shipDate;
    /**
     * @return The tracking number of the package.
     * 
     */
    private String trackingNumber;

    private DeliveryPackageInformationResponse() {}
    /**
     * @return The name of the carrier that is used to ship the import or export drives.
     * 
     */
    public String carrierName() {
        return this.carrierName;
    }
    /**
     * @return The number of drives included in the package.
     * 
     */
    public Optional driveCount() {
        return Optional.ofNullable(this.driveCount);
    }
    /**
     * @return The date when the package is shipped.
     * 
     */
    public Optional shipDate() {
        return Optional.ofNullable(this.shipDate);
    }
    /**
     * @return The tracking number of the package.
     * 
     */
    public String trackingNumber() {
        return this.trackingNumber;
    }

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

    public static Builder builder(DeliveryPackageInformationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String carrierName;
        private @Nullable Double driveCount;
        private @Nullable String shipDate;
        private String trackingNumber;
        public Builder() {}
        public Builder(DeliveryPackageInformationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.carrierName = defaults.carrierName;
    	      this.driveCount = defaults.driveCount;
    	      this.shipDate = defaults.shipDate;
    	      this.trackingNumber = defaults.trackingNumber;
        }

        @CustomType.Setter
        public Builder carrierName(String carrierName) {
            if (carrierName == null) {
              throw new MissingRequiredPropertyException("DeliveryPackageInformationResponse", "carrierName");
            }
            this.carrierName = carrierName;
            return this;
        }
        @CustomType.Setter
        public Builder driveCount(@Nullable Double driveCount) {

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

            this.shipDate = shipDate;
            return this;
        }
        @CustomType.Setter
        public Builder trackingNumber(String trackingNumber) {
            if (trackingNumber == null) {
              throw new MissingRequiredPropertyException("DeliveryPackageInformationResponse", "trackingNumber");
            }
            this.trackingNumber = trackingNumber;
            return this;
        }
        public DeliveryPackageInformationResponse build() {
            final var _resultValue = new DeliveryPackageInformationResponse();
            _resultValue.carrierName = carrierName;
            _resultValue.driveCount = driveCount;
            _resultValue.shipDate = shipDate;
            _resultValue.trackingNumber = trackingNumber;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy