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

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

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