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

com.pulumi.gcp.vmwareengine.kotlin.inputs.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs.kt Maven / Gradle / Ivy

@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.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs.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
PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs(
    public val scaleIn: Output,
    public val scaleOut: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs =
        com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs.builder()
            .scaleIn(scaleIn.applyValue({ args0 -> args0 }))
            .scaleOut(scaleOut.applyValue({ args0 -> args0 })).build()
}

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

    private var scaleOut: Output? = null

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

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

    /**
     * @param value The utilization triggering the scale-in operation in percent.
     */
    @JvmName("ydhldgmlxrbujfui")
    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("budgciacsrlbpfna")
    public suspend fun scaleOut(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scaleOut = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy