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

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

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

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

import com.pulumi.azure.sentinel.inputs.AuthomationRuleActionIncidentArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property classification The classification of the incident, when closing it. Possible values are: `BenignPositive_SuspiciousButExpected`, `FalsePositive_InaccurateData`, `FalsePositive_IncorrectAlertLogic`, `TruePositive_SuspiciousActivity` and `Undetermined`.
 * > **Note:** The `classification` is required when `status` is `Closed`.
 * @property classificationComment The comment why the incident is to be closed.
 * > **Note:** The `classification_comment` is allowed to set only when `status` is `Closed`.
 * @property labels Specifies a list of labels to add to the incident.
 * @property order The execution order of this action.
 * @property ownerId The object ID of the entity this incident is assigned to.
 * @property severity The severity to add to the incident. Possible values are `High`, `Informational`, `Low` and `Medium`.
 * > **Note:**: At least one of `status`, `labels`, `owner_id` and `severity` has to be set.
 * @property status The status to set to the incident. Possible values are: `Active`, `Closed`, `New`.
 */
public data class AuthomationRuleActionIncidentArgs(
    public val classification: Output? = null,
    public val classificationComment: Output? = null,
    public val labels: Output>? = null,
    public val order: Output,
    public val ownerId: Output? = null,
    public val severity: Output? = null,
    public val status: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sentinel.inputs.AuthomationRuleActionIncidentArgs =
        com.pulumi.azure.sentinel.inputs.AuthomationRuleActionIncidentArgs.builder()
            .classification(classification?.applyValue({ args0 -> args0 }))
            .classificationComment(classificationComment?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .order(order.applyValue({ args0 -> args0 }))
            .ownerId(ownerId?.applyValue({ args0 -> args0 }))
            .severity(severity?.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AuthomationRuleActionIncidentArgs].
 */
@PulumiTagMarker
public class AuthomationRuleActionIncidentArgsBuilder internal constructor() {
    private var classification: Output? = null

    private var classificationComment: Output? = null

    private var labels: Output>? = null

    private var order: Output? = null

    private var ownerId: Output? = null

    private var severity: Output? = null

    private var status: Output? = null

    /**
     * @param value The classification of the incident, when closing it. Possible values are: `BenignPositive_SuspiciousButExpected`, `FalsePositive_InaccurateData`, `FalsePositive_IncorrectAlertLogic`, `TruePositive_SuspiciousActivity` and `Undetermined`.
     * > **Note:** The `classification` is required when `status` is `Closed`.
     */
    @JvmName("rnrtghxmhcgnpluo")
    public suspend fun classification(`value`: Output) {
        this.classification = value
    }

    /**
     * @param value The comment why the incident is to be closed.
     * > **Note:** The `classification_comment` is allowed to set only when `status` is `Closed`.
     */
    @JvmName("ibhfxlfugrfthlok")
    public suspend fun classificationComment(`value`: Output) {
        this.classificationComment = value
    }

    /**
     * @param value Specifies a list of labels to add to the incident.
     */
    @JvmName("ajxeypvusaakslpr")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    @JvmName("eucdvtvqhmtyanvu")
    public suspend fun labels(vararg values: Output) {
        this.labels = Output.all(values.asList())
    }

    /**
     * @param values Specifies a list of labels to add to the incident.
     */
    @JvmName("grwnyprxnexahlpe")
    public suspend fun labels(values: List>) {
        this.labels = Output.all(values)
    }

    /**
     * @param value The execution order of this action.
     */
    @JvmName("pnklstokueggnkno")
    public suspend fun order(`value`: Output) {
        this.order = value
    }

    /**
     * @param value The object ID of the entity this incident is assigned to.
     */
    @JvmName("tgxeayffuwmyhtsc")
    public suspend fun ownerId(`value`: Output) {
        this.ownerId = value
    }

    /**
     * @param value The severity to add to the incident. Possible values are `High`, `Informational`, `Low` and `Medium`.
     * > **Note:**: At least one of `status`, `labels`, `owner_id` and `severity` has to be set.
     */
    @JvmName("tefxhuyklicnxphv")
    public suspend fun severity(`value`: Output) {
        this.severity = value
    }

    /**
     * @param value The status to set to the incident. Possible values are: `Active`, `Closed`, `New`.
     */
    @JvmName("ytlpvajvukrdhyym")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value The classification of the incident, when closing it. Possible values are: `BenignPositive_SuspiciousButExpected`, `FalsePositive_InaccurateData`, `FalsePositive_IncorrectAlertLogic`, `TruePositive_SuspiciousActivity` and `Undetermined`.
     * > **Note:** The `classification` is required when `status` is `Closed`.
     */
    @JvmName("wxdcqgtydwcvgvjn")
    public suspend fun classification(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.classification = mapped
    }

    /**
     * @param value The comment why the incident is to be closed.
     * > **Note:** The `classification_comment` is allowed to set only when `status` is `Closed`.
     */
    @JvmName("siegvvvtoitqkkef")
    public suspend fun classificationComment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.classificationComment = mapped
    }

    /**
     * @param value Specifies a list of labels to add to the incident.
     */
    @JvmName("brynfwqiediybwgv")
    public suspend fun labels(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Specifies a list of labels to add to the incident.
     */
    @JvmName("pesydviovajamwbl")
    public suspend fun labels(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The execution order of this action.
     */
    @JvmName("shofittavbyyumbi")
    public suspend fun order(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.order = mapped
    }

    /**
     * @param value The object ID of the entity this incident is assigned to.
     */
    @JvmName("gevtljmtuftgsmkg")
    public suspend fun ownerId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ownerId = mapped
    }

    /**
     * @param value The severity to add to the incident. Possible values are `High`, `Informational`, `Low` and `Medium`.
     * > **Note:**: At least one of `status`, `labels`, `owner_id` and `severity` has to be set.
     */
    @JvmName("utvtwipnbxtjieww")
    public suspend fun severity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.severity = mapped
    }

    /**
     * @param value The status to set to the incident. Possible values are: `Active`, `Closed`, `New`.
     */
    @JvmName("kudteujqpbwgroar")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    internal fun build(): AuthomationRuleActionIncidentArgs = AuthomationRuleActionIncidentArgs(
        classification = classification,
        classificationComment = classificationComment,
        labels = labels,
        order = order ?: throw PulumiNullFieldException("order"),
        ownerId = ownerId,
        severity = severity,
        status = status,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy