
com.pulumi.azurenative.databox.inputs.TransportPreferencesArgs 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.inputs;
import com.pulumi.azurenative.databox.enums.TransportShipmentTypes;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Preferences related to the shipment logistics of the sku
*
*/
public final class TransportPreferencesArgs extends com.pulumi.resources.ResourceArgs {
public static final TransportPreferencesArgs Empty = new TransportPreferencesArgs();
/**
* Indicates Shipment Logistics type that the customer preferred.
*
*/
@Import(name="preferredShipmentType", required=true)
private Output> preferredShipmentType;
/**
* @return Indicates Shipment Logistics type that the customer preferred.
*
*/
public Output> preferredShipmentType() {
return this.preferredShipmentType;
}
private TransportPreferencesArgs() {}
private TransportPreferencesArgs(TransportPreferencesArgs $) {
this.preferredShipmentType = $.preferredShipmentType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TransportPreferencesArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private TransportPreferencesArgs $;
public Builder() {
$ = new TransportPreferencesArgs();
}
public Builder(TransportPreferencesArgs defaults) {
$ = new TransportPreferencesArgs(Objects.requireNonNull(defaults));
}
/**
* @param preferredShipmentType Indicates Shipment Logistics type that the customer preferred.
*
* @return builder
*
*/
public Builder preferredShipmentType(Output> preferredShipmentType) {
$.preferredShipmentType = preferredShipmentType;
return this;
}
/**
* @param preferredShipmentType Indicates Shipment Logistics type that the customer preferred.
*
* @return builder
*
*/
public Builder preferredShipmentType(Either preferredShipmentType) {
return preferredShipmentType(Output.of(preferredShipmentType));
}
/**
* @param preferredShipmentType Indicates Shipment Logistics type that the customer preferred.
*
* @return builder
*
*/
public Builder preferredShipmentType(String preferredShipmentType) {
return preferredShipmentType(Either.ofLeft(preferredShipmentType));
}
/**
* @param preferredShipmentType Indicates Shipment Logistics type that the customer preferred.
*
* @return builder
*
*/
public Builder preferredShipmentType(TransportShipmentTypes preferredShipmentType) {
return preferredShipmentType(Either.ofRight(preferredShipmentType));
}
public TransportPreferencesArgs build() {
if ($.preferredShipmentType == null) {
throw new MissingRequiredPropertyException("TransportPreferencesArgs", "preferredShipmentType");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy