
com.pulumi.azure.network.kotlin.inputs.ApplicationGatewayAutoscaleConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.inputs
import com.pulumi.azure.network.inputs.ApplicationGatewayAutoscaleConfigurationArgs.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.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxCapacity Maximum capacity for autoscaling. Accepted values are in the range `2` to `125`.
* @property minCapacity Minimum capacity for autoscaling. Accepted values are in the range `0` to `100`.
*/
public data class ApplicationGatewayAutoscaleConfigurationArgs(
public val maxCapacity: Output? = null,
public val minCapacity: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewayAutoscaleConfigurationArgs =
com.pulumi.azure.network.inputs.ApplicationGatewayAutoscaleConfigurationArgs.builder()
.maxCapacity(maxCapacity?.applyValue({ args0 -> args0 }))
.minCapacity(minCapacity.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplicationGatewayAutoscaleConfigurationArgs].
*/
@PulumiTagMarker
public class ApplicationGatewayAutoscaleConfigurationArgsBuilder internal constructor() {
private var maxCapacity: Output? = null
private var minCapacity: Output? = null
/**
* @param value Maximum capacity for autoscaling. Accepted values are in the range `2` to `125`.
*/
@JvmName("kolruneqwkwvbofj")
public suspend fun maxCapacity(`value`: Output) {
this.maxCapacity = value
}
/**
* @param value Minimum capacity for autoscaling. Accepted values are in the range `0` to `100`.
*/
@JvmName("jirnxxgevatjggqa")
public suspend fun minCapacity(`value`: Output) {
this.minCapacity = value
}
/**
* @param value Maximum capacity for autoscaling. Accepted values are in the range `2` to `125`.
*/
@JvmName("nqfrfyuiahugilak")
public suspend fun maxCapacity(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxCapacity = mapped
}
/**
* @param value Minimum capacity for autoscaling. Accepted values are in the range `0` to `100`.
*/
@JvmName("akxexfpjvovnjcpv")
public suspend fun minCapacity(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minCapacity = mapped
}
internal fun build(): ApplicationGatewayAutoscaleConfigurationArgs =
ApplicationGatewayAutoscaleConfigurationArgs(
maxCapacity = maxCapacity,
minCapacity = minCapacity ?: throw PulumiNullFieldException("minCapacity"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy