com.pulumi.gcp.compute.kotlin.inputs.AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs.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.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property fixed Specifies a fixed number of VM instances. This must be a positive
* integer.
* @property percent Specifies a percentage of instances between 0 to 100%, inclusive.
* For example, specify 80 for 80%.
*/
public data class AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs(
public val fixed: Output? = null,
public val percent: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs =
com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs.builder()
.fixed(fixed?.applyValue({ args0 -> args0 }))
.percent(percent?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs].
*/
@PulumiTagMarker
public class AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgsBuilder internal constructor() {
private var fixed: Output? = null
private var percent: Output? = null
/**
* @param value Specifies a fixed number of VM instances. This must be a positive
* integer.
*/
@JvmName("uspqgnsrbetbsoep")
public suspend fun fixed(`value`: Output) {
this.fixed = value
}
/**
* @param value Specifies a percentage of instances between 0 to 100%, inclusive.
* For example, specify 80 for 80%.
*/
@JvmName("ufixfyowrdwrnqpb")
public suspend fun percent(`value`: Output) {
this.percent = value
}
/**
* @param value Specifies a fixed number of VM instances. This must be a positive
* integer.
*/
@JvmName("vfdbhitycfcofgwc")
public suspend fun fixed(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fixed = mapped
}
/**
* @param value Specifies a percentage of instances between 0 to 100%, inclusive.
* For example, specify 80 for 80%.
*/
@JvmName("pynohpccqxyiselm")
public suspend fun percent(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.percent = mapped
}
internal fun build(): AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs =
AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs(
fixed = fixed,
percent = percent,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy