All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appservice.kotlin.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs.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 LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs(
    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.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs =
        com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs.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 [LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs].
 */
@PulumiTagMarker
public class LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgsBuilder 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("mtnqawaqkfnnorot")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The time interval in the form `hh:mm:ss`.
     */
    @JvmName("twfrvrcsupcghcfj")
    public suspend fun interval(`value`: Output) {
        this.interval = value
    }

    /**
     * @param value The path to which this rule status code applies.
     */
    @JvmName("qedcfglwreeeovlu")
    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("koouhcoxvtqbtynh")
    public suspend fun statusCodeRange(`value`: Output) {
        this.statusCodeRange = value
    }

    /**
     * @param value The Request Sub Status of the Status Code.
     */
    @JvmName("bdjqnupmjqgxhsnh")
    public suspend fun subStatus(`value`: Output) {
        this.subStatus = value
    }

    /**
     * @param value The Win32 Status Code of the Request.
     */
    @JvmName("erojwntxknqcqxtq")
    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("rfqdaylkwkddlhxx")
    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("cnlhqdmlsgxmadjy")
    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("cfrypoecphvrddhh")
    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("bpmuaddnmaemabql")
    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("cfxibhsxtwdancct")
    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("ylfrplmvbhfhhksv")
    public suspend fun win32StatusCode(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.win32StatusCode = mapped
    }

    internal fun build(): LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs =
        LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs(
            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