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

com.pulumi.kubernetes.apps.v1.kotlin.inputs.ReplicaSetStatusArgs.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.apps.v1.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.kotlin.applySuspend
import com.pulumi.kubernetes.apps.v1.inputs.ReplicaSetStatusArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * ReplicaSetStatus represents the current status of a ReplicaSet.
 * @property availableReplicas The number of available replicas (ready for at least minReadySeconds) for this replica set.
 * @property conditions Represents the latest available observations of a replica set's current state.
 * @property fullyLabeledReplicas The number of pods that have labels matching the labels of the pod template of the replicaset.
 * @property observedGeneration ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
 * @property readyReplicas readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
 * @property replicas Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
 */
public data class ReplicaSetStatusArgs(
    public val availableReplicas: Output? = null,
    public val conditions: Output>? = null,
    public val fullyLabeledReplicas: Output? = null,
    public val observedGeneration: Output? = null,
    public val readyReplicas: Output? = null,
    public val replicas: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apps.v1.inputs.ReplicaSetStatusArgs =
        com.pulumi.kubernetes.apps.v1.inputs.ReplicaSetStatusArgs.builder()
            .availableReplicas(availableReplicas?.applyValue({ args0 -> args0 }))
            .conditions(
                conditions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .fullyLabeledReplicas(fullyLabeledReplicas?.applyValue({ args0 -> args0 }))
            .observedGeneration(observedGeneration?.applyValue({ args0 -> args0 }))
            .readyReplicas(readyReplicas?.applyValue({ args0 -> args0 }))
            .replicas(replicas.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReplicaSetStatusArgs].
 */
@PulumiTagMarker
public class ReplicaSetStatusArgsBuilder internal constructor() {
    private var availableReplicas: Output? = null

    private var conditions: Output>? = null

    private var fullyLabeledReplicas: Output? = null

    private var observedGeneration: Output? = null

    private var readyReplicas: Output? = null

    private var replicas: Output? = null

    /**
     * @param value The number of available replicas (ready for at least minReadySeconds) for this replica set.
     */
    @JvmName("mccxuqvgbobgucdo")
    public suspend fun availableReplicas(`value`: Output) {
        this.availableReplicas = value
    }

    /**
     * @param value Represents the latest available observations of a replica set's current state.
     */
    @JvmName("xkbwlgrjpyphxwmm")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

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

    /**
     * @param values Represents the latest available observations of a replica set's current state.
     */
    @JvmName("ovhkttkyvuulvexv")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value The number of pods that have labels matching the labels of the pod template of the replicaset.
     */
    @JvmName("dstwlsokobbtqums")
    public suspend fun fullyLabeledReplicas(`value`: Output) {
        this.fullyLabeledReplicas = value
    }

    /**
     * @param value ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
     */
    @JvmName("duiiovejtjcgwobc")
    public suspend fun observedGeneration(`value`: Output) {
        this.observedGeneration = value
    }

    /**
     * @param value readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
     */
    @JvmName("ssofnlwosxirkwni")
    public suspend fun readyReplicas(`value`: Output) {
        this.readyReplicas = value
    }

    /**
     * @param value Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
     */
    @JvmName("gmfwyvkmtucskeio")
    public suspend fun replicas(`value`: Output) {
        this.replicas = value
    }

    /**
     * @param value The number of available replicas (ready for at least minReadySeconds) for this replica set.
     */
    @JvmName("xgyedhpswiptocrh")
    public suspend fun availableReplicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availableReplicas = mapped
    }

    /**
     * @param value Represents the latest available observations of a replica set's current state.
     */
    @JvmName("fwpxfouuugfnfpgy")
    public suspend fun conditions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument Represents the latest available observations of a replica set's current state.
     */
    @JvmName("domdwxrsltepnchv")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicaSetConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument Represents the latest available observations of a replica set's current state.
     */
    @JvmName("tnvtunlknlsjecbu")
    public suspend fun conditions(vararg argument: suspend ReplicaSetConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicaSetConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument Represents the latest available observations of a replica set's current state.
     */
    @JvmName("crfbreteraqrkxni")
    public suspend fun conditions(argument: suspend ReplicaSetConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ReplicaSetConditionArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param values Represents the latest available observations of a replica set's current state.
     */
    @JvmName("rwcpuwoqowjwwjuj")
    public suspend fun conditions(vararg values: ReplicaSetConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param value The number of pods that have labels matching the labels of the pod template of the replicaset.
     */
    @JvmName("snimxdjfrkuovkml")
    public suspend fun fullyLabeledReplicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fullyLabeledReplicas = mapped
    }

    /**
     * @param value ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
     */
    @JvmName("nrqntwrfiadishhm")
    public suspend fun observedGeneration(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.observedGeneration = mapped
    }

    /**
     * @param value readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
     */
    @JvmName("aqmhelanjfkoekcf")
    public suspend fun readyReplicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readyReplicas = mapped
    }

    /**
     * @param value Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
     */
    @JvmName("tjtabuypkhnskdsb")
    public suspend fun replicas(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.replicas = mapped
    }

    internal fun build(): ReplicaSetStatusArgs = ReplicaSetStatusArgs(
        availableReplicas = availableReplicas,
        conditions = conditions,
        fullyLabeledReplicas = fullyLabeledReplicas,
        observedGeneration = observedGeneration,
        readyReplicas = readyReplicas,
        replicas = replicas ?: throw PulumiNullFieldException("replicas"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy