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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs.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

/**
 *
 * @property privateMemoryKb The amount of Private Memory to be consumed for this rule to trigger. Possible values are between `102400` and `13631488`.
 * @property requests A `requests` block as defined above.
 * @property slowRequestWithPaths One or more `slow_request_with_path` blocks as defined above.
 * @property slowRequests A `slow_request` block as defined above.
 * @property statusCodes One or more `status_code` blocks as defined above.
 */
public data class WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs(
    public val privateMemoryKb: Output? = null,
    public val requests: Output? =
        null,
    public val slowRequestWithPaths: Output>? =
        null,
    public val slowRequests: Output>? = null,
    public val statusCodes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs.builder()
            .privateMemoryKb(privateMemoryKb?.applyValue({ args0 -> args0 }))
            .requests(requests?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .slowRequestWithPaths(
                slowRequestWithPaths?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .slowRequests(
                slowRequests?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .statusCodes(
                statusCodes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs].
 */
@PulumiTagMarker
public class WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgsBuilder internal constructor() {
    private var privateMemoryKb: Output? = null

    private var requests: Output? =
        null

    private var slowRequestWithPaths:
        Output>? = null

    private var slowRequests:
        Output>? = null

    private var statusCodes:
        Output>? = null

    /**
     * @param value The amount of Private Memory to be consumed for this rule to trigger. Possible values are between `102400` and `13631488`.
     */
    @JvmName("unyeqxwmbvavteqh")
    public suspend fun privateMemoryKb(`value`: Output) {
        this.privateMemoryKb = value
    }

    /**
     * @param value A `requests` block as defined above.
     */
    @JvmName("pvfqmevicmxoobum")
    public suspend fun requests(`value`: Output) {
        this.requests = value
    }

    /**
     * @param value One or more `slow_request_with_path` blocks as defined above.
     */
    @JvmName("brymfxvbdvnwfupf")
    public suspend fun slowRequestWithPaths(`value`: Output>) {
        this.slowRequestWithPaths = value
    }

    @JvmName("fuwgowxbqvbyvukm")
    public suspend fun slowRequestWithPaths(vararg values: Output) {
        this.slowRequestWithPaths = Output.all(values.asList())
    }

    /**
     * @param values One or more `slow_request_with_path` blocks as defined above.
     */
    @JvmName("upyoihtsbtgpdibt")
    public suspend fun slowRequestWithPaths(values: List>) {
        this.slowRequestWithPaths = Output.all(values)
    }

    /**
     * @param value A `slow_request` block as defined above.
     */
    @JvmName("wuukuebxulwqufyr")
    public suspend fun slowRequests(`value`: Output>) {
        this.slowRequests = value
    }

    @JvmName("xxxdatdqqxdctvwx")
    public suspend fun slowRequests(vararg values: Output) {
        this.slowRequests = Output.all(values.asList())
    }

    /**
     * @param values A `slow_request` block as defined above.
     */
    @JvmName("lihskkchwimxsfcn")
    public suspend fun slowRequests(values: List>) {
        this.slowRequests = Output.all(values)
    }

    /**
     * @param value One or more `status_code` blocks as defined above.
     */
    @JvmName("fprfpjxnptifacuq")
    public suspend fun statusCodes(`value`: Output>) {
        this.statusCodes = value
    }

    @JvmName("jnbedpldcapselwm")
    public suspend fun statusCodes(vararg values: Output) {
        this.statusCodes = Output.all(values.asList())
    }

    /**
     * @param values One or more `status_code` blocks as defined above.
     */
    @JvmName("kfkulsqyspjtrbvg")
    public suspend fun statusCodes(values: List>) {
        this.statusCodes = Output.all(values)
    }

    /**
     * @param value The amount of Private Memory to be consumed for this rule to trigger. Possible values are between `102400` and `13631488`.
     */
    @JvmName("ofoluhdqjmwlwsre")
    public suspend fun privateMemoryKb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateMemoryKb = mapped
    }

    /**
     * @param value A `requests` block as defined above.
     */
    @JvmName("vbldqsjcclhlsoba")
    public suspend fun requests(`value`: WindowsWebAppSlotSiteConfigAutoHealSettingTriggerRequestsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requests = mapped
    }

    /**
     * @param argument A `requests` block as defined above.
     */
    @JvmName("fvqdlpwgyyberjah")
    public suspend fun requests(argument: suspend WindowsWebAppSlotSiteConfigAutoHealSettingTriggerRequestsArgsBuilder.() -> Unit) {
        val toBeMapped =
            WindowsWebAppSlotSiteConfigAutoHealSettingTriggerRequestsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.requests = mapped
    }

    /**
     * @param value One or more `slow_request_with_path` blocks as defined above.
     */
    @JvmName("rkmvyvbjvogvnnxg")
    public suspend fun slowRequestWithPaths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slowRequestWithPaths = mapped
    }

    /**
     * @param argument One or more `slow_request_with_path` blocks as defined above.
     */
    @JvmName("mrbkwglktjhuuokn")
    public suspend fun slowRequestWithPaths(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slowRequestWithPaths = mapped
    }

    /**
     * @param argument One or more `slow_request_with_path` blocks as defined above.
     */
    @JvmName("xpaikxrpshhijaea")
    public suspend fun slowRequestWithPaths(vararg argument: suspend WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slowRequestWithPaths = mapped
    }

    /**
     * @param argument One or more `slow_request_with_path` blocks as defined above.
     */
    @JvmName("nsiqvfqlqekpvhkh")
    public suspend fun slowRequestWithPaths(argument: suspend WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.slowRequestWithPaths = mapped
    }

    /**
     * @param values One or more `slow_request_with_path` blocks as defined above.
     */
    @JvmName("ckmeepmqwgfpmnum")
    public suspend fun slowRequestWithPaths(vararg values: WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.slowRequestWithPaths = mapped
    }

    /**
     * @param value A `slow_request` block as defined above.
     */
    @JvmName("vbikkjlcjahbgfid")
    public suspend fun slowRequests(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slowRequests = mapped
    }

    /**
     * @param argument A `slow_request` block as defined above.
     */
    @JvmName("pvrsytrtpejndsgv")
    public suspend fun slowRequests(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slowRequests = mapped
    }

    /**
     * @param argument A `slow_request` block as defined above.
     */
    @JvmName("xxicxnelvpqbmfwu")
    public suspend fun slowRequests(vararg argument: suspend WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slowRequests = mapped
    }

    /**
     * @param argument A `slow_request` block as defined above.
     */
    @JvmName("viiospmqgjthkfqy")
    public suspend fun slowRequests(argument: suspend WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.slowRequests = mapped
    }

    /**
     * @param values A `slow_request` block as defined above.
     */
    @JvmName("hkuxmyqjuthuvuus")
    public suspend fun slowRequests(vararg values: WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.slowRequests = mapped
    }

    /**
     * @param value One or more `status_code` blocks as defined above.
     */
    @JvmName("tdnttbxuhlkgmkrx")
    public suspend fun statusCodes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statusCodes = mapped
    }

    /**
     * @param argument One or more `status_code` blocks as defined above.
     */
    @JvmName("pkykxdtefpawfbxs")
    public suspend fun statusCodes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.statusCodes = mapped
    }

    /**
     * @param argument One or more `status_code` blocks as defined above.
     */
    @JvmName("tgpeyuvdgrevjkdj")
    public suspend fun statusCodes(vararg argument: suspend WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.statusCodes = mapped
    }

    /**
     * @param argument One or more `status_code` blocks as defined above.
     */
    @JvmName("ftlyjmkgwwgpaamu")
    public suspend fun statusCodes(argument: suspend WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.statusCodes = mapped
    }

    /**
     * @param values One or more `status_code` blocks as defined above.
     */
    @JvmName("wboegiwxufdudyah")
    public suspend fun statusCodes(vararg values: WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.statusCodes = mapped
    }

    internal fun build(): WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs =
        WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs(
            privateMemoryKb = privateMemoryKb,
            requests = requests,
            slowRequestWithPaths = slowRequestWithPaths,
            slowRequests = slowRequests,
            statusCodes = statusCodes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy