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

com.pulumi.azurenative.insights.kotlin.inputs.ActionsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.insights.kotlin.inputs

import com.pulumi.azurenative.insights.inputs.ActionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Actions to invoke when the alert fires.
 * @property actionGroups Action Group resource Ids to invoke when the alert fires.
 * @property actionProperties The properties of an action properties.
 * @property customProperties The properties of an alert payload.
 */
public data class ActionsArgs(
    public val actionGroups: Output>? = null,
    public val actionProperties: Output>? = null,
    public val customProperties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.ActionsArgs =
        com.pulumi.azurenative.insights.inputs.ActionsArgs.builder()
            .actionGroups(actionGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .actionProperties(
                actionProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .customProperties(
                customProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ActionsArgs].
 */
@PulumiTagMarker
public class ActionsArgsBuilder internal constructor() {
    private var actionGroups: Output>? = null

    private var actionProperties: Output>? = null

    private var customProperties: Output>? = null

    /**
     * @param value Action Group resource Ids to invoke when the alert fires.
     */
    @JvmName("ovdhdfcvwbhmlwfg")
    public suspend fun actionGroups(`value`: Output>) {
        this.actionGroups = value
    }

    @JvmName("lwqblrdpcekikexx")
    public suspend fun actionGroups(vararg values: Output) {
        this.actionGroups = Output.all(values.asList())
    }

    /**
     * @param values Action Group resource Ids to invoke when the alert fires.
     */
    @JvmName("qtgptfdmgiriljta")
    public suspend fun actionGroups(values: List>) {
        this.actionGroups = Output.all(values)
    }

    /**
     * @param value The properties of an action properties.
     */
    @JvmName("oveklxylefcejwew")
    public suspend fun actionProperties(`value`: Output>) {
        this.actionProperties = value
    }

    /**
     * @param value The properties of an alert payload.
     */
    @JvmName("hphvqkoloxqvlqgy")
    public suspend fun customProperties(`value`: Output>) {
        this.customProperties = value
    }

    /**
     * @param value Action Group resource Ids to invoke when the alert fires.
     */
    @JvmName("ldvljvniknqhywfs")
    public suspend fun actionGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actionGroups = mapped
    }

    /**
     * @param values Action Group resource Ids to invoke when the alert fires.
     */
    @JvmName("upmvktacvueojueu")
    public suspend fun actionGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionGroups = mapped
    }

    /**
     * @param value The properties of an action properties.
     */
    @JvmName("hxhudwdblsnsxggo")
    public suspend fun actionProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actionProperties = mapped
    }

    /**
     * @param values The properties of an action properties.
     */
    @JvmName("rytiegkajlvdynsf")
    public fun actionProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionProperties = mapped
    }

    /**
     * @param value The properties of an alert payload.
     */
    @JvmName("xuykoikeyncegobe")
    public suspend fun customProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customProperties = mapped
    }

    /**
     * @param values The properties of an alert payload.
     */
    @JvmName("lcykttbjjhtrrmhi")
    public fun customProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customProperties = mapped
    }

    internal fun build(): ActionsArgs = ActionsArgs(
        actionGroups = actionGroups,
        actionProperties = actionProperties,
        customProperties = customProperties,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy