com.pulumi.aws.opsworks.kotlin.inputs.JavaAppLayerLoadBasedAutoScalingArgs.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.JavaAppLayerLoadBasedAutoScalingArgs.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 JavaAppLayerLoadBasedAutoScalingArgs(
public val downscaling: Output? = null,
public val enable: Output? = null,
public val upscaling: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.opsworks.inputs.JavaAppLayerLoadBasedAutoScalingArgs =
com.pulumi.aws.opsworks.inputs.JavaAppLayerLoadBasedAutoScalingArgs.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 [JavaAppLayerLoadBasedAutoScalingArgs].
*/
@PulumiTagMarker
public class JavaAppLayerLoadBasedAutoScalingArgsBuilder internal constructor() {
private var downscaling: Output? = null
private var enable: Output? = null
private var upscaling: Output? = null
/**
* @param value
*/
@JvmName("edkrnkqkyicgaigr")
public suspend fun downscaling(`value`: Output) {
this.downscaling = value
}
/**
* @param value
*/
@JvmName("drgvsrkqkrrnqhou")
public suspend fun enable(`value`: Output) {
this.enable = value
}
/**
* @param value
*/
@JvmName("tmkbkecfksxwrode")
public suspend fun upscaling(`value`: Output) {
this.upscaling = value
}
/**
* @param value
*/
@JvmName("elgguxvpigjmtbmi")
public suspend fun downscaling(`value`: JavaAppLayerLoadBasedAutoScalingDownscalingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.downscaling = mapped
}
/**
* @param argument
*/
@JvmName("enqgctwicjmykygn")
public suspend fun downscaling(argument: suspend JavaAppLayerLoadBasedAutoScalingDownscalingArgsBuilder.() -> Unit) {
val toBeMapped = JavaAppLayerLoadBasedAutoScalingDownscalingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.downscaling = mapped
}
/**
* @param value
*/
@JvmName("fufdnhtesdyawerx")
public suspend fun enable(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enable = mapped
}
/**
* @param value
*/
@JvmName("vfpasvkrplmkjlii")
public suspend fun upscaling(`value`: JavaAppLayerLoadBasedAutoScalingUpscalingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.upscaling = mapped
}
/**
* @param argument
*/
@JvmName("knhxgeehwakptjmv")
public suspend fun upscaling(argument: suspend JavaAppLayerLoadBasedAutoScalingUpscalingArgsBuilder.() -> Unit) {
val toBeMapped = JavaAppLayerLoadBasedAutoScalingUpscalingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.upscaling = mapped
}
internal fun build(): JavaAppLayerLoadBasedAutoScalingArgs = JavaAppLayerLoadBasedAutoScalingArgs(
downscaling = downscaling,
enable = enable,
upscaling = upscaling,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy