com.pulumi.gcp.vmwareengine.kotlin.inputs.ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs.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.vmwareengine.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vmwareengine.inputs.ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs.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 ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs(
public val scaleIn: Output,
public val scaleOut: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.vmwareengine.inputs.ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs =
com.pulumi.gcp.vmwareengine.inputs.ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs.builder()
.scaleIn(scaleIn.applyValue({ args0 -> args0 }))
.scaleOut(scaleOut.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs].
*/
@PulumiTagMarker
public class ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgsBuilder internal constructor() {
private var scaleIn: Output? = null
private var scaleOut: Output? = null
/**
* @param value The utilization triggering the scale-in operation in percent.
*/
@JvmName("twxovsgrrrqlyvtk")
public suspend fun scaleIn(`value`: Output) {
this.scaleIn = value
}
/**
* @param value The utilization triggering the scale-out operation in percent.
*/
@JvmName("tgeuykhqofjworpx")
public suspend fun scaleOut(`value`: Output) {
this.scaleOut = value
}
/**
* @param value The utilization triggering the scale-in operation in percent.
*/
@JvmName("hwhgtpdskdmnkipw")
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("ibeajypvkjokoukf")
public suspend fun scaleOut(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.scaleOut = mapped
}
internal fun build(): ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs =
ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs(
scaleIn = scaleIn ?: throw PulumiNullFieldException("scaleIn"),
scaleOut = scaleOut ?: throw PulumiNullFieldException("scaleOut"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy