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

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

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

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

import com.pulumi.awsnative.iotevents.inputs.AlarmModelAcknowledgeFlowArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies whether to get notified for alarm state changes.
 * @property enabled The value must be ``TRUE`` or ``FALSE``. If ``TRUE``, you receive a notification when the alarm state changes. You must choose to acknowledge the notification before the alarm state can return to ``NORMAL``. If ``FALSE``, you won't receive notifications. The alarm automatically changes to the ``NORMAL`` state when the input property value returns to the specified range.
 */
public data class AlarmModelAcknowledgeFlowArgs(
    public val enabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.AlarmModelAcknowledgeFlowArgs =
        com.pulumi.awsnative.iotevents.inputs.AlarmModelAcknowledgeFlowArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlarmModelAcknowledgeFlowArgs].
 */
@PulumiTagMarker
public class AlarmModelAcknowledgeFlowArgsBuilder internal constructor() {
    private var enabled: Output? = null

    /**
     * @param value The value must be ``TRUE`` or ``FALSE``. If ``TRUE``, you receive a notification when the alarm state changes. You must choose to acknowledge the notification before the alarm state can return to ``NORMAL``. If ``FALSE``, you won't receive notifications. The alarm automatically changes to the ``NORMAL`` state when the input property value returns to the specified range.
     */
    @JvmName("ccwcrghmyxkftlqn")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The value must be ``TRUE`` or ``FALSE``. If ``TRUE``, you receive a notification when the alarm state changes. You must choose to acknowledge the notification before the alarm state can return to ``NORMAL``. If ``FALSE``, you won't receive notifications. The alarm automatically changes to the ``NORMAL`` state when the input property value returns to the specified range.
     */
    @JvmName("hbqbaicyenoayqys")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    internal fun build(): AlarmModelAcknowledgeFlowArgs = AlarmModelAcknowledgeFlowArgs(
        enabled = enabled,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy