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

com.pulumi.gcp.compute.kotlin.inputs.AutoscalerAutoscalingPolicyScaleInControlArgs.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.AutoscalerAutoscalingPolicyScaleInControlArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property maxScaledInReplicas A nested object resource
 * Structure is documented below.
 * @property timeWindowSec How long back autoscaling should look when computing recommendations
 * to include directives regarding slower scale down, as described above.
 */
public data class AutoscalerAutoscalingPolicyScaleInControlArgs(
    public val maxScaledInReplicas: Output? = null,
    public val timeWindowSec: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyScaleInControlArgs = com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyScaleInControlArgs.builder()
        .maxScaledInReplicas(
            maxScaledInReplicas?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .timeWindowSec(timeWindowSec?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutoscalerAutoscalingPolicyScaleInControlArgs].
 */
@PulumiTagMarker
public class AutoscalerAutoscalingPolicyScaleInControlArgsBuilder internal constructor() {
    private var maxScaledInReplicas:
        Output? = null

    private var timeWindowSec: Output? = null

    /**
     * @param value A nested object resource
     * Structure is documented below.
     */
    @JvmName("pqkdknldwdnoosmh")
    public suspend fun maxScaledInReplicas(`value`: Output) {
        this.maxScaledInReplicas = value
    }

    /**
     * @param value How long back autoscaling should look when computing recommendations
     * to include directives regarding slower scale down, as described above.
     */
    @JvmName("kayquqxfsgpwirsw")
    public suspend fun timeWindowSec(`value`: Output) {
        this.timeWindowSec = value
    }

    /**
     * @param value A nested object resource
     * Structure is documented below.
     */
    @JvmName("wbffnewlnnfxqmbb")
    public suspend fun maxScaledInReplicas(`value`: AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxScaledInReplicas = mapped
    }

    /**
     * @param argument A nested object resource
     * Structure is documented below.
     */
    @JvmName("yrtyqxkrfuxdhiun")
    public suspend fun maxScaledInReplicas(argument: suspend AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgsBuilder.() -> Unit) {
        val toBeMapped =
            AutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.maxScaledInReplicas = mapped
    }

    /**
     * @param value How long back autoscaling should look when computing recommendations
     * to include directives regarding slower scale down, as described above.
     */
    @JvmName("wuxgqhoibhvpagoo")
    public suspend fun timeWindowSec(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeWindowSec = mapped
    }

    internal fun build(): AutoscalerAutoscalingPolicyScaleInControlArgs =
        AutoscalerAutoscalingPolicyScaleInControlArgs(
            maxScaledInReplicas = maxScaledInReplicas,
            timeWindowSec = timeWindowSec,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy