com.pulumi.awsnative.databrew.kotlin.inputs.RecipeConditionExpressionArgs.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.databrew.kotlin.inputs
import com.pulumi.awsnative.databrew.inputs.RecipeConditionExpressionArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Condition expressions applied to the step action
* @property condition Input condition to be applied to the target column
* @property targetColumn Name of the target column
* @property value Value of the condition
*/
public data class RecipeConditionExpressionArgs(
public val condition: Output,
public val targetColumn: Output,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.databrew.inputs.RecipeConditionExpressionArgs =
com.pulumi.awsnative.databrew.inputs.RecipeConditionExpressionArgs.builder()
.condition(condition.applyValue({ args0 -> args0 }))
.targetColumn(targetColumn.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RecipeConditionExpressionArgs].
*/
@PulumiTagMarker
public class RecipeConditionExpressionArgsBuilder internal constructor() {
private var condition: Output? = null
private var targetColumn: Output? = null
private var `value`: Output? = null
/**
* @param value Input condition to be applied to the target column
*/
@JvmName("jwmjgkrmwpcuuhtn")
public suspend fun condition(`value`: Output) {
this.condition = value
}
/**
* @param value Name of the target column
*/
@JvmName("rufrbcylwbancrpb")
public suspend fun targetColumn(`value`: Output) {
this.targetColumn = value
}
/**
* @param value Value of the condition
*/
@JvmName("ugjvjfafalwqxwxm")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Input condition to be applied to the target column
*/
@JvmName("ecussgdedwckegvv")
public suspend fun condition(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.condition = mapped
}
/**
* @param value Name of the target column
*/
@JvmName("gmhtlxtlbnrgoqpl")
public suspend fun targetColumn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.targetColumn = mapped
}
/**
* @param value Value of the condition
*/
@JvmName("ittasldvfjgafvhn")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): RecipeConditionExpressionArgs = RecipeConditionExpressionArgs(
condition = condition ?: throw PulumiNullFieldException("condition"),
targetColumn = targetColumn ?: throw PulumiNullFieldException("targetColumn"),
`value` = `value`,
)
}