
com.pulumi.azure.batch.kotlin.inputs.PoolAutoScaleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.batch.kotlin.inputs
import com.pulumi.azure.batch.inputs.PoolAutoScaleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property evaluationInterval The interval to wait before evaluating if the pool needs to be scaled. Defaults to `PT15M`.
* @property formula The autoscale formula that needs to be used for scaling the Batch pool.
*/
public data class PoolAutoScaleArgs(
public val evaluationInterval: Output? = null,
public val formula: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.batch.inputs.PoolAutoScaleArgs =
com.pulumi.azure.batch.inputs.PoolAutoScaleArgs.builder()
.evaluationInterval(evaluationInterval?.applyValue({ args0 -> args0 }))
.formula(formula.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PoolAutoScaleArgs].
*/
@PulumiTagMarker
public class PoolAutoScaleArgsBuilder internal constructor() {
private var evaluationInterval: Output? = null
private var formula: Output? = null
/**
* @param value The interval to wait before evaluating if the pool needs to be scaled. Defaults to `PT15M`.
*/
@JvmName("vbpnimoyejitgjyi")
public suspend fun evaluationInterval(`value`: Output) {
this.evaluationInterval = value
}
/**
* @param value The autoscale formula that needs to be used for scaling the Batch pool.
*/
@JvmName("bvgmoqqpykavnrmq")
public suspend fun formula(`value`: Output) {
this.formula = value
}
/**
* @param value The interval to wait before evaluating if the pool needs to be scaled. Defaults to `PT15M`.
*/
@JvmName("xlwwsdeiohnjorwc")
public suspend fun evaluationInterval(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.evaluationInterval = mapped
}
/**
* @param value The autoscale formula that needs to be used for scaling the Batch pool.
*/
@JvmName("toumieshjwvvbvhx")
public suspend fun formula(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.formula = mapped
}
internal fun build(): PoolAutoScaleArgs = PoolAutoScaleArgs(
evaluationInterval = evaluationInterval,
formula = formula ?: throw PulumiNullFieldException("formula"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy