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

com.pulumi.kubernetes.flowcontrol.v1alpha1.kotlin.inputs.FlowSchemaConditionArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.flowcontrol.v1alpha1.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.kubernetes.flowcontrol.v1alpha1.inputs.FlowSchemaConditionArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * FlowSchemaCondition describes conditions for a FlowSchema.
 * @property lastTransitionTime `lastTransitionTime` is the last time the condition transitioned from one status to another.
 * @property message `message` is a human-readable message indicating details about last transition.
 * @property reason `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
 * @property status `status` is the status of the condition. Can be True, False, Unknown. Required.
 * @property type `type` is the type of the condition. Required.
 */
public data class FlowSchemaConditionArgs(
    public val lastTransitionTime: Output? = null,
    public val message: Output? = null,
    public val reason: Output? = null,
    public val status: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.FlowSchemaConditionArgs =
        com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.FlowSchemaConditionArgs.builder()
            .lastTransitionTime(lastTransitionTime?.applyValue({ args0 -> args0 }))
            .message(message?.applyValue({ args0 -> args0 }))
            .reason(reason?.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FlowSchemaConditionArgs].
 */
@PulumiTagMarker
public class FlowSchemaConditionArgsBuilder internal constructor() {
    private var lastTransitionTime: Output? = null

    private var message: Output? = null

    private var reason: Output? = null

    private var status: Output? = null

    private var type: Output? = null

    /**
     * @param value `lastTransitionTime` is the last time the condition transitioned from one status to another.
     */
    @JvmName("nrtycjwuhjgmymbj")
    public suspend fun lastTransitionTime(`value`: Output) {
        this.lastTransitionTime = value
    }

    /**
     * @param value `message` is a human-readable message indicating details about last transition.
     */
    @JvmName("jqaytpdtviiymtyo")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
     */
    @JvmName("nlmlymtdwqxjayft")
    public suspend fun reason(`value`: Output) {
        this.reason = value
    }

    /**
     * @param value `status` is the status of the condition. Can be True, False, Unknown. Required.
     */
    @JvmName("cgekmutafjahtvlj")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value `type` is the type of the condition. Required.
     */
    @JvmName("lgbgusrujbfthjqs")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value `lastTransitionTime` is the last time the condition transitioned from one status to another.
     */
    @JvmName("asdvdglbyxisshdr")
    public suspend fun lastTransitionTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastTransitionTime = mapped
    }

    /**
     * @param value `message` is a human-readable message indicating details about last transition.
     */
    @JvmName("fvtdbhtmckplnfhf")
    public suspend fun message(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.message = mapped
    }

    /**
     * @param value `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
     */
    @JvmName("uulwtktpvjsvpxwv")
    public suspend fun reason(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reason = mapped
    }

    /**
     * @param value `status` is the status of the condition. Can be True, False, Unknown. Required.
     */
    @JvmName("csoqpdabbgtjirtf")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value `type` is the type of the condition. Required.
     */
    @JvmName("npwwujvevcmxeaxu")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): FlowSchemaConditionArgs = FlowSchemaConditionArgs(
        lastTransitionTime = lastTransitionTime,
        message = message,
        reason = reason,
        status = status,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy