
com.pulumi.googlenative.compute.alpha.kotlin.inputs.NodeGroupAutoscalingPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.alpha.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.alpha.inputs.NodeGroupAutoscalingPolicyArgs.builder
import com.pulumi.googlenative.compute.alpha.kotlin.enums.NodeGroupAutoscalingPolicyMode
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxNodes The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
* @property minNodes The minimum number of nodes that the group should have.
* @property mode The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
*/
public data class NodeGroupAutoscalingPolicyArgs(
public val maxNodes: Output? = null,
public val minNodes: Output? = null,
public val mode: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.alpha.inputs.NodeGroupAutoscalingPolicyArgs = com.pulumi.googlenative.compute.alpha.inputs.NodeGroupAutoscalingPolicyArgs.builder()
.maxNodes(maxNodes?.applyValue({ args0 -> args0 }))
.minNodes(minNodes?.applyValue({ args0 -> args0 }))
.mode(mode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [NodeGroupAutoscalingPolicyArgs].
*/
@PulumiTagMarker
public class NodeGroupAutoscalingPolicyArgsBuilder internal constructor() {
private var maxNodes: Output? = null
private var minNodes: Output? = null
private var mode: Output? = null
/**
* @param value The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
*/
@JvmName("ewwsyyualopafblc")
public suspend fun maxNodes(`value`: Output) {
this.maxNodes = value
}
/**
* @param value The minimum number of nodes that the group should have.
*/
@JvmName("brysvcsphkgtxujd")
public suspend fun minNodes(`value`: Output) {
this.minNodes = value
}
/**
* @param value The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
*/
@JvmName("rmkiikamurmhpnpq")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
*/
@JvmName("vsxadummgqlvypgi")
public suspend fun maxNodes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxNodes = mapped
}
/**
* @param value The minimum number of nodes that the group should have.
*/
@JvmName("mtvasqxygdtlclnd")
public suspend fun minNodes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minNodes = mapped
}
/**
* @param value The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
*/
@JvmName("gcjtubgperueuifv")
public suspend fun mode(`value`: NodeGroupAutoscalingPolicyMode?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mode = mapped
}
internal fun build(): NodeGroupAutoscalingPolicyArgs = NodeGroupAutoscalingPolicyArgs(
maxNodes = maxNodes,
minNodes = minNodes,
mode = mode,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy