
com.pulumi.awsnative.iotevents.kotlin.inputs.DetectorModelStateArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotevents.kotlin.inputs
import com.pulumi.awsnative.iotevents.inputs.DetectorModelStateArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Information that defines a state of a detector.
* @property onEnter When entering this state, perform these `actions` if the `condition` is TRUE.
* @property onExit When exiting this state, perform these `actions` if the specified `condition` is `TRUE` .
* @property onInput When an input is received and the `condition` is TRUE, perform the specified `actions` .
* @property stateName The name of the state.
*/
public data class DetectorModelStateArgs(
public val onEnter: Output? = null,
public val onExit: Output? = null,
public val onInput: Output? = null,
public val stateName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotevents.inputs.DetectorModelStateArgs =
com.pulumi.awsnative.iotevents.inputs.DetectorModelStateArgs.builder()
.onEnter(onEnter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.onExit(onExit?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.onInput(onInput?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.stateName(stateName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DetectorModelStateArgs].
*/
@PulumiTagMarker
public class DetectorModelStateArgsBuilder internal constructor() {
private var onEnter: Output? = null
private var onExit: Output? = null
private var onInput: Output? = null
private var stateName: Output? = null
/**
* @param value When entering this state, perform these `actions` if the `condition` is TRUE.
*/
@JvmName("mcnjxlyowgaulnob")
public suspend fun onEnter(`value`: Output) {
this.onEnter = value
}
/**
* @param value When exiting this state, perform these `actions` if the specified `condition` is `TRUE` .
*/
@JvmName("gojijmjsarucuhxb")
public suspend fun onExit(`value`: Output) {
this.onExit = value
}
/**
* @param value When an input is received and the `condition` is TRUE, perform the specified `actions` .
*/
@JvmName("otlhraduvylwykuy")
public suspend fun onInput(`value`: Output) {
this.onInput = value
}
/**
* @param value The name of the state.
*/
@JvmName("ryonvemxlkqodwxl")
public suspend fun stateName(`value`: Output) {
this.stateName = value
}
/**
* @param value When entering this state, perform these `actions` if the `condition` is TRUE.
*/
@JvmName("gvdxwweprnpjmoek")
public suspend fun onEnter(`value`: DetectorModelOnEnterArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onEnter = mapped
}
/**
* @param argument When entering this state, perform these `actions` if the `condition` is TRUE.
*/
@JvmName("bhggrvmxdebxadyv")
public suspend fun onEnter(argument: suspend DetectorModelOnEnterArgsBuilder.() -> Unit) {
val toBeMapped = DetectorModelOnEnterArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.onEnter = mapped
}
/**
* @param value When exiting this state, perform these `actions` if the specified `condition` is `TRUE` .
*/
@JvmName("wbdjscyerltvrxuv")
public suspend fun onExit(`value`: DetectorModelOnExitArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onExit = mapped
}
/**
* @param argument When exiting this state, perform these `actions` if the specified `condition` is `TRUE` .
*/
@JvmName("cokmpbdimjdjdrdq")
public suspend fun onExit(argument: suspend DetectorModelOnExitArgsBuilder.() -> Unit) {
val toBeMapped = DetectorModelOnExitArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.onExit = mapped
}
/**
* @param value When an input is received and the `condition` is TRUE, perform the specified `actions` .
*/
@JvmName("fuocmeyghvnjgkga")
public suspend fun onInput(`value`: DetectorModelOnInputArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onInput = mapped
}
/**
* @param argument When an input is received and the `condition` is TRUE, perform the specified `actions` .
*/
@JvmName("pusbkufhhwmboqil")
public suspend fun onInput(argument: suspend DetectorModelOnInputArgsBuilder.() -> Unit) {
val toBeMapped = DetectorModelOnInputArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.onInput = mapped
}
/**
* @param value The name of the state.
*/
@JvmName("eiqihnrxsoffocoe")
public suspend fun stateName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.stateName = mapped
}
internal fun build(): DetectorModelStateArgs = DetectorModelStateArgs(
onEnter = onEnter,
onExit = onExit,
onInput = onInput,
stateName = stateName ?: throw PulumiNullFieldException("stateName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy