All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.inputs.RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgs.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 RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgs(
    public val fixed: Output? = null,
    public val percent: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgs =
        com.pulumi.gcp.compute.inputs.RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgs.builder()
            .fixed(fixed?.applyValue({ args0 -> args0 }))
            .percent(percent?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgs].
 */
@PulumiTagMarker
public class RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgsBuilder
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("oqbldqkohkrawcph")
    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("uticgorpwpbdsjfb")
    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("dmwqfuoytmtpuuww")
    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("rkjrgaspucuqhnnk")
    public suspend fun percent(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percent = mapped
    }

    internal fun build(): RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgs =
        RegionAutoscalerAutoscalingPolicyScaleDownControlMaxScaledDownReplicasArgs(
            fixed = fixed,
            percent = percent,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy