![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.domainregistration.kotlin.inputs.AddressArgs.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.domainregistration.kotlin.inputs
import com.pulumi.azurenative.domainregistration.inputs.AddressArgs.builder
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Address information for domain registration.
* @property address1 First line of an Address.
* @property address2 The second line of the Address. Optional.
* @property city The city for the address.
* @property country The country for the address.
* @property postalCode The postal code for the address.
* @property state The state or province for the address.
*/
public data class AddressArgs(
public val address1: Output,
public val address2: Output? = null,
public val city: Output,
public val country: Output,
public val postalCode: Output,
public val state: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.domainregistration.inputs.AddressArgs =
com.pulumi.azurenative.domainregistration.inputs.AddressArgs.builder()
.address1(address1.applyValue({ args0 -> args0 }))
.address2(address2?.applyValue({ args0 -> args0 }))
.city(city.applyValue({ args0 -> args0 }))
.country(country.applyValue({ args0 -> args0 }))
.postalCode(postalCode.applyValue({ args0 -> args0 }))
.state(state.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AddressArgs].
*/
@PulumiTagMarker
public class AddressArgsBuilder internal constructor() {
private var address1: Output? = null
private var address2: Output? = null
private var city: Output? = null
private var country: Output? = null
private var postalCode: Output? = null
private var state: Output? = null
/**
* @param value First line of an Address.
*/
@JvmName("iqasycuatayljnnh")
public suspend fun address1(`value`: Output) {
this.address1 = value
}
/**
* @param value The second line of the Address. Optional.
*/
@JvmName("lgwoqawnmxpxnnuj")
public suspend fun address2(`value`: Output) {
this.address2 = value
}
/**
* @param value The city for the address.
*/
@JvmName("pnawannoxhhgcbjd")
public suspend fun city(`value`: Output) {
this.city = value
}
/**
* @param value The country for the address.
*/
@JvmName("cvrmiagpllwfqtey")
public suspend fun country(`value`: Output) {
this.country = value
}
/**
* @param value The postal code for the address.
*/
@JvmName("uhycaiipyaoybfwy")
public suspend fun postalCode(`value`: Output) {
this.postalCode = value
}
/**
* @param value The state or province for the address.
*/
@JvmName("sltudfrsdqekhdyl")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value First line of an Address.
*/
@JvmName("nnpslouxgjvtnxmx")
public suspend fun address1(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.address1 = mapped
}
/**
* @param value The second line of the Address. Optional.
*/
@JvmName("lfwuduvduawmrrlq")
public suspend fun address2(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.address2 = mapped
}
/**
* @param value The city for the address.
*/
@JvmName("yfisuymficaoxude")
public suspend fun city(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.city = mapped
}
/**
* @param value The country for the address.
*/
@JvmName("gcfiewycskbpicsc")
public suspend fun country(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.country = mapped
}
/**
* @param value The postal code for the address.
*/
@JvmName("lptgguorryafkkwf")
public suspend fun postalCode(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.postalCode = mapped
}
/**
* @param value The state or province for the address.
*/
@JvmName("abnjblgwkmvljgkp")
public suspend fun state(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): AddressArgs = AddressArgs(
address1 = address1 ?: throw PulumiNullFieldException("address1"),
address2 = address2,
city = city ?: throw PulumiNullFieldException("city"),
country = country ?: throw PulumiNullFieldException("country"),
postalCode = postalCode ?: throw PulumiNullFieldException("postalCode"),
state = state ?: throw PulumiNullFieldException("state"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy