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

com.pulumi.azure.monitoring.kotlin.inputs.ActionRuleActionGroupConditionArgs.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.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.ActionRuleActionGroupConditionArgs.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 alertContext A `alert_context` block as defined below.
 * @property alertRuleId A `alert_rule_id` block as defined below.
 * @property description A `description` block as defined below.
 * @property monitor A `monitor` block as defined below.
 * @property monitorService A `monitor_service` block as defined below.
 * @property severity A `severity` block as defined below.
 * @property targetResourceType A `target_resource_type` block as defined below.
 */
public data class ActionRuleActionGroupConditionArgs(
    public val alertContext: Output? = null,
    public val alertRuleId: Output? = null,
    public val description: Output? = null,
    public val monitor: Output? = null,
    public val monitorService: Output? = null,
    public val severity: Output? = null,
    public val targetResourceType: Output? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActionRuleActionGroupConditionArgs =
        com.pulumi.azure.monitoring.inputs.ActionRuleActionGroupConditionArgs.builder()
            .alertContext(alertContext?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .alertRuleId(alertRuleId?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .monitor(monitor?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .monitorService(monitorService?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .severity(severity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .targetResourceType(
                targetResourceType?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ActionRuleActionGroupConditionArgs].
 */
@PulumiTagMarker
public class ActionRuleActionGroupConditionArgsBuilder internal constructor() {
    private var alertContext: Output? = null

    private var alertRuleId: Output? = null

    private var description: Output? = null

    private var monitor: Output? = null

    private var monitorService: Output? = null

    private var severity: Output? = null

    private var targetResourceType: Output? =
        null

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    internal fun build(): ActionRuleActionGroupConditionArgs = ActionRuleActionGroupConditionArgs(
        alertContext = alertContext,
        alertRuleId = alertRuleId,
        description = description,
        monitor = monitor,
        monitorService = monitorService,
        severity = severity,
        targetResourceType = targetResourceType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy