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

com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentConditionProperty.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 ComponentConditionProperty(
    public val `else`: ComponentProperty? = null,
    public val `field`: String? = null,
    public val operand: String? = null,
    public val operandType: String? = null,
    public val `operator`: String? = null,
    public val `property`: String? = null,
    public val then: ComponentProperty? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.amplifyuibuilder.outputs.ComponentConditionProperty): ComponentConditionProperty = ComponentConditionProperty(
            `else` = javaType.else_().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                })
            }).orElse(null),
            `field` = javaType.`field`().map({ args0 -> args0 }).orElse(null),
            operand = javaType.operand().map({ args0 -> args0 }).orElse(null),
            operandType = javaType.operandType().map({ args0 -> args0 }).orElse(null),
            `operator` = javaType.`operator`().map({ args0 -> args0 }).orElse(null),
            `property` = javaType.`property`().map({ args0 -> args0 }).orElse(null),
            then = javaType.then().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy