com.pulumi.aws.opsworks.kotlin.inputs.GangliaLayerLoadBasedAutoScalingArgs.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.GangliaLayerLoadBasedAutoScalingArgs.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 GangliaLayerLoadBasedAutoScalingArgs(
public val downscaling: Output? = null,
public val enable: Output? = null,
public val upscaling: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.opsworks.inputs.GangliaLayerLoadBasedAutoScalingArgs =
com.pulumi.aws.opsworks.inputs.GangliaLayerLoadBasedAutoScalingArgs.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 [GangliaLayerLoadBasedAutoScalingArgs].
*/
@PulumiTagMarker
public class GangliaLayerLoadBasedAutoScalingArgsBuilder internal constructor() {
private var downscaling: Output? = null
private var enable: Output? = null
private var upscaling: Output? = null
/**
* @param value
*/
@JvmName("fmxwuhbevwnlseqc")
public suspend fun downscaling(`value`: Output) {
this.downscaling = value
}
/**
* @param value
*/
@JvmName("imkpgycbxanioawo")
public suspend fun enable(`value`: Output) {
this.enable = value
}
/**
* @param value
*/
@JvmName("qkfvbsutxkanahdq")
public suspend fun upscaling(`value`: Output) {
this.upscaling = value
}
/**
* @param value
*/
@JvmName("pvxiahwaneohiqrs")
public suspend fun downscaling(`value`: GangliaLayerLoadBasedAutoScalingDownscalingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.downscaling = mapped
}
/**
* @param argument
*/
@JvmName("mnweialbhkboyqwm")
public suspend fun downscaling(argument: suspend GangliaLayerLoadBasedAutoScalingDownscalingArgsBuilder.() -> Unit) {
val toBeMapped = GangliaLayerLoadBasedAutoScalingDownscalingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.downscaling = mapped
}
/**
* @param value
*/
@JvmName("njvhibbbtbmkmiyb")
public suspend fun enable(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enable = mapped
}
/**
* @param value
*/
@JvmName("euxprmfepwddiryy")
public suspend fun upscaling(`value`: GangliaLayerLoadBasedAutoScalingUpscalingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.upscaling = mapped
}
/**
* @param argument
*/
@JvmName("mmpyprtvevqlxbec")
public suspend fun upscaling(argument: suspend GangliaLayerLoadBasedAutoScalingUpscalingArgsBuilder.() -> Unit) {
val toBeMapped = GangliaLayerLoadBasedAutoScalingUpscalingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.upscaling = mapped
}
internal fun build(): GangliaLayerLoadBasedAutoScalingArgs = GangliaLayerLoadBasedAutoScalingArgs(
downscaling = downscaling,
enable = enable,
upscaling = upscaling,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy