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

com.pulumi.azure.sentinel.kotlin.inputs.AlertRuleNrtIncidentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.sentinel.kotlin.inputs

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

/**
 * Builder for [AlertRuleNrtIncidentArgs].
 */
@PulumiTagMarker
public class AlertRuleNrtIncidentArgsBuilder internal constructor() {
    private var createIncidentEnabled: Output? = null

    private var grouping: Output? = null

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

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

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

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

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

    internal fun build(): AlertRuleNrtIncidentArgs = AlertRuleNrtIncidentArgs(
        createIncidentEnabled = createIncidentEnabled ?: throw
            PulumiNullFieldException("createIncidentEnabled"),
        grouping = grouping ?: throw PulumiNullFieldException("grouping"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy