![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.batch.kotlin.inputs.PoolAutoScaleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.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("pepkrminybaugdej")
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("vlaumjiylxohexne")
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("wgdohxngdqnswlqp")
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("vwsqbprnmepjengr")
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