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

com.pulumi.azure.sentinel.kotlin.inputs.AlertRuleScheduledIncidentConfigurationArgs.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.sentinel.kotlin.inputs

import com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property createIncident Whether to create an incident from alerts triggered by this Sentinel Scheduled Alert Rule?
 * @property grouping A `grouping` block as defined below.
 */
public data class AlertRuleScheduledIncidentConfigurationArgs(
    public val createIncident: Output,
    public val grouping: Output,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationArgs =
        com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationArgs.builder()
            .createIncident(createIncident.applyValue({ args0 -> args0 }))
            .grouping(grouping.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AlertRuleScheduledIncidentConfigurationArgs].
 */
@PulumiTagMarker
public class AlertRuleScheduledIncidentConfigurationArgsBuilder internal constructor() {
    private var createIncident: Output? = null

    private var grouping: Output? = null

    /**
     * @param value Whether to create an incident from alerts triggered by this Sentinel Scheduled Alert Rule?
     */
    @JvmName("sbgrvjercpmxpojn")
    public suspend fun createIncident(`value`: Output) {
        this.createIncident = value
    }

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

    /**
     * @param value Whether to create an incident from alerts triggered by this Sentinel Scheduled Alert Rule?
     */
    @JvmName("jyvjdqrbdltgetqh")
    public suspend fun createIncident(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.createIncident = mapped
    }

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

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

    internal fun build(): AlertRuleScheduledIncidentConfigurationArgs =
        AlertRuleScheduledIncidentConfigurationArgs(
            createIncident = createIncident ?: throw PulumiNullFieldException("createIncident"),
            grouping = grouping ?: throw PulumiNullFieldException("grouping"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy