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

com.pulumi.kubernetes.flowcontrol.v1beta3.kotlin.inputs.FlowSchemaStatusArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.flowcontrol.v1beta3.kotlin.inputs

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 com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.FlowSchemaStatusArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * FlowSchemaStatus represents the current state of a FlowSchema.
 * @property conditions `conditions` is a list of the current states of FlowSchema.
 */
public data class FlowSchemaStatusArgs(
    public val conditions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.FlowSchemaStatusArgs =
        com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.FlowSchemaStatusArgs.builder()
            .conditions(
                conditions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [FlowSchemaStatusArgs].
 */
@PulumiTagMarker
public class FlowSchemaStatusArgsBuilder internal constructor() {
    private var conditions: Output>? = null

    /**
     * @param value `conditions` is a list of the current states of FlowSchema.
     */
    @JvmName("iifqunapkpyxnfhc")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

    @JvmName("gvtodkksmmphfrna")
    public suspend fun conditions(vararg values: Output) {
        this.conditions = Output.all(values.asList())
    }

    /**
     * @param values `conditions` is a list of the current states of FlowSchema.
     */
    @JvmName("fhwpyjosptfedxcu")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value `conditions` is a list of the current states of FlowSchema.
     */
    @JvmName("ceuxcvclxmrvlmff")
    public suspend fun conditions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument `conditions` is a list of the current states of FlowSchema.
     */
    @JvmName("egdkvistysuclqcx")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlowSchemaConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument `conditions` is a list of the current states of FlowSchema.
     */
    @JvmName("dbiopwfdsgltyjjg")
    public suspend fun conditions(vararg argument: suspend FlowSchemaConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlowSchemaConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument `conditions` is a list of the current states of FlowSchema.
     */
    @JvmName("dcgmccoiokmoroag")
    public suspend fun conditions(argument: suspend FlowSchemaConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FlowSchemaConditionArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param values `conditions` is a list of the current states of FlowSchema.
     */
    @JvmName("iqyaerrdldvjjopb")
    public suspend fun conditions(vararg values: FlowSchemaConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    internal fun build(): FlowSchemaStatusArgs = FlowSchemaStatusArgs(
        conditions = conditions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy