![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.databox.kotlin.inputs.ShippingAddressArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.databox.kotlin.inputs
import com.pulumi.azurenative.databox.inputs.ShippingAddressArgs.builder
import com.pulumi.azurenative.databox.kotlin.enums.AddressType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Shipping address where customer wishes to receive the device.
* @property addressType Type of address.
* @property city Name of the City.
* @property companyName Name of the company.
* @property country Name of the Country.
* @property postalCode Postal code.
* @property skipAddressValidation Flag to indicate if customer has chosen to skip default address validation
* @property stateOrProvince Name of the State or Province.
* @property streetAddress1 Street Address line 1.
* @property streetAddress2 Street Address line 2.
* @property streetAddress3 Street Address line 3.
* @property taxIdentificationNumber Tax Identification Number
* @property zipExtendedCode Extended Zip Code.
*/
public data class ShippingAddressArgs(
public val addressType: Output>? = null,
public val city: Output? = null,
public val companyName: Output? = null,
public val country: Output,
public val postalCode: Output? = null,
public val skipAddressValidation: Output? = null,
public val stateOrProvince: Output? = null,
public val streetAddress1: Output,
public val streetAddress2: Output? = null,
public val streetAddress3: Output? = null,
public val taxIdentificationNumber: Output? = null,
public val zipExtendedCode: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.databox.inputs.ShippingAddressArgs =
com.pulumi.azurenative.databox.inputs.ShippingAddressArgs.builder()
.addressType(
addressType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.city(city?.applyValue({ args0 -> args0 }))
.companyName(companyName?.applyValue({ args0 -> args0 }))
.country(country.applyValue({ args0 -> args0 }))
.postalCode(postalCode?.applyValue({ args0 -> args0 }))
.skipAddressValidation(skipAddressValidation?.applyValue({ args0 -> args0 }))
.stateOrProvince(stateOrProvince?.applyValue({ args0 -> args0 }))
.streetAddress1(streetAddress1.applyValue({ args0 -> args0 }))
.streetAddress2(streetAddress2?.applyValue({ args0 -> args0 }))
.streetAddress3(streetAddress3?.applyValue({ args0 -> args0 }))
.taxIdentificationNumber(taxIdentificationNumber?.applyValue({ args0 -> args0 }))
.zipExtendedCode(zipExtendedCode?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ShippingAddressArgs].
*/
@PulumiTagMarker
public class ShippingAddressArgsBuilder internal constructor() {
private var addressType: Output>? = null
private var city: Output? = null
private var companyName: Output? = null
private var country: Output? = null
private var postalCode: Output? = null
private var skipAddressValidation: Output? = null
private var stateOrProvince: Output? = null
private var streetAddress1: Output? = null
private var streetAddress2: Output? = null
private var streetAddress3: Output? = null
private var taxIdentificationNumber: Output? = null
private var zipExtendedCode: Output? = null
/**
* @param value Type of address.
*/
@JvmName("cvlhftufxcihnlfo")
public suspend fun addressType(`value`: Output>) {
this.addressType = value
}
/**
* @param value Name of the City.
*/
@JvmName("wlqforivggsceiyn")
public suspend fun city(`value`: Output) {
this.city = value
}
/**
* @param value Name of the company.
*/
@JvmName("clyhvhmlpewhknxv")
public suspend fun companyName(`value`: Output) {
this.companyName = value
}
/**
* @param value Name of the Country.
*/
@JvmName("odfjewnnbyuwrxon")
public suspend fun country(`value`: Output) {
this.country = value
}
/**
* @param value Postal code.
*/
@JvmName("pakeasjmaxrucjnd")
public suspend fun postalCode(`value`: Output) {
this.postalCode = value
}
/**
* @param value Flag to indicate if customer has chosen to skip default address validation
*/
@JvmName("tprskctnqcjkxjnf")
public suspend fun skipAddressValidation(`value`: Output) {
this.skipAddressValidation = value
}
/**
* @param value Name of the State or Province.
*/
@JvmName("ofordhwwgtbwwgtg")
public suspend fun stateOrProvince(`value`: Output) {
this.stateOrProvince = value
}
/**
* @param value Street Address line 1.
*/
@JvmName("ffxexbxbgiwqkbyg")
public suspend fun streetAddress1(`value`: Output) {
this.streetAddress1 = value
}
/**
* @param value Street Address line 2.
*/
@JvmName("wqedgspxvulvlpyi")
public suspend fun streetAddress2(`value`: Output) {
this.streetAddress2 = value
}
/**
* @param value Street Address line 3.
*/
@JvmName("xtevmuvwqpxcjdof")
public suspend fun streetAddress3(`value`: Output) {
this.streetAddress3 = value
}
/**
* @param value Tax Identification Number
*/
@JvmName("npngfdjquqyyvfib")
public suspend fun taxIdentificationNumber(`value`: Output) {
this.taxIdentificationNumber = value
}
/**
* @param value Extended Zip Code.
*/
@JvmName("xupphsvewemkqopp")
public suspend fun zipExtendedCode(`value`: Output) {
this.zipExtendedCode = value
}
/**
* @param value Type of address.
*/
@JvmName("bdfxmjqgkqonlawr")
public suspend fun addressType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.addressType = mapped
}
/**
* @param value Type of address.
*/
@JvmName("iuwulngletqfwuki")
public fun addressType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.addressType = mapped
}
/**
* @param value Type of address.
*/
@JvmName("wtofxjyiqwpyynfb")
public fun addressType(`value`: AddressType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.addressType = mapped
}
/**
* @param value Name of the City.
*/
@JvmName("orwvfeabcqhkmyjq")
public suspend fun city(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.city = mapped
}
/**
* @param value Name of the company.
*/
@JvmName("iulxobkfklbykbwq")
public suspend fun companyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.companyName = mapped
}
/**
* @param value Name of the Country.
*/
@JvmName("hkeyusgupxlonjwm")
public suspend fun country(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.country = mapped
}
/**
* @param value Postal code.
*/
@JvmName("sjwgnvwlgmujmanq")
public suspend fun postalCode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.postalCode = mapped
}
/**
* @param value Flag to indicate if customer has chosen to skip default address validation
*/
@JvmName("yfxmmkyysbhkexpc")
public suspend fun skipAddressValidation(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skipAddressValidation = mapped
}
/**
* @param value Name of the State or Province.
*/
@JvmName("libpnxwchifaadwm")
public suspend fun stateOrProvince(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.stateOrProvince = mapped
}
/**
* @param value Street Address line 1.
*/
@JvmName("khpkocxmqnvskylj")
public suspend fun streetAddress1(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.streetAddress1 = mapped
}
/**
* @param value Street Address line 2.
*/
@JvmName("valmbalwmbrtxmkh")
public suspend fun streetAddress2(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.streetAddress2 = mapped
}
/**
* @param value Street Address line 3.
*/
@JvmName("uqsfjtfeplamkylt")
public suspend fun streetAddress3(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.streetAddress3 = mapped
}
/**
* @param value Tax Identification Number
*/
@JvmName("hhenppoogjhejhsq")
public suspend fun taxIdentificationNumber(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.taxIdentificationNumber = mapped
}
/**
* @param value Extended Zip Code.
*/
@JvmName("phgjuvdwokebgqbk")
public suspend fun zipExtendedCode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.zipExtendedCode = mapped
}
internal fun build(): ShippingAddressArgs = ShippingAddressArgs(
addressType = addressType,
city = city,
companyName = companyName,
country = country ?: throw PulumiNullFieldException("country"),
postalCode = postalCode,
skipAddressValidation = skipAddressValidation,
stateOrProvince = stateOrProvince,
streetAddress1 = streetAddress1 ?: throw PulumiNullFieldException("streetAddress1"),
streetAddress2 = streetAddress2,
streetAddress3 = streetAddress3,
taxIdentificationNumber = taxIdentificationNumber,
zipExtendedCode = zipExtendedCode,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy