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

com.pulumi.aws.opsworks.kotlin.inputs.HaproxyLayerLoadBasedAutoScalingArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opsworks.kotlin.inputs

import com.pulumi.aws.opsworks.inputs.HaproxyLayerLoadBasedAutoScalingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property downscaling
 * @property enable
 * @property upscaling
 */
public data class HaproxyLayerLoadBasedAutoScalingArgs(
    public val downscaling: Output? = null,
    public val enable: Output? = null,
    public val upscaling: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opsworks.inputs.HaproxyLayerLoadBasedAutoScalingArgs =
        com.pulumi.aws.opsworks.inputs.HaproxyLayerLoadBasedAutoScalingArgs.builder()
            .downscaling(downscaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enable(enable?.applyValue({ args0 -> args0 }))
            .upscaling(upscaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [HaproxyLayerLoadBasedAutoScalingArgs].
 */
@PulumiTagMarker
public class HaproxyLayerLoadBasedAutoScalingArgsBuilder internal constructor() {
    private var downscaling: Output? = null

    private var enable: Output? = null

    private var upscaling: Output? = null

    /**
     * @param value
     */
    @JvmName("ykpghospviwuvmbw")
    public suspend fun downscaling(`value`: Output) {
        this.downscaling = value
    }

    /**
     * @param value
     */
    @JvmName("dgvodxpgpcvrgkqq")
    public suspend fun enable(`value`: Output) {
        this.enable = value
    }

    /**
     * @param value
     */
    @JvmName("gwijeylbeugenxty")
    public suspend fun upscaling(`value`: Output) {
        this.upscaling = value
    }

    /**
     * @param value
     */
    @JvmName("fkkkjxeiiiwstdlm")
    public suspend fun downscaling(`value`: HaproxyLayerLoadBasedAutoScalingDownscalingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.downscaling = mapped
    }

    /**
     * @param argument
     */
    @JvmName("djchwgwyxnefeudf")
    public suspend fun downscaling(argument: suspend HaproxyLayerLoadBasedAutoScalingDownscalingArgsBuilder.() -> Unit) {
        val toBeMapped = HaproxyLayerLoadBasedAutoScalingDownscalingArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.downscaling = mapped
    }

    /**
     * @param value
     */
    @JvmName("rbrivhmsklnusasw")
    public suspend fun enable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enable = mapped
    }

    /**
     * @param value
     */
    @JvmName("saprebowpfkkvcam")
    public suspend fun upscaling(`value`: HaproxyLayerLoadBasedAutoScalingUpscalingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.upscaling = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tvbvkjstcfexfdoi")
    public suspend fun upscaling(argument: suspend HaproxyLayerLoadBasedAutoScalingUpscalingArgsBuilder.() -> Unit) {
        val toBeMapped = HaproxyLayerLoadBasedAutoScalingUpscalingArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.upscaling = mapped
    }

    internal fun build(): HaproxyLayerLoadBasedAutoScalingArgs = HaproxyLayerLoadBasedAutoScalingArgs(
        downscaling = downscaling,
        enable = enable,
        upscaling = upscaling,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy