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

com.pulumi.kubernetes.apps.v1.kotlin.inputs.StatefulSetUpdateStrategyPatchArgs.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.v1.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.kotlin.applySuspend
import com.pulumi.kubernetes.apps.v1.inputs.StatefulSetUpdateStrategyPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.
 * @property rollingUpdate RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
 * @property type Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.
 */
public data class StatefulSetUpdateStrategyPatchArgs(
    public val rollingUpdate: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apps.v1.inputs.StatefulSetUpdateStrategyPatchArgs =
        com.pulumi.kubernetes.apps.v1.inputs.StatefulSetUpdateStrategyPatchArgs.builder()
            .rollingUpdate(rollingUpdate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StatefulSetUpdateStrategyPatchArgs].
 */
@PulumiTagMarker
public class StatefulSetUpdateStrategyPatchArgsBuilder internal constructor() {
    private var rollingUpdate: Output? = null

    private var type: Output? = null

    /**
     * @param value RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
     */
    @JvmName("qpjbidenlkxgpghy")
    public suspend fun rollingUpdate(`value`: Output) {
        this.rollingUpdate = value
    }

    /**
     * @param value Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.
     */
    @JvmName("udtfcccgicqxnauf")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
     */
    @JvmName("ayscsllypgyouqaj")
    public suspend fun rollingUpdate(`value`: RollingUpdateStatefulSetStrategyPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rollingUpdate = mapped
    }

    /**
     * @param argument RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
     */
    @JvmName("vnhwrfanupbvhbye")
    public suspend fun rollingUpdate(argument: suspend RollingUpdateStatefulSetStrategyPatchArgsBuilder.() -> Unit) {
        val toBeMapped = RollingUpdateStatefulSetStrategyPatchArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.rollingUpdate = mapped
    }

    /**
     * @param value Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.
     */
    @JvmName("pvykejuomgxulorx")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): StatefulSetUpdateStrategyPatchArgs = StatefulSetUpdateStrategyPatchArgs(
        rollingUpdate = rollingUpdate,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy