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

com.pulumi.awsnative.connect.kotlin.QueueArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.connect.kotlin

import com.pulumi.awsnative.connect.QueueArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.QueueStatus
import com.pulumi.awsnative.connect.kotlin.inputs.QueueOutboundCallerConfigArgs
import com.pulumi.awsnative.connect.kotlin.inputs.QueueOutboundCallerConfigArgsBuilder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Connect::Queue
 * @property description The description of the queue.
 * @property hoursOfOperationArn The identifier for the hours of operation.
 * @property instanceArn The identifier of the Amazon Connect instance.
 * @property maxContacts The maximum number of contacts that can be in the queue before it is considered full.
 * @property name The name of the queue.
 * @property outboundCallerConfig The outbound caller ID name, number, and outbound whisper flow.
 * @property quickConnectArns The quick connects available to agents who are working the queue.
 * @property status The status of the queue.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class QueueArgs(
    public val description: Output? = null,
    public val hoursOfOperationArn: Output? = null,
    public val instanceArn: Output? = null,
    public val maxContacts: Output? = null,
    public val name: Output? = null,
    public val outboundCallerConfig: Output? = null,
    public val quickConnectArns: Output>? = null,
    public val status: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.QueueArgs =
        com.pulumi.awsnative.connect.QueueArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .hoursOfOperationArn(hoursOfOperationArn?.applyValue({ args0 -> args0 }))
            .instanceArn(instanceArn?.applyValue({ args0 -> args0 }))
            .maxContacts(maxContacts?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .outboundCallerConfig(
                outboundCallerConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .quickConnectArns(quickConnectArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [QueueArgs].
 */
@PulumiTagMarker
public class QueueArgsBuilder internal constructor() {
    private var description: Output? = null

    private var hoursOfOperationArn: Output? = null

    private var instanceArn: Output? = null

    private var maxContacts: Output? = null

    private var name: Output? = null

    private var outboundCallerConfig: Output? = null

    private var quickConnectArns: Output>? = null

    private var status: Output? = null

    private var tags: Output>? = null

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

    /**
     * @param value The identifier for the hours of operation.
     */
    @JvmName("raomnmoklncgkmnj")
    public suspend fun hoursOfOperationArn(`value`: Output) {
        this.hoursOfOperationArn = value
    }

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

    /**
     * @param value The maximum number of contacts that can be in the queue before it is considered full.
     */
    @JvmName("ktcvlkoudmisbhjr")
    public suspend fun maxContacts(`value`: Output) {
        this.maxContacts = value
    }

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

    /**
     * @param value The outbound caller ID name, number, and outbound whisper flow.
     */
    @JvmName("rlnjjbeycgspxrat")
    public suspend fun outboundCallerConfig(`value`: Output) {
        this.outboundCallerConfig = value
    }

    /**
     * @param value The quick connects available to agents who are working the queue.
     */
    @JvmName("uvopoyffrjowcdrv")
    public suspend fun quickConnectArns(`value`: Output>) {
        this.quickConnectArns = value
    }

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

    /**
     * @param values The quick connects available to agents who are working the queue.
     */
    @JvmName("glkovfiqeaewjtsj")
    public suspend fun quickConnectArns(values: List>) {
        this.quickConnectArns = Output.all(values)
    }

    /**
     * @param value The status of the queue.
     */
    @JvmName("gjcygocwaqkpqrqr")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("cuvxrrjpysgnfhlr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("iyfnixvldarupyte")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The identifier for the hours of operation.
     */
    @JvmName("jxdneptovyocxvbn")
    public suspend fun hoursOfOperationArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hoursOfOperationArn = mapped
    }

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

    /**
     * @param value The maximum number of contacts that can be in the queue before it is considered full.
     */
    @JvmName("qhvmbaexundjpluo")
    public suspend fun maxContacts(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxContacts = mapped
    }

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

    /**
     * @param value The outbound caller ID name, number, and outbound whisper flow.
     */
    @JvmName("tireyqdibrrrlhjl")
    public suspend fun outboundCallerConfig(`value`: QueueOutboundCallerConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outboundCallerConfig = mapped
    }

    /**
     * @param argument The outbound caller ID name, number, and outbound whisper flow.
     */
    @JvmName("rgtcgfqtygqagsiy")
    public suspend fun outboundCallerConfig(argument: suspend QueueOutboundCallerConfigArgsBuilder.() -> Unit) {
        val toBeMapped = QueueOutboundCallerConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.outboundCallerConfig = mapped
    }

    /**
     * @param value The quick connects available to agents who are working the queue.
     */
    @JvmName("jnmvlewxhqdsmcyh")
    public suspend fun quickConnectArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.quickConnectArns = mapped
    }

    /**
     * @param values The quick connects available to agents who are working the queue.
     */
    @JvmName("sqiqwikyehcvbwbh")
    public suspend fun quickConnectArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.quickConnectArns = mapped
    }

    /**
     * @param value The status of the queue.
     */
    @JvmName("qgcdgdhptjxwlvcc")
    public suspend fun status(`value`: QueueStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("jwcmknnctnuwshvc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("patickuxxgoauits")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("balwjfjfndexxkvk")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("ikepxwemdtbgtuyv")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("icibrmcfpjxhfpif")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): QueueArgs = QueueArgs(
        description = description,
        hoursOfOperationArn = hoursOfOperationArn,
        instanceArn = instanceArn,
        maxContacts = maxContacts,
        name = name,
        outboundCallerConfig = outboundCallerConfig,
        quickConnectArns = quickConnectArns,
        status = status,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy