com.pulumi.azurenative.web.kotlin.inputs.SkuCapacityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.SkuCapacityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Description of the App Service plan scale options.
* @property default Default number of workers for this App Service plan SKU.
* @property elasticMaximum Maximum number of Elastic workers for this App Service plan SKU.
* @property maximum Maximum number of workers for this App Service plan SKU.
* @property minimum Minimum number of workers for this App Service plan SKU.
* @property scaleType Available scale configurations for an App Service plan.
*/
public data class SkuCapacityArgs(
public val default: Output? = null,
public val elasticMaximum: Output? = null,
public val maximum: Output? = null,
public val minimum: Output? = null,
public val scaleType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.SkuCapacityArgs =
com.pulumi.azurenative.web.inputs.SkuCapacityArgs.builder()
.default_(default?.applyValue({ args0 -> args0 }))
.elasticMaximum(elasticMaximum?.applyValue({ args0 -> args0 }))
.maximum(maximum?.applyValue({ args0 -> args0 }))
.minimum(minimum?.applyValue({ args0 -> args0 }))
.scaleType(scaleType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SkuCapacityArgs].
*/
@PulumiTagMarker
public class SkuCapacityArgsBuilder internal constructor() {
private var default: Output? = null
private var elasticMaximum: Output? = null
private var maximum: Output? = null
private var minimum: Output? = null
private var scaleType: Output? = null
/**
* @param value Default number of workers for this App Service plan SKU.
*/
@JvmName("agpallfrefewsgvn")
public suspend fun default(`value`: Output) {
this.default = value
}
/**
* @param value Maximum number of Elastic workers for this App Service plan SKU.
*/
@JvmName("rcmgahyislylvqsm")
public suspend fun elasticMaximum(`value`: Output) {
this.elasticMaximum = value
}
/**
* @param value Maximum number of workers for this App Service plan SKU.
*/
@JvmName("fmnpbuucpknoqwqg")
public suspend fun maximum(`value`: Output) {
this.maximum = value
}
/**
* @param value Minimum number of workers for this App Service plan SKU.
*/
@JvmName("ymtbpokwkfdkbgws")
public suspend fun minimum(`value`: Output) {
this.minimum = value
}
/**
* @param value Available scale configurations for an App Service plan.
*/
@JvmName("cvbpkqqomvkwfuit")
public suspend fun scaleType(`value`: Output) {
this.scaleType = value
}
/**
* @param value Default number of workers for this App Service plan SKU.
*/
@JvmName("ciirgyutdaoojqpw")
public suspend fun default(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.default = mapped
}
/**
* @param value Maximum number of Elastic workers for this App Service plan SKU.
*/
@JvmName("dakuqbsjnswprbbd")
public suspend fun elasticMaximum(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.elasticMaximum = mapped
}
/**
* @param value Maximum number of workers for this App Service plan SKU.
*/
@JvmName("oxienyfnpsmafvin")
public suspend fun maximum(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximum = mapped
}
/**
* @param value Minimum number of workers for this App Service plan SKU.
*/
@JvmName("wwgkyrrxgujtxnsa")
public suspend fun minimum(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minimum = mapped
}
/**
* @param value Available scale configurations for an App Service plan.
*/
@JvmName("tkqawdbtabvmrupp")
public suspend fun scaleType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scaleType = mapped
}
internal fun build(): SkuCapacityArgs = SkuCapacityArgs(
default = default,
elasticMaximum = elasticMaximum,
maximum = maximum,
minimum = minimum,
scaleType = scaleType,
)
}