com.pulumi.gcp.container.kotlin.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.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
ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs(
public val batchNodeCount: Output? = null,
public val batchPercentage: Output? = null,
public val batchSoakDuration: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs =
com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs.builder()
.batchNodeCount(batchNodeCount?.applyValue({ args0 -> args0 }))
.batchPercentage(batchPercentage?.applyValue({ args0 -> args0 }))
.batchSoakDuration(batchSoakDuration?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs].
*/
@PulumiTagMarker
public class
ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgsBuilder
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("vgifvpeuxxgllrqc")
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("yyvehkesecdxympl")
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("saiswpaewjjmcpgn")
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("yoarvuofcjwiqylx")
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("tidisknetqjarvfs")
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("erhvhjxehhqxbnob")
public suspend fun batchSoakDuration(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.batchSoakDuration = mapped
}
internal fun build(): ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs =
ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs(
batchNodeCount = batchNodeCount,
batchPercentage = batchPercentage,
batchSoakDuration = batchSoakDuration,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy