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

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

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

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

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

/**
 * Specifies the actions performed when the ``condition`` evaluates to TRUE.
 * @property events Specifies the actions performed when the ``condition`` evaluates to TRUE.
 * @property transitionEvents Specifies the actions performed, and the next state entered, when a ``condition`` evaluates to TRUE.
 */
public data class DetectorModelOnInputArgs(
    public val events: Output>? = null,
    public val transitionEvents: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.DetectorModelOnInputArgs =
        com.pulumi.awsnative.iotevents.inputs.DetectorModelOnInputArgs.builder()
            .events(events?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .transitionEvents(
                transitionEvents?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var transitionEvents: Output>? = null

    /**
     * @param value Specifies the actions performed when the ``condition`` evaluates to TRUE.
     */
    @JvmName("fwwuxgcybaevsnae")
    public suspend fun events(`value`: Output>) {
        this.events = value
    }

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

    /**
     * @param values Specifies the actions performed when the ``condition`` evaluates to TRUE.
     */
    @JvmName("xryxlaipqiodxpmp")
    public suspend fun events(values: List>) {
        this.events = Output.all(values)
    }

    /**
     * @param value Specifies the actions performed, and the next state entered, when a ``condition`` evaluates to TRUE.
     */
    @JvmName("lhvcfcyduwwxwnwj")
    public suspend fun transitionEvents(`value`: Output>) {
        this.transitionEvents = value
    }

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

    /**
     * @param values Specifies the actions performed, and the next state entered, when a ``condition`` evaluates to TRUE.
     */
    @JvmName("jxhfvwbkuasnfxbs")
    public suspend fun transitionEvents(values: List>) {
        this.transitionEvents = Output.all(values)
    }

    /**
     * @param value Specifies the actions performed when the ``condition`` evaluates to TRUE.
     */
    @JvmName("ifmwkchevnphhrqh")
    public suspend fun events(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @param argument Specifies the actions performed when the ``condition`` evaluates to TRUE.
     */
    @JvmName("vgoyhyohnjerovyn")
    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 performed when the ``condition`` evaluates to TRUE.
     */
    @JvmName("fexpkgqkxykkpfsl")
    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 performed when the ``condition`` evaluates to TRUE.
     */
    @JvmName("rnuedwgwbhoyfoqk")
    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 performed when the ``condition`` evaluates to TRUE.
     */
    @JvmName("oehbsudjvesvjuto")
    public suspend fun events(vararg values: DetectorModelEventArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @param value Specifies the actions performed, and the next state entered, when a ``condition`` evaluates to TRUE.
     */
    @JvmName("yollrgeokvckcqrk")
    public suspend fun transitionEvents(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transitionEvents = mapped
    }

    /**
     * @param argument Specifies the actions performed, and the next state entered, when a ``condition`` evaluates to TRUE.
     */
    @JvmName("flxreflfaqspptow")
    public suspend fun transitionEvents(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DetectorModelTransitionEventArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.transitionEvents = mapped
    }

    /**
     * @param argument Specifies the actions performed, and the next state entered, when a ``condition`` evaluates to TRUE.
     */
    @JvmName("npiotbnwylbvixkx")
    public suspend fun transitionEvents(vararg argument: suspend DetectorModelTransitionEventArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DetectorModelTransitionEventArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.transitionEvents = mapped
    }

    /**
     * @param argument Specifies the actions performed, and the next state entered, when a ``condition`` evaluates to TRUE.
     */
    @JvmName("lwpmtqscnotjyjmy")
    public suspend fun transitionEvents(argument: suspend DetectorModelTransitionEventArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DetectorModelTransitionEventArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.transitionEvents = mapped
    }

    /**
     * @param values Specifies the actions performed, and the next state entered, when a ``condition`` evaluates to TRUE.
     */
    @JvmName("mdohljjrnlovmebk")
    public suspend fun transitionEvents(vararg values: DetectorModelTransitionEventArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transitionEvents = mapped
    }

    internal fun build(): DetectorModelOnInputArgs = DetectorModelOnInputArgs(
        events = events,
        transitionEvents = transitionEvents,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy