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

com.pulumi.kubernetes.apps.v1beta2.kotlin.inputs.DeploymentConditionArgs.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.apps.v1beta2.kotlin.inputs

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 com.pulumi.kubernetes.apps.v1beta2.inputs.DeploymentConditionArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * DeploymentCondition describes the state of a deployment at a certain point.
 * @property lastTransitionTime Last time the condition transitioned from one status to another.
 * @property lastUpdateTime The last time this condition was updated.
 * @property message A human readable message indicating details about the transition.
 * @property reason The reason for the condition's last transition.
 * @property status Status of the condition, one of True, False, Unknown.
 * @property type Type of deployment condition.
 */
public data class DeploymentConditionArgs(
    public val lastTransitionTime: Output? = null,
    public val lastUpdateTime: Output? = null,
    public val message: Output? = null,
    public val reason: Output? = null,
    public val status: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apps.v1beta2.inputs.DeploymentConditionArgs =
        com.pulumi.kubernetes.apps.v1beta2.inputs.DeploymentConditionArgs.builder()
            .lastTransitionTime(lastTransitionTime?.applyValue({ args0 -> args0 }))
            .lastUpdateTime(lastUpdateTime?.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 [DeploymentConditionArgs].
 */
@PulumiTagMarker
public class DeploymentConditionArgsBuilder internal constructor() {
    private var lastTransitionTime: Output? = null

    private var lastUpdateTime: Output? = null

    private var message: Output? = null

    private var reason: Output? = null

    private var status: Output? = null

    private var type: Output? = null

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

    /**
     * @param value The last time this condition was updated.
     */
    @JvmName("hqphhkyvdrbpfmsx")
    public suspend fun lastUpdateTime(`value`: Output) {
        this.lastUpdateTime = value
    }

    /**
     * @param value A human readable message indicating details about the transition.
     */
    @JvmName("jlgqhsiflxixiahy")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value The reason for the condition's last transition.
     */
    @JvmName("nfovsrsjrxorkbwb")
    public suspend fun reason(`value`: Output) {
        this.reason = value
    }

    /**
     * @param value Status of the condition, one of True, False, Unknown.
     */
    @JvmName("xdmxqpohljyubvcf")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value Type of deployment condition.
     */
    @JvmName("vjwctuhvxsywspgl")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value The last time this condition was updated.
     */
    @JvmName("pbhcwmmeebwnnjyx")
    public suspend fun lastUpdateTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastUpdateTime = mapped
    }

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

    /**
     * @param value The reason for the condition's last transition.
     */
    @JvmName("swcnshpwuumjwaqw")
    public suspend fun reason(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reason = mapped
    }

    /**
     * @param value Status of the condition, one of True, False, Unknown.
     */
    @JvmName("mrktyeqbfspqtydt")
    public suspend fun status(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Type of deployment condition.
     */
    @JvmName("prlqjfxddcefifsj")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DeploymentConditionArgs = DeploymentConditionArgs(
        lastTransitionTime = lastTransitionTime,
        lastUpdateTime = lastUpdateTime,
        message = message,
        reason = reason,
        status = status ?: throw PulumiNullFieldException("status"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy