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

com.pulumi.awsnative.iotevents.kotlin.inputs.AlarmModelAlarmEventActionsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotevents.kotlin.inputs

import com.pulumi.awsnative.iotevents.inputs.AlarmModelAlarmEventActionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Contains information about one or more alarm actions.
 * @property alarmActions Specifies one or more supported actions to receive notifications when the alarm state changes.
 */
public data class AlarmModelAlarmEventActionsArgs(
    public val alarmActions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.AlarmModelAlarmEventActionsArgs =
        com.pulumi.awsnative.iotevents.inputs.AlarmModelAlarmEventActionsArgs.builder()
            .alarmActions(
                alarmActions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value Specifies one or more supported actions to receive notifications when the alarm state changes.
     */
    @JvmName("bsjrdaesiaxdcaaj")
    public suspend fun alarmActions(`value`: Output>) {
        this.alarmActions = value
    }

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

    /**
     * @param values Specifies one or more supported actions to receive notifications when the alarm state changes.
     */
    @JvmName("byngglfgdwfyiyrg")
    public suspend fun alarmActions(values: List>) {
        this.alarmActions = Output.all(values)
    }

    /**
     * @param value Specifies one or more supported actions to receive notifications when the alarm state changes.
     */
    @JvmName("nqsdhhgbndtgoegc")
    public suspend fun alarmActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alarmActions = mapped
    }

    /**
     * @param argument Specifies one or more supported actions to receive notifications when the alarm state changes.
     */
    @JvmName("vfmkbtwnetqymuqp")
    public suspend fun alarmActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AlarmModelAlarmActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.alarmActions = mapped
    }

    /**
     * @param argument Specifies one or more supported actions to receive notifications when the alarm state changes.
     */
    @JvmName("cbvqlfpofdjugepk")
    public suspend fun alarmActions(vararg argument: suspend AlarmModelAlarmActionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AlarmModelAlarmActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.alarmActions = mapped
    }

    /**
     * @param argument Specifies one or more supported actions to receive notifications when the alarm state changes.
     */
    @JvmName("dsbvmjeebyqigptc")
    public suspend fun alarmActions(argument: suspend AlarmModelAlarmActionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AlarmModelAlarmActionArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.alarmActions = mapped
    }

    /**
     * @param values Specifies one or more supported actions to receive notifications when the alarm state changes.
     */
    @JvmName("fxtgkidpdaavuwee")
    public suspend fun alarmActions(vararg values: AlarmModelAlarmActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alarmActions = mapped
    }

    internal fun build(): AlarmModelAlarmEventActionsArgs = AlarmModelAlarmEventActionsArgs(
        alarmActions = alarmActions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy