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

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

import com.pulumi.awsnative.connect.inputs.RoutingProfileQueueConfigArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Contains information about the queue and channel for which priority and delay can be set.
 * @property delay The delay, in seconds, a contact should be in the queue before they are routed to an available agent. For more information, see [Queues: priority and delay](https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html) in the *Amazon Connect Administrator Guide* .
 * @property priority The order in which contacts are to be handled for the queue. For more information, see [Queues: priority and delay](https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html) .
 * @property queueReference Contains information about a queue resource.
 */
public data class RoutingProfileQueueConfigArgs(
    public val delay: Output,
    public val priority: Output,
    public val queueReference: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.RoutingProfileQueueConfigArgs =
        com.pulumi.awsnative.connect.inputs.RoutingProfileQueueConfigArgs.builder()
            .delay(delay.applyValue({ args0 -> args0 }))
            .priority(priority.applyValue({ args0 -> args0 }))
            .queueReference(
                queueReference.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [RoutingProfileQueueConfigArgs].
 */
@PulumiTagMarker
public class RoutingProfileQueueConfigArgsBuilder internal constructor() {
    private var delay: Output? = null

    private var priority: Output? = null

    private var queueReference: Output? = null

    /**
     * @param value The delay, in seconds, a contact should be in the queue before they are routed to an available agent. For more information, see [Queues: priority and delay](https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html) in the *Amazon Connect Administrator Guide* .
     */
    @JvmName("kjjqranjcgxkfelh")
    public suspend fun delay(`value`: Output) {
        this.delay = value
    }

    /**
     * @param value The order in which contacts are to be handled for the queue. For more information, see [Queues: priority and delay](https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html) .
     */
    @JvmName("wfbpiyhtpxbjbfly")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value Contains information about a queue resource.
     */
    @JvmName("uwhpxvpnksymwirm")
    public suspend fun queueReference(`value`: Output) {
        this.queueReference = value
    }

    /**
     * @param value The delay, in seconds, a contact should be in the queue before they are routed to an available agent. For more information, see [Queues: priority and delay](https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html) in the *Amazon Connect Administrator Guide* .
     */
    @JvmName("ibomadwfrstjiyii")
    public suspend fun delay(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.delay = mapped
    }

    /**
     * @param value The order in which contacts are to be handled for the queue. For more information, see [Queues: priority and delay](https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html) .
     */
    @JvmName("yodntpmiqyimuahp")
    public suspend fun priority(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value Contains information about a queue resource.
     */
    @JvmName("rrryqaxynaywhrbm")
    public suspend fun queueReference(`value`: RoutingProfileQueueReferenceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queueReference = mapped
    }

    /**
     * @param argument Contains information about a queue resource.
     */
    @JvmName("hojorqbeidupccew")
    public suspend fun queueReference(argument: suspend RoutingProfileQueueReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = RoutingProfileQueueReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.queueReference = mapped
    }

    internal fun build(): RoutingProfileQueueConfigArgs = RoutingProfileQueueConfigArgs(
        delay = delay ?: throw PulumiNullFieldException("delay"),
        priority = priority ?: throw PulumiNullFieldException("priority"),
        queueReference = queueReference ?: throw PulumiNullFieldException("queueReference"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy