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

com.pulumi.awsnative.connect.kotlin.ContactFlowArgs.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.connect.kotlin

import com.pulumi.awsnative.connect.ContactFlowArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.ContactFlowState
import com.pulumi.awsnative.connect.kotlin.enums.ContactFlowType
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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::Connect::ContactFlow
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property content The content of the contact flow in JSON format.
 * @property description The description of the contact flow.
 * @property instanceArn The identifier of the Amazon Connect instance (ARN).
 * @property name The name of the contact flow.
 * @property state The state of the contact flow.
 * @property tags One or more tags.
 * @property type The type of the contact flow.
 */
public data class ContactFlowArgs(
    public val content: Output? = null,
    public val description: Output? = null,
    public val instanceArn: Output? = null,
    public val name: Output? = null,
    public val state: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.ContactFlowArgs =
        com.pulumi.awsnative.connect.ContactFlowArgs.builder()
            .content(content?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .instanceArn(instanceArn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .state(state?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ContactFlowArgs].
 */
@PulumiTagMarker
public class ContactFlowArgsBuilder internal constructor() {
    private var content: Output? = null

    private var description: Output? = null

    private var instanceArn: Output? = null

    private var name: Output? = null

    private var state: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value The content of the contact flow in JSON format.
     */
    @JvmName("vdvemjdgjubtbmfk")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value The description of the contact flow.
     */
    @JvmName("rpbdjwlyituwjylx")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The identifier of the Amazon Connect instance (ARN).
     */
    @JvmName("ggncwsciblvwavck")
    public suspend fun instanceArn(`value`: Output) {
        this.instanceArn = value
    }

    /**
     * @param value The name of the contact flow.
     */
    @JvmName("skqbtudxwvmbamys")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The state of the contact flow.
     */
    @JvmName("ronbhwklhejecqxk")
    public suspend fun state(`value`: Output) {
        this.state = value
    }

    /**
     * @param value One or more tags.
     */
    @JvmName("ekhaaegckcxdqoae")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values One or more tags.
     */
    @JvmName("dlytvusiublocvbd")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of the contact flow.
     */
    @JvmName("stkaggulgmlckmcx")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The content of the contact flow in JSON format.
     */
    @JvmName("bixqxbhldblfrecc")
    public suspend fun content(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.content = mapped
    }

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

    /**
     * @param value The identifier of the Amazon Connect instance (ARN).
     */
    @JvmName("thluxghcpdhlyolc")
    public suspend fun instanceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceArn = mapped
    }

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

    /**
     * @param value The state of the contact flow.
     */
    @JvmName("ahayirrgrpgypoqn")
    public suspend fun state(`value`: ContactFlowState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.state = mapped
    }

    /**
     * @param value One or more tags.
     */
    @JvmName("aoknbsojffvqrbgu")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument One or more tags.
     */
    @JvmName("quomsvxdcakgyqkp")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument One or more tags.
     */
    @JvmName("kclcwnghkwsvcbqu")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument One or more tags.
     */
    @JvmName("jnwtjrifkuydadhf")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values One or more tags.
     */
    @JvmName("vndwsxtrerhpurmw")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of the contact flow.
     */
    @JvmName("crtsmeknycmsbrdu")
    public suspend fun type(`value`: ContactFlowType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ContactFlowArgs = ContactFlowArgs(
        content = content,
        description = description,
        instanceArn = instanceArn,
        name = name,
        state = state,
        tags = tags,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy