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

com.pulumi.azure.monitoring.kotlin.inputs.ActionGroupEmailReceiverArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.ActionGroupEmailReceiverArgs.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

/**
 *
 * @property emailAddress The email address of this receiver.
 * @property name The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.
 * @property useCommonAlertSchema Enables or disables the common alert schema.
 */
public data class ActionGroupEmailReceiverArgs(
    public val emailAddress: Output,
    public val name: Output,
    public val useCommonAlertSchema: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActionGroupEmailReceiverArgs =
        com.pulumi.azure.monitoring.inputs.ActionGroupEmailReceiverArgs.builder()
            .emailAddress(emailAddress.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .useCommonAlertSchema(useCommonAlertSchema?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ActionGroupEmailReceiverArgs].
 */
@PulumiTagMarker
public class ActionGroupEmailReceiverArgsBuilder 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("mcowsxdvnyfgjens")
    public suspend fun emailAddress(`value`: Output) {
        this.emailAddress = value
    }

    /**
     * @param value The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.
     */
    @JvmName("pbaxbxahnewcjwmm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Enables or disables the common alert schema.
     */
    @JvmName("bfkklpyfolmquvlp")
    public suspend fun useCommonAlertSchema(`value`: Output) {
        this.useCommonAlertSchema = value
    }

    /**
     * @param value The email address of this receiver.
     */
    @JvmName("trijxtxalpcfclek")
    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 (case-insensitive) across all receivers within an action group.
     */
    @JvmName("xlamrubdwghaowax")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Enables or disables the common alert schema.
     */
    @JvmName("nwnasucqxuboecsk")
    public suspend fun useCommonAlertSchema(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useCommonAlertSchema = mapped
    }

    internal fun build(): ActionGroupEmailReceiverArgs = ActionGroupEmailReceiverArgs(
        emailAddress = emailAddress ?: throw PulumiNullFieldException("emailAddress"),
        name = name ?: throw PulumiNullFieldException("name"),
        useCommonAlertSchema = useCommonAlertSchema,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy