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

com.pulumi.awsnative.connect.kotlin.inputs.RuleTaskActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.connect.kotlin.inputs

import com.pulumi.awsnative.connect.inputs.RuleTaskActionArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The definition of task action.
 * @property contactFlowArn The Amazon Resource Name (ARN) of the contact flow.
 * @property description The description which appears in the agent's Contact Control Panel (CCP).
 * @property name The name which appears in the agent's Contact Control Panel (CCP).
 * @property references A formatted URL that is shown to an agent in the Contact Control Panel (CCP).
 */
public data class RuleTaskActionArgs(
    public val contactFlowArn: Output,
    public val description: Output? = null,
    public val name: Output,
    public val references: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.RuleTaskActionArgs =
        com.pulumi.awsnative.connect.inputs.RuleTaskActionArgs.builder()
            .contactFlowArn(contactFlowArn.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .references(
                references?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RuleTaskActionArgs].
 */
@PulumiTagMarker
public class RuleTaskActionArgsBuilder internal constructor() {
    private var contactFlowArn: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    private var references: Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the contact flow.
     */
    @JvmName("acpladnbbwtmfqpk")
    public suspend fun contactFlowArn(`value`: Output) {
        this.contactFlowArn = value
    }

    /**
     * @param value The description which appears in the agent's Contact Control Panel (CCP).
     */
    @JvmName("ygyitgwkvfosoilu")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name which appears in the agent's Contact Control Panel (CCP).
     */
    @JvmName("xsaqsymogkdjohom")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A formatted URL that is shown to an agent in the Contact Control Panel (CCP).
     */
    @JvmName("cmyraccmptgpxxba")
    public suspend fun references(`value`: Output>) {
        this.references = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the contact flow.
     */
    @JvmName("bawsilsnrjbdrdgs")
    public suspend fun contactFlowArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contactFlowArn = mapped
    }

    /**
     * @param value The description which appears in the agent's Contact Control Panel (CCP).
     */
    @JvmName("yhinxvcoldifcrbq")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name which appears in the agent's Contact Control Panel (CCP).
     */
    @JvmName("dgkoicnydjdthwxf")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A formatted URL that is shown to an agent in the Contact Control Panel (CCP).
     */
    @JvmName("btfeaicnevwfjewa")
    public suspend fun references(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.references = mapped
    }

    /**
     * @param argument A formatted URL that is shown to an agent in the Contact Control Panel (CCP).
     */
    @JvmName("yhcgtgkmdhispgcq")
    public suspend fun references(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                RuleReferenceArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.references = mapped
    }

    /**
     * @param values A formatted URL that is shown to an agent in the Contact Control Panel (CCP).
     */
    @JvmName("cyhwdykindogvikx")
    public fun references(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.references = mapped
    }

    internal fun build(): RuleTaskActionArgs = RuleTaskActionArgs(
        contactFlowArn = contactFlowArn ?: throw PulumiNullFieldException("contactFlowArn"),
        description = description,
        name = name ?: throw PulumiNullFieldException("name"),
        references = references,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy