![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iottwinmaker.kotlin.inputs.EntityStatusArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iottwinmaker.kotlin.inputs
import com.pulumi.awsnative.iottwinmaker.inputs.EntityStatusArgs.builder
import com.pulumi.awsnative.iottwinmaker.kotlin.enums.EntityStatusState
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property error
* @property state
*/
public data class EntityStatusArgs(
public val error: Output>? = null,
public val state: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iottwinmaker.inputs.EntityStatusArgs =
com.pulumi.awsnative.iottwinmaker.inputs.EntityStatusArgs.builder()
.error(
error?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.state(state?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [EntityStatusArgs].
*/
@PulumiTagMarker
public class EntityStatusArgsBuilder internal constructor() {
private var error: Output>? = null
private var state: Output? = null
/**
* @param value
*/
@JvmName("nwtjjcjsttjgikoi")
public suspend fun error(`value`: Output>) {
this.error = value
}
/**
* @param value
*/
@JvmName("lhphbmedqhjcgbbm")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value
*/
@JvmName("yhwoqqedrsrydvqr")
public suspend fun error(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.error = mapped
}
/**
* @param value
*/
@JvmName("vvjoqbhsnsicehal")
public fun error(`value`: Any) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.error = mapped
}
/**
* @param value
*/
@JvmName("xnmrpapbwouqbgrl")
public fun error(`value`: EntityStatusErrorPropertiesArgs) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.error = mapped
}
/**
* @param value
*/
@JvmName("lofxepyuljyxxwxt")
public suspend fun state(`value`: EntityStatusState?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): EntityStatusArgs = EntityStatusArgs(
error = error,
state = state,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy