
com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.ComponentConditionPropertyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs
import com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentConditionPropertyArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property else The value to assign to the property if the condition is not met.
* @property field The name of a field. Specify this when the property is a data model.
* @property operand The value of the property to evaluate.
* @property operandType The type of the property to evaluate.
* @property operator The operator to use to perform the evaluation, such as `eq` to represent equals.
* @property property The name of the conditional property.
* @property then The value to assign to the property if the condition is met.
*/
public data class ComponentConditionPropertyArgs(
public val `else`: Output? = null,
public val `field`: Output? = null,
public val operand: Output? = null,
public val operandType: Output? = null,
public val `operator`: Output? = null,
public val `property`: Output? = null,
public val then: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentConditionPropertyArgs = com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentConditionPropertyArgs.builder()
.else_(`else`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`field`(`field`?.applyValue({ args0 -> args0 }))
.operand(operand?.applyValue({ args0 -> args0 }))
.operandType(operandType?.applyValue({ args0 -> args0 }))
.`operator`(`operator`?.applyValue({ args0 -> args0 }))
.`property`(`property`?.applyValue({ args0 -> args0 }))
.then(then?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ComponentConditionPropertyArgs].
*/
@PulumiTagMarker
public class ComponentConditionPropertyArgsBuilder internal constructor() {
private var `else`: Output? = null
private var `field`: Output? = null
private var operand: Output? = null
private var operandType: Output? = null
private var `operator`: Output? = null
private var `property`: Output? = null
private var then: Output? = null
/**
* @param value The value to assign to the property if the condition is not met.
*/
@JvmName("xdtqoxjqygmtihde")
public suspend fun `else`(`value`: Output) {
this.`else` = value
}
/**
* @param value The name of a field. Specify this when the property is a data model.
*/
@JvmName("hfrhipfimdmdppnh")
public suspend fun `field`(`value`: Output) {
this.`field` = value
}
/**
* @param value The value of the property to evaluate.
*/
@JvmName("macwkweellkoqhnk")
public suspend fun operand(`value`: Output) {
this.operand = value
}
/**
* @param value The type of the property to evaluate.
*/
@JvmName("ljpajdmyatferxmb")
public suspend fun operandType(`value`: Output) {
this.operandType = value
}
/**
* @param value The operator to use to perform the evaluation, such as `eq` to represent equals.
*/
@JvmName("kmhfmcipodfkkubs")
public suspend fun `operator`(`value`: Output) {
this.`operator` = value
}
/**
* @param value The name of the conditional property.
*/
@JvmName("xywebhrofoqhtmdb")
public suspend fun `property`(`value`: Output) {
this.`property` = value
}
/**
* @param value The value to assign to the property if the condition is met.
*/
@JvmName("qgnaejabrfntymxb")
public suspend fun then(`value`: Output) {
this.then = value
}
/**
* @param value The value to assign to the property if the condition is not met.
*/
@JvmName("apptpduheaklxoul")
public suspend fun `else`(`value`: ComponentPropertyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`else` = mapped
}
/**
* @param argument The value to assign to the property if the condition is not met.
*/
@JvmName("udpbrnnfgbcsoafe")
public suspend fun `else`(argument: suspend ComponentPropertyArgsBuilder.() -> Unit) {
val toBeMapped = ComponentPropertyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.`else` = mapped
}
/**
* @param value The name of a field. Specify this when the property is a data model.
*/
@JvmName("anuvhitmsbjnmvex")
public suspend fun `field`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`field` = mapped
}
/**
* @param value The value of the property to evaluate.
*/
@JvmName("akcaxgegasvnstnx")
public suspend fun operand(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.operand = mapped
}
/**
* @param value The type of the property to evaluate.
*/
@JvmName("eajtokbxgvivlnhq")
public suspend fun operandType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.operandType = mapped
}
/**
* @param value The operator to use to perform the evaluation, such as `eq` to represent equals.
*/
@JvmName("owxogahkrsygxldg")
public suspend fun `operator`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`operator` = mapped
}
/**
* @param value The name of the conditional property.
*/
@JvmName("acgjmhxklohkbwjb")
public suspend fun `property`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`property` = mapped
}
/**
* @param value The value to assign to the property if the condition is met.
*/
@JvmName("sfmoekwhaotitsdc")
public suspend fun then(`value`: ComponentPropertyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.then = mapped
}
/**
* @param argument The value to assign to the property if the condition is met.
*/
@JvmName("yyluqdsukxbtayif")
public suspend fun then(argument: suspend ComponentPropertyArgsBuilder.() -> Unit) {
val toBeMapped = ComponentPropertyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.then = mapped
}
internal fun build(): ComponentConditionPropertyArgs = ComponentConditionPropertyArgs(
`else` = `else`,
`field` = `field`,
operand = operand,
operandType = operandType,
`operator` = `operator`,
`property` = `property`,
then = then,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy