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

com.pulumi.kubernetes.apps.v1beta1.kotlin.inputs.RollingUpdateStatefulSetStrategyArgs.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.v1beta1.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.v1beta1.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.
 */
public data class RollingUpdateStatefulSetStrategyArgs(
    public val partition: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apps.v1beta1.inputs.RollingUpdateStatefulSetStrategyArgs =
        com.pulumi.kubernetes.apps.v1beta1.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.
     */
    @JvmName("giviglflpuwfyner")
    public suspend fun partition(`value`: Output) {
        this.partition = value
    }

    /**
     * @param value Partition indicates the ordinal at which the StatefulSet should be partitioned.
     */
    @JvmName("kwaufgyeqtqbmmlp")
    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