com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationContactSettingsAdminContactArgs.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.RegistrationContactSettingsAdminContactArgs.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 RegistrationContactSettingsAdminContactArgs(
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.RegistrationContactSettingsAdminContactArgs =
com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsAdminContactArgs.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 [RegistrationContactSettingsAdminContactArgs].
*/
@PulumiTagMarker
public class RegistrationContactSettingsAdminContactArgsBuilder 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("empxxopqiakurmae")
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("ucsoubfsteslnyem")
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("mqawosdiursvlrcp")
public suspend fun phoneNumber(`value`: Output) {
this.phoneNumber = value
}
/**
* @param value Required. Postal address of the contact.
* Structure is documented below.
*/
@JvmName("rktgerwenshcbshi")
public suspend fun postalAddress(`value`: Output) {
this.postalAddress = value
}
/**
* @param value Required. Email address of the contact.
*/
@JvmName("kyidcvuxipuccbcx")
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("ofjspvamvuwodibu")
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("wrkndyklrlvphkfx")
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("lhlxvysucopfniwt")
public suspend fun postalAddress(`value`: RegistrationContactSettingsAdminContactPostalAddressArgs) {
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("klovgyxyyqaufnap")
public suspend fun postalAddress(argument: suspend RegistrationContactSettingsAdminContactPostalAddressArgsBuilder.() -> Unit) {
val toBeMapped = RegistrationContactSettingsAdminContactPostalAddressArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.postalAddress = mapped
}
internal fun build(): RegistrationContactSettingsAdminContactArgs =
RegistrationContactSettingsAdminContactArgs(
email = email ?: throw PulumiNullFieldException("email"),
faxNumber = faxNumber,
phoneNumber = phoneNumber ?: throw PulumiNullFieldException("phoneNumber"),
postalAddress = postalAddress ?: throw PulumiNullFieldException("postalAddress"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy