com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareNodePoolNodePoolAutoscalingArgs.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.gkeonprem.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.VMwareNodePoolNodePoolAutoscalingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxReplicas Maximum number of replicas in the NodePool.
* @property minReplicas Minimum number of replicas in the NodePool.
*/
public data class VMwareNodePoolNodePoolAutoscalingArgs(
public val maxReplicas: Output,
public val minReplicas: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareNodePoolNodePoolAutoscalingArgs =
com.pulumi.gcp.gkeonprem.inputs.VMwareNodePoolNodePoolAutoscalingArgs.builder()
.maxReplicas(maxReplicas.applyValue({ args0 -> args0 }))
.minReplicas(minReplicas.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VMwareNodePoolNodePoolAutoscalingArgs].
*/
@PulumiTagMarker
public class VMwareNodePoolNodePoolAutoscalingArgsBuilder internal constructor() {
private var maxReplicas: Output? = null
private var minReplicas: Output? = null
/**
* @param value Maximum number of replicas in the NodePool.
*/
@JvmName("ptpjxwuaqyqutjof")
public suspend fun maxReplicas(`value`: Output) {
this.maxReplicas = value
}
/**
* @param value Minimum number of replicas in the NodePool.
*/
@JvmName("lgjcrglpgycmkooe")
public suspend fun minReplicas(`value`: Output) {
this.minReplicas = value
}
/**
* @param value Maximum number of replicas in the NodePool.
*/
@JvmName("aiamsfmfdojghvan")
public suspend fun maxReplicas(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maxReplicas = mapped
}
/**
* @param value Minimum number of replicas in the NodePool.
*/
@JvmName("goxtmqqggwnbkrya")
public suspend fun minReplicas(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minReplicas = mapped
}
internal fun build(): VMwareNodePoolNodePoolAutoscalingArgs =
VMwareNodePoolNodePoolAutoscalingArgs(
maxReplicas = maxReplicas ?: throw PulumiNullFieldException("maxReplicas"),
minReplicas = minReplicas ?: throw PulumiNullFieldException("minReplicas"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy