
com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin.inputs
import com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property count The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
* @property interval The time interval in the form `hh:mm:ss`.
* @property path The path to which this rule status code applies.
* @property statusCodeRange The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
* @property subStatus The Request Sub Status of the Status Code.
* @property win32StatusCode The Win32 Status Code of the Request.
*/
public data class WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgs(
public val count: Output,
public val interval: Output,
public val path: Output? = null,
public val statusCodeRange: Output,
public val subStatus: Output? = null,
public val win32StatusCode: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgs =
com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgs.builder()
.count(count.applyValue({ args0 -> args0 }))
.interval(interval.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 }))
.statusCodeRange(statusCodeRange.applyValue({ args0 -> args0 }))
.subStatus(subStatus?.applyValue({ args0 -> args0 }))
.win32StatusCode(win32StatusCode?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgs].
*/
@PulumiTagMarker
public class WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgsBuilder internal constructor() {
private var count: Output? = null
private var interval: Output? = null
private var path: Output? = null
private var statusCodeRange: Output? = null
private var subStatus: Output? = null
private var win32StatusCode: Output? = null
/**
* @param value The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
*/
@JvmName("fxauodxiovrimoyg")
public suspend fun count(`value`: Output) {
this.count = value
}
/**
* @param value The time interval in the form `hh:mm:ss`.
*/
@JvmName("vcpllroijdiemkgr")
public suspend fun interval(`value`: Output) {
this.interval = value
}
/**
* @param value The path to which this rule status code applies.
*/
@JvmName("njjccatsiothnemc")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
*/
@JvmName("eoolxcvplxdelhyr")
public suspend fun statusCodeRange(`value`: Output) {
this.statusCodeRange = value
}
/**
* @param value The Request Sub Status of the Status Code.
*/
@JvmName("dsnibjrafpipapag")
public suspend fun subStatus(`value`: Output) {
this.subStatus = value
}
/**
* @param value The Win32 Status Code of the Request.
*/
@JvmName("wmtavmyocfkreojd")
public suspend fun win32StatusCode(`value`: Output) {
this.win32StatusCode = value
}
/**
* @param value The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
*/
@JvmName("aselxbuiuylxodfk")
public suspend fun count(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.count = mapped
}
/**
* @param value The time interval in the form `hh:mm:ss`.
*/
@JvmName("lxckpyridshpmcvj")
public suspend fun interval(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.interval = mapped
}
/**
* @param value The path to which this rule status code applies.
*/
@JvmName("thukdaxlntunhimv")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
*/
@JvmName("mnvclmwfkmavrrxg")
public suspend fun statusCodeRange(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.statusCodeRange = mapped
}
/**
* @param value The Request Sub Status of the Status Code.
*/
@JvmName("yavflqiarftgxbqk")
public suspend fun subStatus(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subStatus = mapped
}
/**
* @param value The Win32 Status Code of the Request.
*/
@JvmName("jljsxlpgfpwiyrkn")
public suspend fun win32StatusCode(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.win32StatusCode = mapped
}
internal fun build(): WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgs =
WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeArgs(
count = count ?: throw PulumiNullFieldException("count"),
interval = interval ?: throw PulumiNullFieldException("interval"),
path = path,
statusCodeRange = statusCodeRange ?: throw PulumiNullFieldException("statusCodeRange"),
subStatus = subStatus,
win32StatusCode = win32StatusCode,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy