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

com.pulumi.awsnative.ssmcontacts.kotlin.ContactArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ssmcontacts.kotlin

import com.pulumi.awsnative.ssmcontacts.ContactArgs.builder
import com.pulumi.awsnative.ssmcontacts.kotlin.enums.ContactType
import com.pulumi.awsnative.ssmcontacts.kotlin.inputs.ContactStageArgs
import com.pulumi.awsnative.ssmcontacts.kotlin.inputs.ContactStageArgsBuilder
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

/**
 * Resource Type definition for AWS::SSMContacts::Contact
 * @property alias Alias of the contact. String value with 20 to 256 characters. Only alphabetical, numeric characters, dash, or underscore allowed.
 * @property displayName Name of the contact. String value with 3 to 256 characters. Only alphabetical, space, numeric characters, dash, or underscore allowed.
 * @property plan The stages that an escalation plan or engagement plan engages contacts and contact methods in.
 * @property type Contact type, which specify type of contact. Currently supported values: "PERSONAL", "SHARED", "OTHER".
 */
public data class ContactArgs(
    public val alias: Output? = null,
    public val displayName: Output? = null,
    public val plan: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmcontacts.ContactArgs =
        com.pulumi.awsnative.ssmcontacts.ContactArgs.builder()
            .alias(alias?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .plan(plan?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ContactArgs].
 */
@PulumiTagMarker
public class ContactArgsBuilder internal constructor() {
    private var alias: Output? = null

    private var displayName: Output? = null

    private var plan: Output>? = null

    private var type: Output? = null

    /**
     * @param value Alias of the contact. String value with 20 to 256 characters. Only alphabetical, numeric characters, dash, or underscore allowed.
     */
    @JvmName("yutbpripqqofbxdt")
    public suspend fun alias(`value`: Output) {
        this.alias = value
    }

    /**
     * @param value Name of the contact. String value with 3 to 256 characters. Only alphabetical, space, numeric characters, dash, or underscore allowed.
     */
    @JvmName("sspojolohhfyfmit")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("qdxmjowylnitkgun")
    public suspend fun plan(`value`: Output>) {
        this.plan = value
    }

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

    /**
     * @param values The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("nnabtrvtsisjhnnb")
    public suspend fun plan(values: List>) {
        this.plan = Output.all(values)
    }

    /**
     * @param value Contact type, which specify type of contact. Currently supported values: "PERSONAL", "SHARED", "OTHER".
     */
    @JvmName("skntajlilaekopun")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Alias of the contact. String value with 20 to 256 characters. Only alphabetical, numeric characters, dash, or underscore allowed.
     */
    @JvmName("kknxfnhyshqpucqw")
    public suspend fun alias(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alias = mapped
    }

    /**
     * @param value Name of the contact. String value with 3 to 256 characters. Only alphabetical, space, numeric characters, dash, or underscore allowed.
     */
    @JvmName("lmgmlgdnpfuevwjx")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("bucalsgaeuvmujds")
    public suspend fun plan(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.plan = mapped
    }

    /**
     * @param argument The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("jtbmwsujbirjglwe")
    public suspend fun plan(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ContactStageArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.plan = mapped
    }

    /**
     * @param argument The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("ttefsiwhrmsejjae")
    public suspend fun plan(vararg argument: suspend ContactStageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ContactStageArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.plan = mapped
    }

    /**
     * @param argument The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("gkrohblsycjmyatm")
    public suspend fun plan(argument: suspend ContactStageArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ContactStageArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.plan = mapped
    }

    /**
     * @param values The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("pqaquvhjxaovdmcy")
    public suspend fun plan(vararg values: ContactStageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.plan = mapped
    }

    /**
     * @param value Contact type, which specify type of contact. Currently supported values: "PERSONAL", "SHARED", "OTHER".
     */
    @JvmName("fxljewkigmsibclu")
    public suspend fun type(`value`: ContactType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ContactArgs = ContactArgs(
        alias = alias,
        displayName = displayName,
        plan = plan,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy