com.pulumi.azurenative.web.kotlin.inputs.AutoHealTriggersArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.AutoHealTriggersArgs.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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Triggers for auto-heal.
* @property privateBytesInKB A rule based on private bytes.
* @property requests A rule based on total requests.
* @property slowRequests A rule based on request execution time.
* @property slowRequestsWithPath A rule based on multiple Slow Requests Rule with path
* @property statusCodes A rule based on status codes.
* @property statusCodesRange A rule based on status codes ranges.
*/
public data class AutoHealTriggersArgs(
public val privateBytesInKB: Output? = null,
public val requests: Output? = null,
public val slowRequests: Output? = null,
public val slowRequestsWithPath: Output>? = null,
public val statusCodes: Output>? = null,
public val statusCodesRange: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.AutoHealTriggersArgs =
com.pulumi.azurenative.web.inputs.AutoHealTriggersArgs.builder()
.privateBytesInKB(privateBytesInKB?.applyValue({ args0 -> args0 }))
.requests(requests?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.slowRequests(slowRequests?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.slowRequestsWithPath(
slowRequestsWithPath?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.statusCodes(
statusCodes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.statusCodesRange(
statusCodesRange?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AutoHealTriggersArgs].
*/
@PulumiTagMarker
public class AutoHealTriggersArgsBuilder internal constructor() {
private var privateBytesInKB: Output? = null
private var requests: Output? = null
private var slowRequests: Output? = null
private var slowRequestsWithPath: Output>? = null
private var statusCodes: Output>? = null
private var statusCodesRange: Output>? = null
/**
* @param value A rule based on private bytes.
*/
@JvmName("gvusspvrjcqcassm")
public suspend fun privateBytesInKB(`value`: Output) {
this.privateBytesInKB = value
}
/**
* @param value A rule based on total requests.
*/
@JvmName("rteevhabpckmumok")
public suspend fun requests(`value`: Output) {
this.requests = value
}
/**
* @param value A rule based on request execution time.
*/
@JvmName("aotwcbmpwutqgrjo")
public suspend fun slowRequests(`value`: Output) {
this.slowRequests = value
}
/**
* @param value A rule based on multiple Slow Requests Rule with path
*/
@JvmName("iwcrggkvgmkqpwrm")
public suspend fun slowRequestsWithPath(`value`: Output>) {
this.slowRequestsWithPath = value
}
@JvmName("htqdgvjncehndkmx")
public suspend fun slowRequestsWithPath(vararg values: Output) {
this.slowRequestsWithPath = Output.all(values.asList())
}
/**
* @param values A rule based on multiple Slow Requests Rule with path
*/
@JvmName("swoxccjhixpvnsxd")
public suspend fun slowRequestsWithPath(values: List