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

com.pulumi.azure.appservice.kotlin.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property action A `action` block as defined above.
 * @property trigger A `trigger` block as defined below.
 */
public data class LinuxWebAppSlotSiteConfigAutoHealSettingArgs(
    public val action: Output? = null,
    public val trigger: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingArgs =
        com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigAutoHealSettingArgs.builder()
            .action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .trigger(trigger?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [LinuxWebAppSlotSiteConfigAutoHealSettingArgs].
 */
@PulumiTagMarker
public class LinuxWebAppSlotSiteConfigAutoHealSettingArgsBuilder internal constructor() {
    private var action: Output? = null

    private var trigger: Output? = null

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

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

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

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

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

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

    internal fun build(): LinuxWebAppSlotSiteConfigAutoHealSettingArgs =
        LinuxWebAppSlotSiteConfigAutoHealSettingArgs(
            action = action,
            trigger = trigger,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy