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

com.pulumi.gcp.container.kotlin.inputs.NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property batchNodeCount Number of blue nodes to drain in a batch.
 * @property batchPercentage Percentage of the blue pool nodes to drain in a batch.
 * @property batchSoakDuration Soak time after each batch gets drained.
 */
public data class NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs(
    public val batchNodeCount: Output? = null,
    public val batchPercentage: Output? = null,
    public val batchSoakDuration: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs =
        com.pulumi.gcp.container.inputs.NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.builder()
            .batchNodeCount(batchNodeCount?.applyValue({ args0 -> args0 }))
            .batchPercentage(batchPercentage?.applyValue({ args0 -> args0 }))
            .batchSoakDuration(batchSoakDuration?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs].
 */
@PulumiTagMarker
public class NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgsBuilder internal constructor() {
    private var batchNodeCount: Output? = null

    private var batchPercentage: Output? = null

    private var batchSoakDuration: Output? = null

    /**
     * @param value Number of blue nodes to drain in a batch.
     */
    @JvmName("atmmfwgolraxhebt")
    public suspend fun batchNodeCount(`value`: Output) {
        this.batchNodeCount = value
    }

    /**
     * @param value Percentage of the blue pool nodes to drain in a batch.
     */
    @JvmName("uxgpxjgqchgrsyil")
    public suspend fun batchPercentage(`value`: Output) {
        this.batchPercentage = value
    }

    /**
     * @param value Soak time after each batch gets drained.
     */
    @JvmName("xawhxcxegnftecrx")
    public suspend fun batchSoakDuration(`value`: Output) {
        this.batchSoakDuration = value
    }

    /**
     * @param value Number of blue nodes to drain in a batch.
     */
    @JvmName("veatsycsephgrpqy")
    public suspend fun batchNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchNodeCount = mapped
    }

    /**
     * @param value Percentage of the blue pool nodes to drain in a batch.
     */
    @JvmName("jlhvbcaxnfgocska")
    public suspend fun batchPercentage(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchPercentage = mapped
    }

    /**
     * @param value Soak time after each batch gets drained.
     */
    @JvmName("bvpvqoepvmvyejei")
    public suspend fun batchSoakDuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchSoakDuration = mapped
    }

    internal fun build(): NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs =
        NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs(
            batchNodeCount = batchNodeCount,
            batchPercentage = batchPercentage,
            batchSoakDuration = batchSoakDuration,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy