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

com.pulumi.azurenative.securityinsights.kotlin.inputs.IncidentPropertiesActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.securityinsights.kotlin.inputs

import com.pulumi.azurenative.securityinsights.inputs.IncidentPropertiesActionArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.IncidentClassification
import com.pulumi.azurenative.securityinsights.kotlin.enums.IncidentClassificationReason
import com.pulumi.azurenative.securityinsights.kotlin.enums.IncidentSeverity
import com.pulumi.azurenative.securityinsights.kotlin.enums.IncidentStatus
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property classification The reason the incident was closed
 * @property classificationComment Describes the reason the incident was closed.
 * @property classificationReason The classification reason the incident was closed with
 * @property labels List of labels to add to the incident.
 * @property owner Information on the user an incident is assigned to
 * @property severity The severity of the incident
 * @property status The status of the incident
 */
public data class IncidentPropertiesActionArgs(
    public val classification: Output>? = null,
    public val classificationComment: Output? = null,
    public val classificationReason: Output>? = null,
    public val labels: Output>? = null,
    public val owner: Output? = null,
    public val severity: Output>? = null,
    public val status: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.IncidentPropertiesActionArgs = com.pulumi.azurenative.securityinsights.inputs.IncidentPropertiesActionArgs.builder()
        .classification(
            classification?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        )
        .classificationComment(classificationComment?.applyValue({ args0 -> args0 }))
        .classificationReason(
            classificationReason?.applyValue({ args0 ->
                args0.transform(
                    { args0 -> args0 },
                    { args0 -> args0.let({ args0 -> args0.toJava() }) },
                )
            }),
        )
        .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
        .owner(owner?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .severity(
            severity?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        )
        .status(
            status?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        ).build()
}

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

    private var classificationComment: Output? = null

    private var classificationReason: Output>? = null

    private var labels: Output>? = null

    private var owner: Output? = null

    private var severity: Output>? = null

    private var status: Output>? = null

    /**
     * @param value The reason the incident was closed
     */
    @JvmName("dceknvwhrjgqvwds")
    public suspend fun classification(`value`: Output>) {
        this.classification = value
    }

    /**
     * @param value Describes the reason the incident was closed.
     */
    @JvmName("nkxadcakcswyxsjh")
    public suspend fun classificationComment(`value`: Output) {
        this.classificationComment = value
    }

    /**
     * @param value The classification reason the incident was closed with
     */
    @JvmName("qhwtuumbmrxhlqkk")
    public suspend fun classificationReason(`value`: Output>) {
        this.classificationReason = value
    }

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

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

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

    /**
     * @param value Information on the user an incident is assigned to
     */
    @JvmName("rbtexxjnniaoacpd")
    public suspend fun owner(`value`: Output) {
        this.owner = value
    }

    /**
     * @param value The severity of the incident
     */
    @JvmName("dmcxdflfahihlecs")
    public suspend fun severity(`value`: Output>) {
        this.severity = value
    }

    /**
     * @param value The status of the incident
     */
    @JvmName("mtoqeyymsjhnixmw")
    public suspend fun status(`value`: Output>) {
        this.status = value
    }

    /**
     * @param value The reason the incident was closed
     */
    @JvmName("nulaunhrjdwxaxyq")
    public suspend fun classification(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.classification = mapped
    }

    /**
     * @param value The reason the incident was closed
     */
    @JvmName("wgixxdkonhgjqwjw")
    public fun classification(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.classification = mapped
    }

    /**
     * @param value The reason the incident was closed
     */
    @JvmName("civmehyagucqsfks")
    public fun classification(`value`: IncidentClassification) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.classification = mapped
    }

    /**
     * @param value Describes the reason the incident was closed.
     */
    @JvmName("voskbgfvydyiywfd")
    public suspend fun classificationComment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.classificationComment = mapped
    }

    /**
     * @param value The classification reason the incident was closed with
     */
    @JvmName("jpkgmjbisewrehce")
    public suspend fun classificationReason(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.classificationReason = mapped
    }

    /**
     * @param value The classification reason the incident was closed with
     */
    @JvmName("syvqpilqmurbhsvl")
    public fun classificationReason(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.classificationReason = mapped
    }

    /**
     * @param value The classification reason the incident was closed with
     */
    @JvmName("blnocbcdjckrpxkm")
    public fun classificationReason(`value`: IncidentClassificationReason) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.classificationReason = mapped
    }

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

    /**
     * @param argument List of labels to add to the incident.
     */
    @JvmName("dxcxmekidojyigmt")
    public suspend fun labels(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IncidentLabelArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.labels = mapped
    }

    /**
     * @param argument List of labels to add to the incident.
     */
    @JvmName("okjukfnsbteugngu")
    public suspend fun labels(vararg argument: suspend IncidentLabelArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IncidentLabelArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.labels = mapped
    }

    /**
     * @param argument List of labels to add to the incident.
     */
    @JvmName("cciybyxostqrgvat")
    public suspend fun labels(argument: suspend IncidentLabelArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IncidentLabelArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.labels = mapped
    }

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

    /**
     * @param value Information on the user an incident is assigned to
     */
    @JvmName("oibfclnonsrmocmj")
    public suspend fun owner(`value`: IncidentOwnerInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.owner = mapped
    }

    /**
     * @param argument Information on the user an incident is assigned to
     */
    @JvmName("ndbbsaaovltfwpoo")
    public suspend fun owner(argument: suspend IncidentOwnerInfoArgsBuilder.() -> Unit) {
        val toBeMapped = IncidentOwnerInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.owner = mapped
    }

    /**
     * @param value The severity of the incident
     */
    @JvmName("dibighjehvypyvqa")
    public suspend fun severity(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.severity = mapped
    }

    /**
     * @param value The severity of the incident
     */
    @JvmName("ciqoiygbnrxmfnin")
    public fun severity(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.severity = mapped
    }

    /**
     * @param value The severity of the incident
     */
    @JvmName("ydotbfueskumhmas")
    public fun severity(`value`: IncidentSeverity) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.severity = mapped
    }

    /**
     * @param value The status of the incident
     */
    @JvmName("obymdgoaiwjfmlta")
    public suspend fun status(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value The status of the incident
     */
    @JvmName("fndsrhkgaovjotnu")
    public fun status(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value The status of the incident
     */
    @JvmName("ocdtbmiigtjdedbs")
    public fun status(`value`: IncidentStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    internal fun build(): IncidentPropertiesActionArgs = IncidentPropertiesActionArgs(
        classification = classification,
        classificationComment = classificationComment,
        classificationReason = classificationReason,
        labels = labels,
        owner = owner,
        severity = severity,
        status = status,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy