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

com.pulumi.awsnative.connect.kotlin.outputs.QuickConnectConfig.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.connect.kotlin.outputs

import com.pulumi.awsnative.connect.kotlin.enums.QuickConnectType
import kotlin.Suppress

/**
 * Configuration settings for the quick connect.
 * @property phoneConfig The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.
 * @property queueConfig The queue configuration. This is required only if QuickConnectType is QUEUE.
 * @property quickConnectType The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).
 * @property userConfig The user configuration. This is required only if QuickConnectType is USER.
 */
public data class QuickConnectConfig(
    public val phoneConfig: QuickConnectPhoneNumberQuickConnectConfig? = null,
    public val queueConfig: QuickConnectQueueQuickConnectConfig? = null,
    public val quickConnectType: QuickConnectType,
    public val userConfig: QuickConnectUserQuickConnectConfig? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.connect.outputs.QuickConnectConfig): QuickConnectConfig = QuickConnectConfig(
            phoneConfig = javaType.phoneConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.connect.kotlin.outputs.QuickConnectPhoneNumberQuickConnectConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            queueConfig = javaType.queueConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.connect.kotlin.outputs.QuickConnectQueueQuickConnectConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            quickConnectType = javaType.quickConnectType().let({ args0 ->
                com.pulumi.awsnative.connect.kotlin.enums.QuickConnectType.Companion.toKotlin(args0)
            }),
            userConfig = javaType.userConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.connect.kotlin.outputs.QuickConnectUserQuickConnectConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy