![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.insights.kotlin.inputs.EmailReceiverArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.insights.kotlin.inputs
import com.pulumi.azurenative.insights.inputs.EmailReceiverArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* An email receiver.
* @property emailAddress The email address of this receiver.
* @property name The name of the email receiver. Names must be unique across all receivers within a tenant action group.
* @property useCommonAlertSchema Indicates whether to use common alert schema.
*/
public data class EmailReceiverArgs(
public val emailAddress: Output,
public val name: Output,
public val useCommonAlertSchema: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.inputs.EmailReceiverArgs =
com.pulumi.azurenative.insights.inputs.EmailReceiverArgs.builder()
.emailAddress(emailAddress.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.useCommonAlertSchema(useCommonAlertSchema?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EmailReceiverArgs].
*/
@PulumiTagMarker
public class EmailReceiverArgsBuilder internal constructor() {
private var emailAddress: Output? = null
private var name: Output? = null
private var useCommonAlertSchema: Output? = null
/**
* @param value The email address of this receiver.
*/
@JvmName("lxhweaodoxlednjc")
public suspend fun emailAddress(`value`: Output) {
this.emailAddress = value
}
/**
* @param value The name of the email receiver. Names must be unique across all receivers within a tenant action group.
*/
@JvmName("xukjcfwgmyrhovky")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Indicates whether to use common alert schema.
*/
@JvmName("rpqqmimxtghjgpwa")
public suspend fun useCommonAlertSchema(`value`: Output) {
this.useCommonAlertSchema = value
}
/**
* @param value The email address of this receiver.
*/
@JvmName("kwetkguhbwjrovxp")
public suspend fun emailAddress(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.emailAddress = mapped
}
/**
* @param value The name of the email receiver. Names must be unique across all receivers within a tenant action group.
*/
@JvmName("fhdvpabyilrbvcuo")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Indicates whether to use common alert schema.
*/
@JvmName("pdlnvkrrrsiimfor")
public suspend fun useCommonAlertSchema(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useCommonAlertSchema = mapped
}
internal fun build(): EmailReceiverArgs = EmailReceiverArgs(
emailAddress = emailAddress ?: throw PulumiNullFieldException("emailAddress"),
name = name ?: throw PulumiNullFieldException("name"),
useCommonAlertSchema = useCommonAlertSchema,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy