All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationContactSettingsTechnicalContactArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@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.RegistrationContactSettingsTechnicalContactArgs.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 RegistrationContactSettingsTechnicalContactArgs(
    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.RegistrationContactSettingsTechnicalContactArgs =
        com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsTechnicalContactArgs.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 [RegistrationContactSettingsTechnicalContactArgs].
 */
@PulumiTagMarker
public class RegistrationContactSettingsTechnicalContactArgsBuilder 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("vkmingqaqlypxnpw")
    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("gleoerjypgwflsgg")
    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("klojvygcwrvwulsk")
    public suspend fun phoneNumber(`value`: Output) {
        this.phoneNumber = value
    }

    /**
     * @param value Required. Postal address of the contact.
     * Structure is documented below.
     */
    @JvmName("kdbwcokcxrbtccfr")
    public suspend fun postalAddress(`value`: Output) {
        this.postalAddress = value
    }

    /**
     * @param value Required. Email address of the contact.
     */
    @JvmName("hebtvwtyluyievig")
    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("frcmttllgjtmnlwd")
    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("eehhqdpwfluikgxf")
    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("eiwarhtottdxrxtu")
    public suspend fun postalAddress(`value`: RegistrationContactSettingsTechnicalContactPostalAddressArgs) {
        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("xsfffxgkvnparojt")
    public suspend fun postalAddress(argument: suspend RegistrationContactSettingsTechnicalContactPostalAddressArgsBuilder.() -> Unit) {
        val toBeMapped =
            RegistrationContactSettingsTechnicalContactPostalAddressArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.postalAddress = mapped
    }

    internal fun build(): RegistrationContactSettingsTechnicalContactArgs =
        RegistrationContactSettingsTechnicalContactArgs(
            email = email ?: throw PulumiNullFieldException("email"),
            faxNumber = faxNumber,
            phoneNumber = phoneNumber ?: throw PulumiNullFieldException("phoneNumber"),
            postalAddress = postalAddress ?: throw PulumiNullFieldException("postalAddress"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy