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

com.pulumi.azurenative.peering.kotlin.inputs.ContactDetailArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.peering.kotlin.inputs

import com.pulumi.azurenative.peering.inputs.ContactDetailArgs.builder
import com.pulumi.azurenative.peering.kotlin.enums.Role
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.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The contact detail class.
 * @property email The e-mail address of the contact.
 * @property phone The phone number of the contact.
 * @property role The role of the contact.
 */
public data class ContactDetailArgs(
    public val email: Output? = null,
    public val phone: Output? = null,
    public val role: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.peering.inputs.ContactDetailArgs =
        com.pulumi.azurenative.peering.inputs.ContactDetailArgs.builder()
            .email(email?.applyValue({ args0 -> args0 }))
            .phone(phone?.applyValue({ args0 -> args0 }))
            .role(
                role?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ContactDetailArgs].
 */
@PulumiTagMarker
public class ContactDetailArgsBuilder internal constructor() {
    private var email: Output? = null

    private var phone: Output? = null

    private var role: Output>? = null

    /**
     * @param value The e-mail address of the contact.
     */
    @JvmName("sywbydkdoguggcul")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value The phone number of the contact.
     */
    @JvmName("oxegoopexqjuaman")
    public suspend fun phone(`value`: Output) {
        this.phone = value
    }

    /**
     * @param value The role of the contact.
     */
    @JvmName("hfoudyhvwinhbhxw")
    public suspend fun role(`value`: Output>) {
        this.role = value
    }

    /**
     * @param value The e-mail address of the contact.
     */
    @JvmName("pcfspsodnfqaxdxj")
    public suspend fun email(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.email = mapped
    }

    /**
     * @param value The phone number of the contact.
     */
    @JvmName("kmqorfxudhdasnuv")
    public suspend fun phone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.phone = mapped
    }

    /**
     * @param value The role of the contact.
     */
    @JvmName("ojnsbuauxlawaiks")
    public suspend fun role(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.role = mapped
    }

    /**
     * @param value The role of the contact.
     */
    @JvmName("graxvfyykswgxatf")
    public fun role(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.role = mapped
    }

    /**
     * @param value The role of the contact.
     */
    @JvmName("vdsnpcmtwygeeawl")
    public fun role(`value`: Role) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.role = mapped
    }

    internal fun build(): ContactDetailArgs = ContactDetailArgs(
        email = email,
        phone = phone,
        role = role,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy