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

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

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

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

import com.pulumi.awsnative.iotevents.inputs.DetectorModelOnExitArgs.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

/**
 * When exiting this state, perform these ``actions`` if the specified ``condition`` is ``TRUE``.
 * @property events Specifies the ``actions`` that are performed when the state is exited and the ``condition`` is ``TRUE``.
 */
public data class DetectorModelOnExitArgs(
    public val events: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.DetectorModelOnExitArgs =
        com.pulumi.awsnative.iotevents.inputs.DetectorModelOnExitArgs.builder()
            .events(
                events?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value Specifies the ``actions`` that are performed when the state is exited and the ``condition`` is ``TRUE``.
     */
    @JvmName("msakepovaxjypgdo")
    public suspend fun events(`value`: Output>) {
        this.events = value
    }

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

    /**
     * @param values Specifies the ``actions`` that are performed when the state is exited and the ``condition`` is ``TRUE``.
     */
    @JvmName("guaxhmpksftvrfqq")
    public suspend fun events(values: List>) {
        this.events = Output.all(values)
    }

    /**
     * @param value Specifies the ``actions`` that are performed when the state is exited and the ``condition`` is ``TRUE``.
     */
    @JvmName("ixnblkbqokwbdjfs")
    public suspend fun events(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @param argument Specifies the ``actions`` that are performed when the state is exited and the ``condition`` is ``TRUE``.
     */
    @JvmName("iclnkniotmxbduvm")
    public suspend fun events(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DetectorModelEventArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.events = mapped
    }

    /**
     * @param argument Specifies the ``actions`` that are performed when the state is exited and the ``condition`` is ``TRUE``.
     */
    @JvmName("rfyexofotitkcrou")
    public suspend fun events(vararg argument: suspend DetectorModelEventArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DetectorModelEventArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.events = mapped
    }

    /**
     * @param argument Specifies the ``actions`` that are performed when the state is exited and the ``condition`` is ``TRUE``.
     */
    @JvmName("rkvuohghjokqivqd")
    public suspend fun events(argument: suspend DetectorModelEventArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DetectorModelEventArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.events = mapped
    }

    /**
     * @param values Specifies the ``actions`` that are performed when the state is exited and the ``condition`` is ``TRUE``.
     */
    @JvmName("qwcugcwtjtrwgfyc")
    public suspend fun events(vararg values: DetectorModelEventArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.events = mapped
    }

    internal fun build(): DetectorModelOnExitArgs = DetectorModelOnExitArgs(
        events = events,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy