com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs.ReplicaSetStatusArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
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.extensions.v1beta1.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.extensions.v1beta1.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 The number of ready replicas for this replica set.
* @property replicas Replicas is the most recently oberved 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.extensions.v1beta1.inputs.ReplicaSetStatusArgs =
com.pulumi.kubernetes.extensions.v1beta1.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("lnorpnfpqjnjlayt")
public suspend fun availableReplicas(`value`: Output) {
this.availableReplicas = value
}
/**
* @param value Represents the latest available observations of a replica set's current state.
*/
@JvmName("uxjsxkpdwgpvswjo")
public suspend fun conditions(`value`: Output>) {
this.conditions = value
}
@JvmName("hfnesmnspexbtryf")
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("uirldkrhsxryptle")
public suspend fun conditions(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy