com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationContactSettingsRegistrantContactArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.clouddomains.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsRegistrantContactArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property email Required. Email address of the contact.
* @property faxNumber Fax number of the contact in international format. For example, "+1-800-555-0123".
* @property phoneNumber Required. Phone number of the contact in international format. For example, "+1-800-555-0123".
* @property postalAddress Required. Postal address of the contact.
* Structure is documented below.
*/
public data class RegistrationContactSettingsRegistrantContactArgs(
public val email: Output,
public val faxNumber: Output? = null,
public val phoneNumber: Output,
public val postalAddress: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsRegistrantContactArgs =
com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsRegistrantContactArgs.builder()
.email(email.applyValue({ args0 -> args0 }))
.faxNumber(faxNumber?.applyValue({ args0 -> args0 }))
.phoneNumber(phoneNumber.applyValue({ args0 -> args0 }))
.postalAddress(postalAddress.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RegistrationContactSettingsRegistrantContactArgs].
*/
@PulumiTagMarker
public class RegistrationContactSettingsRegistrantContactArgsBuilder internal constructor() {
private var email: Output? = null
private var faxNumber: Output? = null
private var phoneNumber: Output? = null
private var postalAddress: Output? =
null
/**
* @param value Required. Email address of the contact.
*/
@JvmName("cejssvdeogwpfdfm")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value Fax number of the contact in international format. For example, "+1-800-555-0123".
*/
@JvmName("evblyhewgbyssrhb")
public suspend fun faxNumber(`value`: Output) {
this.faxNumber = value
}
/**
* @param value Required. Phone number of the contact in international format. For example, "+1-800-555-0123".
*/
@JvmName("fproukbshqqilkac")
public suspend fun phoneNumber(`value`: Output) {
this.phoneNumber = value
}
/**
* @param value Required. Postal address of the contact.
* Structure is documented below.
*/
@JvmName("xjdkuscvqsqtoswx")
public suspend fun postalAddress(`value`: Output) {
this.postalAddress = value
}
/**
* @param value Required. Email address of the contact.
*/
@JvmName("ftnruahcicorjhpd")
public suspend fun email(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.email = mapped
}
/**
* @param value Fax number of the contact in international format. For example, "+1-800-555-0123".
*/
@JvmName("kgqrhobbqtjqpseo")
public suspend fun faxNumber(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.faxNumber = mapped
}
/**
* @param value Required. Phone number of the contact in international format. For example, "+1-800-555-0123".
*/
@JvmName("fcpbremlmypibywa")
public suspend fun phoneNumber(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.phoneNumber = mapped
}
/**
* @param value Required. Postal address of the contact.
* Structure is documented below.
*/
@JvmName("kfvjjdadhfsabddm")
public suspend fun postalAddress(`value`: RegistrationContactSettingsRegistrantContactPostalAddressArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.postalAddress = mapped
}
/**
* @param argument Required. Postal address of the contact.
* Structure is documented below.
*/
@JvmName("yhmpcsftdkcjaopy")
public suspend fun postalAddress(argument: suspend RegistrationContactSettingsRegistrantContactPostalAddressArgsBuilder.() -> Unit) {
val toBeMapped =
RegistrationContactSettingsRegistrantContactPostalAddressArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.postalAddress = mapped
}
internal fun build(): RegistrationContactSettingsRegistrantContactArgs =
RegistrationContactSettingsRegistrantContactArgs(
email = email ?: throw PulumiNullFieldException("email"),
faxNumber = faxNumber,
phoneNumber = phoneNumber ?: throw PulumiNullFieldException("phoneNumber"),
postalAddress = postalAddress ?: throw PulumiNullFieldException("postalAddress"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy