com.pulumi.gcp.container.kotlin.inputs.NodePoolUpgradeSettingsBlueGreenSettingsArgs.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.NodePoolUpgradeSettingsBlueGreenSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property nodePoolSoakDuration Time needed after draining the entire blue pool.
* After this period, the blue pool will be cleaned up.
* @property standardRolloutPolicy Specifies the standard policy settings for blue-green upgrades.
*/
public data class NodePoolUpgradeSettingsBlueGreenSettingsArgs(
public val nodePoolSoakDuration: Output? = null,
public val standardRolloutPolicy: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.NodePoolUpgradeSettingsBlueGreenSettingsArgs =
com.pulumi.gcp.container.inputs.NodePoolUpgradeSettingsBlueGreenSettingsArgs.builder()
.nodePoolSoakDuration(nodePoolSoakDuration?.applyValue({ args0 -> args0 }))
.standardRolloutPolicy(
standardRolloutPolicy.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [NodePoolUpgradeSettingsBlueGreenSettingsArgs].
*/
@PulumiTagMarker
public class NodePoolUpgradeSettingsBlueGreenSettingsArgsBuilder internal constructor() {
private var nodePoolSoakDuration: Output? = null
private var standardRolloutPolicy:
Output? = null
/**
* @param value Time needed after draining the entire blue pool.
* After this period, the blue pool will be cleaned up.
*/
@JvmName("pchporaagavbyqid")
public suspend fun nodePoolSoakDuration(`value`: Output) {
this.nodePoolSoakDuration = value
}
/**
* @param value Specifies the standard policy settings for blue-green upgrades.
*/
@JvmName("gvvrwxakpbbaeqxc")
public suspend fun standardRolloutPolicy(`value`: Output) {
this.standardRolloutPolicy = value
}
/**
* @param value Time needed after draining the entire blue pool.
* After this period, the blue pool will be cleaned up.
*/
@JvmName("jnimpukxxrejwddm")
public suspend fun nodePoolSoakDuration(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nodePoolSoakDuration = mapped
}
/**
* @param value Specifies the standard policy settings for blue-green upgrades.
*/
@JvmName("wruickrnumunpwrm")
public suspend fun standardRolloutPolicy(`value`: NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.standardRolloutPolicy = mapped
}
/**
* @param argument Specifies the standard policy settings for blue-green upgrades.
*/
@JvmName("rcdjkxeelpsfprdj")
public suspend fun standardRolloutPolicy(argument: suspend NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgsBuilder.() -> Unit) {
val toBeMapped =
NodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.standardRolloutPolicy = mapped
}
internal fun build(): NodePoolUpgradeSettingsBlueGreenSettingsArgs =
NodePoolUpgradeSettingsBlueGreenSettingsArgs(
nodePoolSoakDuration = nodePoolSoakDuration,
standardRolloutPolicy = standardRolloutPolicy ?: throw
PulumiNullFieldException("standardRolloutPolicy"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy