com.pulumi.kubernetes.apps.v1beta2.kotlin.inputs.RollingUpdateStatefulSetStrategyArgs.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.apps.v1beta2.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.apps.v1beta2.inputs.RollingUpdateStatefulSetStrategyArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
* @property partition Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.
*/
public data class RollingUpdateStatefulSetStrategyArgs(
public val partition: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.apps.v1beta2.inputs.RollingUpdateStatefulSetStrategyArgs =
com.pulumi.kubernetes.apps.v1beta2.inputs.RollingUpdateStatefulSetStrategyArgs.builder()
.partition(partition?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RollingUpdateStatefulSetStrategyArgs].
*/
@PulumiTagMarker
public class RollingUpdateStatefulSetStrategyArgsBuilder internal constructor() {
private var partition: Output? = null
/**
* @param value Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.
*/
@JvmName("plcdbgvnkfdxuphn")
public suspend fun partition(`value`: Output) {
this.partition = value
}
/**
* @param value Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.
*/
@JvmName("ggaejxkgtsofdhnl")
public suspend fun partition(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.partition = mapped
}
internal fun build(): RollingUpdateStatefulSetStrategyArgs = RollingUpdateStatefulSetStrategyArgs(
partition = partition,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy