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

com.pulumi.gcp.container.kotlin.inputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.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.ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.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. Only one of the batch_percentage or batch_node_count can be specified.
 * @property batchPercentage Percentage of the bool pool nodes to drain in a batch. The range of this field should be (0.0, 1.0). Only one of the batch_percentage or batch_node_count can be specified.
 * @property batchSoakDuration Soak time after each batch gets drained. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".`.
 */
public data class ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs(
    public val batchNodeCount: Output? = null,
    public val batchPercentage: Output? = null,
    public val batchSoakDuration: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs =
        com.pulumi.gcp.container.inputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.builder()
            .batchNodeCount(batchNodeCount?.applyValue({ args0 -> args0 }))
            .batchPercentage(batchPercentage?.applyValue({ args0 -> args0 }))
            .batchSoakDuration(batchSoakDuration?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs].
 */
@PulumiTagMarker
public class ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgsBuilder
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. Only one of the batch_percentage or batch_node_count can be specified.
     */
    @JvmName("svrkbdiyrqijvbgu")
    public suspend fun batchNodeCount(`value`: Output) {
        this.batchNodeCount = value
    }

    /**
     * @param value Percentage of the bool pool nodes to drain in a batch. The range of this field should be (0.0, 1.0). Only one of the batch_percentage or batch_node_count can be specified.
     */
    @JvmName("jwivhjioqawshvjv")
    public suspend fun batchPercentage(`value`: Output) {
        this.batchPercentage = value
    }

    /**
     * @param value Soak time after each batch gets drained. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".`.
     */
    @JvmName("tvrpjilrmhiwxhrt")
    public suspend fun batchSoakDuration(`value`: Output) {
        this.batchSoakDuration = value
    }

    /**
     * @param value Number of blue nodes to drain in a batch. Only one of the batch_percentage or batch_node_count can be specified.
     */
    @JvmName("rwtxturevurcrnmp")
    public suspend fun batchNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchNodeCount = mapped
    }

    /**
     * @param value Percentage of the bool pool nodes to drain in a batch. The range of this field should be (0.0, 1.0). Only one of the batch_percentage or batch_node_count can be specified.
     */
    @JvmName("gwhawepajtgdbbhk")
    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. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".`.
     */
    @JvmName("guuwuraghjptqyrf")
    public suspend fun batchSoakDuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchSoakDuration = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy