com.pulumi.kubernetes.apps.v1beta2.kotlin.inputs.RollingUpdateStatefulSetStrategyPatchArgs.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.
@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.RollingUpdateStatefulSetStrategyPatchArgs.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 RollingUpdateStatefulSetStrategyPatchArgs(
public val partition: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.apps.v1beta2.inputs.RollingUpdateStatefulSetStrategyPatchArgs =
com.pulumi.kubernetes.apps.v1beta2.inputs.RollingUpdateStatefulSetStrategyPatchArgs.builder()
.partition(partition?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RollingUpdateStatefulSetStrategyPatchArgs].
*/
@PulumiTagMarker
public class RollingUpdateStatefulSetStrategyPatchArgsBuilder 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("rlqhqfdehatgrufh")
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("btfeghxganoihvup")
public suspend fun partition(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.partition = mapped
}
internal fun build(): RollingUpdateStatefulSetStrategyPatchArgs =
RollingUpdateStatefulSetStrategyPatchArgs(
partition = partition,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy