![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.web.kotlin.inputs.ScaleRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.ScaleRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Container App container scaling rule.
* @property azureQueue Azure Queue based scaling.
* @property custom Custom scale rule.
* @property http HTTP requests based scaling.
* @property name Scale Rule Name
*/
public data class ScaleRuleArgs(
public val azureQueue: Output? = null,
public val custom: Output? = null,
public val http: Output? = null,
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.ScaleRuleArgs =
com.pulumi.azurenative.web.inputs.ScaleRuleArgs.builder()
.azureQueue(azureQueue?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.custom(custom?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.http(http?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScaleRuleArgs].
*/
@PulumiTagMarker
public class ScaleRuleArgsBuilder internal constructor() {
private var azureQueue: Output? = null
private var custom: Output? = null
private var http: Output? = null
private var name: Output? = null
/**
* @param value Azure Queue based scaling.
*/
@JvmName("bywcdaraeabpewfy")
public suspend fun azureQueue(`value`: Output) {
this.azureQueue = value
}
/**
* @param value Custom scale rule.
*/
@JvmName("ibmsxcjsaffylmjo")
public suspend fun custom(`value`: Output) {
this.custom = value
}
/**
* @param value HTTP requests based scaling.
*/
@JvmName("nchdmuothaetthxw")
public suspend fun http(`value`: Output) {
this.http = value
}
/**
* @param value Scale Rule Name
*/
@JvmName("xbsehnrltjyhsmxb")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Azure Queue based scaling.
*/
@JvmName("ueciashrvayxpbxd")
public suspend fun azureQueue(`value`: QueueScaleRuleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.azureQueue = mapped
}
/**
* @param argument Azure Queue based scaling.
*/
@JvmName("tkruonjateracbjr")
public suspend fun azureQueue(argument: suspend QueueScaleRuleArgsBuilder.() -> Unit) {
val toBeMapped = QueueScaleRuleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.azureQueue = mapped
}
/**
* @param value Custom scale rule.
*/
@JvmName("jentebxxtnxqcnpb")
public suspend fun custom(`value`: CustomScaleRuleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.custom = mapped
}
/**
* @param argument Custom scale rule.
*/
@JvmName("gdqsdsluqljsguoi")
public suspend fun custom(argument: suspend CustomScaleRuleArgsBuilder.() -> Unit) {
val toBeMapped = CustomScaleRuleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.custom = mapped
}
/**
* @param value HTTP requests based scaling.
*/
@JvmName("lvevdgrfprsskebt")
public suspend fun http(`value`: HttpScaleRuleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.http = mapped
}
/**
* @param argument HTTP requests based scaling.
*/
@JvmName("igvqsvpmcjbmthsl")
public suspend fun http(argument: suspend HttpScaleRuleArgsBuilder.() -> Unit) {
val toBeMapped = HttpScaleRuleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.http = mapped
}
/**
* @param value Scale Rule Name
*/
@JvmName("qhffylxtynlycwlx")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ScaleRuleArgs = ScaleRuleArgs(
azureQueue = azureQueue,
custom = custom,
http = http,
name = name,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy