com.pulumi.awsnative.ecs.kotlin.inputs.TaskSetScaleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.ecs.kotlin.inputs
import com.pulumi.awsnative.ecs.inputs.TaskSetScaleArgs.builder
import com.pulumi.awsnative.ecs.kotlin.enums.TaskSetScaleUnit
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property unit The unit of measure for the scale value.
* @property value The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.
*/
public data class TaskSetScaleArgs(
public val unit: Output? = null,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ecs.inputs.TaskSetScaleArgs =
com.pulumi.awsnative.ecs.inputs.TaskSetScaleArgs.builder()
.unit(unit?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TaskSetScaleArgs].
*/
@PulumiTagMarker
public class TaskSetScaleArgsBuilder internal constructor() {
private var unit: Output? = null
private var `value`: Output? = null
/**
* @param value The unit of measure for the scale value.
*/
@JvmName("dgktvjcktkrgdnwe")
public suspend fun unit(`value`: Output) {
this.unit = value
}
/**
* @param value The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.
*/
@JvmName("xqesgcnqltskijhc")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The unit of measure for the scale value.
*/
@JvmName("qidoijkfahhmbxoc")
public suspend fun unit(`value`: TaskSetScaleUnit?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unit = mapped
}
/**
* @param value The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.
*/
@JvmName("jwvijtjhuyvwrgld")
public suspend fun `value`(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): TaskSetScaleArgs = TaskSetScaleArgs(
unit = unit,
`value` = `value`,
)
}