com.pulumi.azure.keyvault.kotlin.inputs.KeyVaultContactArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.keyvault.kotlin.inputs
import com.pulumi.azure.keyvault.inputs.KeyVaultContactArgs.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
/**
*
* @property email E-mail address of the contact.
* @property name Name of the contact.
* @property phone Phone number of the contact.
*/
public data class KeyVaultContactArgs(
public val email: Output,
public val name: Output? = null,
public val phone: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.keyvault.inputs.KeyVaultContactArgs =
com.pulumi.azure.keyvault.inputs.KeyVaultContactArgs.builder()
.email(email.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.phone(phone?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KeyVaultContactArgs].
*/
@PulumiTagMarker
public class KeyVaultContactArgsBuilder internal constructor() {
private var email: Output? = null
private var name: Output? = null
private var phone: Output? = null
/**
* @param value E-mail address of the contact.
*/
@JvmName("fslsjuypaqoovfwr")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value Name of the contact.
*/
@JvmName("uoirrrlmfqfnjtyt")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Phone number of the contact.
*/
@JvmName("rfkjjdqcuahrcbmn")
public suspend fun phone(`value`: Output) {
this.phone = value
}
/**
* @param value E-mail address of the contact.
*/
@JvmName("lmxweuamykrsosfb")
public suspend fun email(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.email = mapped
}
/**
* @param value Name of the contact.
*/
@JvmName("yjwyjkfyhmjeqsud")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Phone number of the contact.
*/
@JvmName("icjlufvtgjlpkxdt")
public suspend fun phone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.phone = mapped
}
internal fun build(): KeyVaultContactArgs = KeyVaultContactArgs(
email = email ?: throw PulumiNullFieldException("email"),
name = name,
phone = phone,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy