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

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.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("vevymhpnuoeilkgs")
    public suspend fun privateMemoryKb(`value`: Output) {
        this.privateMemoryKb = value
    }

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

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

    @JvmName("mplyjqjymdqkstoa")
    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("fnbdsipkxnvyggae")
    public suspend
    fun slowRequestWithPaths(values: List>) {
        this.slowRequestWithPaths = Output.all(values)
    }

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

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

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

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

    @JvmName("pqurpefrfmbtfjka")
    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("silrvpmnbnjqklfa")
    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("vqilssdevbwlhsxd")
    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("fcfxbhibhsgdrrtp")
    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("pmxkjwuoxsschyog")
    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("ivicbiakwabgoicr")
    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("gmlylsiskrpsnwjt")
    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("vobwfnikmejmxmqg")
    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("vrcsmjamyspmywhs")
    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("hbdwpuqysoebqnkv")
    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("pnkfklmwwywewoat")
    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("aqrlmyacnvtljwta")
    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("cbqskdenftelxrdu")
    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("kqelnjqpgiyvnypp")
    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("uurnkxxjstnbrnqb")
    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("lghcxtmowsmbhdvu")
    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("linwpqyomnoiupxp")
    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("nwyamornjyfnrpuv")
    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("txhrqsnknpkbsmqs")
    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("onbxcphrmphwoshl")
    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