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

com.pulumi.azurenative.databox.outputs.ReverseShippingDetailsResponse 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.databox.outputs;

import com.pulumi.azurenative.databox.outputs.ContactInfoResponse;
import com.pulumi.azurenative.databox.outputs.ShippingAddressResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ReverseShippingDetailsResponse {
    /**
     * @return Contact Info.
     * 
     */
    private @Nullable ContactInfoResponse contactDetails;
    /**
     * @return A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared.
     * Read only field
     * 
     */
    private Boolean isUpdated;
    /**
     * @return Shipping address where customer wishes to receive the device.
     * 
     */
    private @Nullable ShippingAddressResponse shippingAddress;

    private ReverseShippingDetailsResponse() {}
    /**
     * @return Contact Info.
     * 
     */
    public Optional contactDetails() {
        return Optional.ofNullable(this.contactDetails);
    }
    /**
     * @return A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared.
     * Read only field
     * 
     */
    public Boolean isUpdated() {
        return this.isUpdated;
    }
    /**
     * @return Shipping address where customer wishes to receive the device.
     * 
     */
    public Optional shippingAddress() {
        return Optional.ofNullable(this.shippingAddress);
    }

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

    public static Builder builder(ReverseShippingDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ContactInfoResponse contactDetails;
        private Boolean isUpdated;
        private @Nullable ShippingAddressResponse shippingAddress;
        public Builder() {}
        public Builder(ReverseShippingDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.contactDetails = defaults.contactDetails;
    	      this.isUpdated = defaults.isUpdated;
    	      this.shippingAddress = defaults.shippingAddress;
        }

        @CustomType.Setter
        public Builder contactDetails(@Nullable ContactInfoResponse contactDetails) {

            this.contactDetails = contactDetails;
            return this;
        }
        @CustomType.Setter
        public Builder isUpdated(Boolean isUpdated) {
            if (isUpdated == null) {
              throw new MissingRequiredPropertyException("ReverseShippingDetailsResponse", "isUpdated");
            }
            this.isUpdated = isUpdated;
            return this;
        }
        @CustomType.Setter
        public Builder shippingAddress(@Nullable ShippingAddressResponse shippingAddress) {

            this.shippingAddress = shippingAddress;
            return this;
        }
        public ReverseShippingDetailsResponse build() {
            final var _resultValue = new ReverseShippingDetailsResponse();
            _resultValue.contactDetails = contactDetails;
            _resultValue.isUpdated = isUpdated;
            _resultValue.shippingAddress = shippingAddress;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy