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

com.pulumi.gcp.vmwareengine.kotlin.inputs.ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vmwareengine.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vmwareengine.inputs.ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs.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 scaleIn The utilization triggering the scale-in operation in percent.
 * @property scaleOut The utilization triggering the scale-out operation in percent.
 */
public data class ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs(
    public val scaleIn: Output,
    public val scaleOut: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vmwareengine.inputs.ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs =
        com.pulumi.gcp.vmwareengine.inputs.ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs.builder()
            .scaleIn(scaleIn.applyValue({ args0 -> args0 }))
            .scaleOut(scaleOut.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs].
 */
@PulumiTagMarker
public class ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgsBuilder internal constructor() {
    private var scaleIn: Output? = null

    private var scaleOut: Output? = null

    /**
     * @param value The utilization triggering the scale-in operation in percent.
     */
    @JvmName("yafmadvmfuweoiyt")
    public suspend fun scaleIn(`value`: Output) {
        this.scaleIn = value
    }

    /**
     * @param value The utilization triggering the scale-out operation in percent.
     */
    @JvmName("rqlsfndduwxjhkae")
    public suspend fun scaleOut(`value`: Output) {
        this.scaleOut = value
    }

    /**
     * @param value The utilization triggering the scale-in operation in percent.
     */
    @JvmName("uqvftbijgcbdnyec")
    public suspend fun scaleIn(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scaleIn = mapped
    }

    /**
     * @param value The utilization triggering the scale-out operation in percent.
     */
    @JvmName("cqkdreaqrgwtfyng")
    public suspend fun scaleOut(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scaleOut = mapped
    }

    internal fun build(): ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs =
        ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs(
            scaleIn = scaleIn ?: throw PulumiNullFieldException("scaleIn"),
            scaleOut = scaleOut ?: throw PulumiNullFieldException("scaleOut"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy