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

com.pulumi.azurenative.securityinsights.kotlin.inputs.IncidentInfoArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azurenative.securityinsights.inputs.IncidentInfoArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.IncidentSeverity
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Describes related incident information for the bookmark
 * @property incidentId Incident Id
 * @property relationName Relation Name
 * @property severity The severity of the incident
 * @property title The title of the incident
 */
public data class IncidentInfoArgs(
    public val incidentId: Output? = null,
    public val relationName: Output? = null,
    public val severity: Output>? = null,
    public val title: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.IncidentInfoArgs =
        com.pulumi.azurenative.securityinsights.inputs.IncidentInfoArgs.builder()
            .incidentId(incidentId?.applyValue({ args0 -> args0 }))
            .relationName(relationName?.applyValue({ args0 -> args0 }))
            .severity(
                severity?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .title(title?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IncidentInfoArgs].
 */
@PulumiTagMarker
public class IncidentInfoArgsBuilder internal constructor() {
    private var incidentId: Output? = null

    private var relationName: Output? = null

    private var severity: Output>? = null

    private var title: Output? = null

    /**
     * @param value Incident Id
     */
    @JvmName("amawbhnuwnxkemor")
    public suspend fun incidentId(`value`: Output) {
        this.incidentId = value
    }

    /**
     * @param value Relation Name
     */
    @JvmName("lgfiwqkbmskwqmoc")
    public suspend fun relationName(`value`: Output) {
        this.relationName = value
    }

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

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

    /**
     * @param value Incident Id
     */
    @JvmName("lfkiosndgtvijait")
    public suspend fun incidentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.incidentId = mapped
    }

    /**
     * @param value Relation Name
     */
    @JvmName("hgubvrusjnqioiij")
    public suspend fun relationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.relationName = mapped
    }

    /**
     * @param value The severity of the incident
     */
    @JvmName("hjnitrxyhkuwfqpv")
    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("wpptinxtpvxkifpa")
    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("rishpsiqtkpuwivo")
    public fun severity(`value`: IncidentSeverity) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.severity = mapped
    }

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

    internal fun build(): IncidentInfoArgs = IncidentInfoArgs(
        incidentId = incidentId,
        relationName = relationName,
        severity = severity,
        title = title,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy