com.pulumi.aws.opsworks.kotlin.inputs.StaticWebLayerLoadBasedAutoScalingArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.opsworks.kotlin.inputs
import com.pulumi.aws.opsworks.inputs.StaticWebLayerLoadBasedAutoScalingArgs.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 StaticWebLayerLoadBasedAutoScalingArgs(
public val downscaling: Output? = null,
public val enable: Output? = null,
public val upscaling: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.opsworks.inputs.StaticWebLayerLoadBasedAutoScalingArgs =
com.pulumi.aws.opsworks.inputs.StaticWebLayerLoadBasedAutoScalingArgs.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 [StaticWebLayerLoadBasedAutoScalingArgs].
*/
@PulumiTagMarker
public class StaticWebLayerLoadBasedAutoScalingArgsBuilder internal constructor() {
private var downscaling: Output? = null
private var enable: Output? = null
private var upscaling: Output? = null
/**
* @param value
*/
@JvmName("fcpbaqpfleenuoro")
public suspend fun downscaling(`value`: Output) {
this.downscaling = value
}
/**
* @param value
*/
@JvmName("ljmvekqnuacukjup")
public suspend fun enable(`value`: Output) {
this.enable = value
}
/**
* @param value
*/
@JvmName("oromkqutxgocbhdd")
public suspend fun upscaling(`value`: Output) {
this.upscaling = value
}
/**
* @param value
*/
@JvmName("scsayguveusdapmc")
public suspend fun downscaling(`value`: StaticWebLayerLoadBasedAutoScalingDownscalingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.downscaling = mapped
}
/**
* @param argument
*/
@JvmName("tioqccosboupfftl")
public suspend fun downscaling(argument: suspend StaticWebLayerLoadBasedAutoScalingDownscalingArgsBuilder.() -> Unit) {
val toBeMapped = StaticWebLayerLoadBasedAutoScalingDownscalingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.downscaling = mapped
}
/**
* @param value
*/
@JvmName("jcibeyfyedkhpvah")
public suspend fun enable(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enable = mapped
}
/**
* @param value
*/
@JvmName("pkeibmtuobrbtknl")
public suspend fun upscaling(`value`: StaticWebLayerLoadBasedAutoScalingUpscalingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.upscaling = mapped
}
/**
* @param argument
*/
@JvmName("bukdxvsxlarwmurg")
public suspend fun upscaling(argument: suspend StaticWebLayerLoadBasedAutoScalingUpscalingArgsBuilder.() -> Unit) {
val toBeMapped = StaticWebLayerLoadBasedAutoScalingUpscalingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.upscaling = mapped
}
internal fun build(): StaticWebLayerLoadBasedAutoScalingArgs =
StaticWebLayerLoadBasedAutoScalingArgs(
downscaling = downscaling,
enable = enable,
upscaling = upscaling,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy