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

com.pulumi.awsnative.ssmincidents.kotlin.inputs.ResponsePlanIncidentTemplateArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ssmincidents.kotlin.inputs

import com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanIncidentTemplateArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The incident template configuration.
 * @property dedupeString The deduplication string.
 * @property impact The impact value.
 * @property incidentTags Tags that get applied to incidents created by the StartIncident API action.
 * @property notificationTargets The list of notification targets.
 * @property summary The summary string.
 * @property title The title string.
 */
public data class ResponsePlanIncidentTemplateArgs(
    public val dedupeString: Output? = null,
    public val impact: Output,
    public val incidentTags: Output>? = null,
    public val notificationTargets: Output>? = null,
    public val summary: Output? = null,
    public val title: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanIncidentTemplateArgs =
        com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanIncidentTemplateArgs.builder()
            .dedupeString(dedupeString?.applyValue({ args0 -> args0 }))
            .impact(impact.applyValue({ args0 -> args0 }))
            .incidentTags(
                incidentTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .notificationTargets(
                notificationTargets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .summary(summary?.applyValue({ args0 -> args0 }))
            .title(title.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResponsePlanIncidentTemplateArgs].
 */
@PulumiTagMarker
public class ResponsePlanIncidentTemplateArgsBuilder internal constructor() {
    private var dedupeString: Output? = null

    private var impact: Output? = null

    private var incidentTags: Output>? = null

    private var notificationTargets: Output>? = null

    private var summary: Output? = null

    private var title: Output? = null

    /**
     * @param value The deduplication string.
     */
    @JvmName("ripexxvrisfnnecd")
    public suspend fun dedupeString(`value`: Output) {
        this.dedupeString = value
    }

    /**
     * @param value The impact value.
     */
    @JvmName("igyyboydrngrefmu")
    public suspend fun impact(`value`: Output) {
        this.impact = value
    }

    /**
     * @param value Tags that get applied to incidents created by the StartIncident API action.
     */
    @JvmName("vrvxgkbuqukfwcxl")
    public suspend fun incidentTags(`value`: Output>) {
        this.incidentTags = value
    }

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

    /**
     * @param values Tags that get applied to incidents created by the StartIncident API action.
     */
    @JvmName("vvlqgyelcqmpqruv")
    public suspend fun incidentTags(values: List>) {
        this.incidentTags = Output.all(values)
    }

    /**
     * @param value The list of notification targets.
     */
    @JvmName("mxkyyyuksbseaogk")
    public suspend fun notificationTargets(`value`: Output>) {
        this.notificationTargets = value
    }

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

    /**
     * @param values The list of notification targets.
     */
    @JvmName("lyijmkntkmclaofn")
    public suspend fun notificationTargets(values: List>) {
        this.notificationTargets = Output.all(values)
    }

    /**
     * @param value The summary string.
     */
    @JvmName("yfmcwxmjkxsdraop")
    public suspend fun summary(`value`: Output) {
        this.summary = value
    }

    /**
     * @param value The title string.
     */
    @JvmName("uuganhcclsgnewcj")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value The deduplication string.
     */
    @JvmName("utytithkxcsvwtgv")
    public suspend fun dedupeString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dedupeString = mapped
    }

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

    /**
     * @param value Tags that get applied to incidents created by the StartIncident API action.
     */
    @JvmName("beakvbbbxlshdolr")
    public suspend fun incidentTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.incidentTags = mapped
    }

    /**
     * @param argument Tags that get applied to incidents created by the StartIncident API action.
     */
    @JvmName("jwaxtyileicykmkp")
    public suspend fun incidentTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResponsePlanTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.incidentTags = mapped
    }

    /**
     * @param argument Tags that get applied to incidents created by the StartIncident API action.
     */
    @JvmName("isutlmtmblagtawy")
    public suspend fun incidentTags(vararg argument: suspend ResponsePlanTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResponsePlanTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.incidentTags = mapped
    }

    /**
     * @param argument Tags that get applied to incidents created by the StartIncident API action.
     */
    @JvmName("oehadhgevfxqpajs")
    public suspend fun incidentTags(argument: suspend ResponsePlanTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResponsePlanTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.incidentTags = mapped
    }

    /**
     * @param values Tags that get applied to incidents created by the StartIncident API action.
     */
    @JvmName("ccwyepkllrbhycin")
    public suspend fun incidentTags(vararg values: ResponsePlanTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.incidentTags = mapped
    }

    /**
     * @param value The list of notification targets.
     */
    @JvmName("snukdwqfdkfdggon")
    public suspend fun notificationTargets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationTargets = mapped
    }

    /**
     * @param argument The list of notification targets.
     */
    @JvmName("fnjlqmtrrvaspngv")
    public suspend fun notificationTargets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResponsePlanNotificationTargetItemArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.notificationTargets = mapped
    }

    /**
     * @param argument The list of notification targets.
     */
    @JvmName("svhoqamnrerbnlsb")
    public suspend fun notificationTargets(vararg argument: suspend ResponsePlanNotificationTargetItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResponsePlanNotificationTargetItemArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.notificationTargets = mapped
    }

    /**
     * @param argument The list of notification targets.
     */
    @JvmName("afeujpakrikgtscw")
    public suspend fun notificationTargets(argument: suspend ResponsePlanNotificationTargetItemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ResponsePlanNotificationTargetItemArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.notificationTargets = mapped
    }

    /**
     * @param values The list of notification targets.
     */
    @JvmName("losrjjnvxjqjkymy")
    public suspend fun notificationTargets(vararg values: ResponsePlanNotificationTargetItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notificationTargets = mapped
    }

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

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

    internal fun build(): ResponsePlanIncidentTemplateArgs = ResponsePlanIncidentTemplateArgs(
        dedupeString = dedupeString,
        impact = impact ?: throw PulumiNullFieldException("impact"),
        incidentTags = incidentTags,
        notificationTargets = notificationTargets,
        summary = summary,
        title = title ?: throw PulumiNullFieldException("title"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy