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

com.pulumi.azurenative.botservice.kotlin.inputs.TelephonyChannelPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.botservice.kotlin.inputs

import com.pulumi.azurenative.botservice.inputs.TelephonyChannelPropertiesArgs.builder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The parameters to provide for the Direct Line channel.
 * @property apiConfigurations The list of Telephony api configuration
 * @property cognitiveServiceRegion The extensionKey2
 * @property cognitiveServiceSubscriptionKey The extensionKey1
 * @property defaultLocale The default locale of the channel
 * @property isEnabled Whether the channel is enabled
 * @property phoneNumbers The list of Telephony phone numbers
 * @property premiumSKU The premium SKU applied to the channel
 */
public data class TelephonyChannelPropertiesArgs(
    public val apiConfigurations: Output>? = null,
    public val cognitiveServiceRegion: Output? = null,
    public val cognitiveServiceSubscriptionKey: Output? = null,
    public val defaultLocale: Output? = null,
    public val isEnabled: Output? = null,
    public val phoneNumbers: Output>? = null,
    public val premiumSKU: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.botservice.inputs.TelephonyChannelPropertiesArgs =
        com.pulumi.azurenative.botservice.inputs.TelephonyChannelPropertiesArgs.builder()
            .apiConfigurations(
                apiConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .cognitiveServiceRegion(cognitiveServiceRegion?.applyValue({ args0 -> args0 }))
            .cognitiveServiceSubscriptionKey(cognitiveServiceSubscriptionKey?.applyValue({ args0 -> args0 }))
            .defaultLocale(defaultLocale?.applyValue({ args0 -> args0 }))
            .isEnabled(isEnabled?.applyValue({ args0 -> args0 }))
            .phoneNumbers(
                phoneNumbers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .premiumSKU(premiumSKU?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TelephonyChannelPropertiesArgs].
 */
@PulumiTagMarker
public class TelephonyChannelPropertiesArgsBuilder internal constructor() {
    private var apiConfigurations: Output>? = null

    private var cognitiveServiceRegion: Output? = null

    private var cognitiveServiceSubscriptionKey: Output? = null

    private var defaultLocale: Output? = null

    private var isEnabled: Output? = null

    private var phoneNumbers: Output>? = null

    private var premiumSKU: Output? = null

    /**
     * @param value The list of Telephony api configuration
     */
    @JvmName("vlgykovycnqnmlla")
    public suspend fun apiConfigurations(`value`: Output>) {
        this.apiConfigurations = value
    }

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

    /**
     * @param values The list of Telephony api configuration
     */
    @JvmName("cncdkvasserstnyh")
    public suspend fun apiConfigurations(values: List>) {
        this.apiConfigurations = Output.all(values)
    }

    /**
     * @param value The extensionKey2
     */
    @JvmName("cpekiyapjmxfptnu")
    public suspend fun cognitiveServiceRegion(`value`: Output) {
        this.cognitiveServiceRegion = value
    }

    /**
     * @param value The extensionKey1
     */
    @JvmName("dyctdhyvamkowcxy")
    public suspend fun cognitiveServiceSubscriptionKey(`value`: Output) {
        this.cognitiveServiceSubscriptionKey = value
    }

    /**
     * @param value The default locale of the channel
     */
    @JvmName("pbjnamytgxpausgv")
    public suspend fun defaultLocale(`value`: Output) {
        this.defaultLocale = value
    }

    /**
     * @param value Whether the channel is enabled
     */
    @JvmName("xgbaspjyydndjdnb")
    public suspend fun isEnabled(`value`: Output) {
        this.isEnabled = value
    }

    /**
     * @param value The list of Telephony phone numbers
     */
    @JvmName("uuqkveqoswefsdri")
    public suspend fun phoneNumbers(`value`: Output>) {
        this.phoneNumbers = value
    }

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

    /**
     * @param values The list of Telephony phone numbers
     */
    @JvmName("mumdhfpitffeysbc")
    public suspend fun phoneNumbers(values: List>) {
        this.phoneNumbers = Output.all(values)
    }

    /**
     * @param value The premium SKU applied to the channel
     */
    @JvmName("ihacyuhgokawjujd")
    public suspend fun premiumSKU(`value`: Output) {
        this.premiumSKU = value
    }

    /**
     * @param value The list of Telephony api configuration
     */
    @JvmName("hvtbmemymtaskdjd")
    public suspend fun apiConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiConfigurations = mapped
    }

    /**
     * @param argument The list of Telephony api configuration
     */
    @JvmName("yhjqyovqhhwxkxkc")
    public suspend fun apiConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TelephonyChannelResourceApiConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.apiConfigurations = mapped
    }

    /**
     * @param argument The list of Telephony api configuration
     */
    @JvmName("llasgfgbueuasqki")
    public suspend fun apiConfigurations(vararg argument: suspend TelephonyChannelResourceApiConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TelephonyChannelResourceApiConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.apiConfigurations = mapped
    }

    /**
     * @param argument The list of Telephony api configuration
     */
    @JvmName("molkaxmrbcvsmyay")
    public suspend fun apiConfigurations(argument: suspend TelephonyChannelResourceApiConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TelephonyChannelResourceApiConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.apiConfigurations = mapped
    }

    /**
     * @param values The list of Telephony api configuration
     */
    @JvmName("abfdodoohddgefur")
    public suspend fun apiConfigurations(vararg values: TelephonyChannelResourceApiConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.apiConfigurations = mapped
    }

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

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

    /**
     * @param value The default locale of the channel
     */
    @JvmName("cirdddswrjnfutau")
    public suspend fun defaultLocale(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultLocale = mapped
    }

    /**
     * @param value Whether the channel is enabled
     */
    @JvmName("mafpersrkiuntnby")
    public suspend fun isEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isEnabled = mapped
    }

    /**
     * @param value The list of Telephony phone numbers
     */
    @JvmName("vjruoyakynbtoosf")
    public suspend fun phoneNumbers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.phoneNumbers = mapped
    }

    /**
     * @param argument The list of Telephony phone numbers
     */
    @JvmName("kktpmsvualgiamga")
    public suspend fun phoneNumbers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TelephonyPhoneNumbersArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.phoneNumbers = mapped
    }

    /**
     * @param argument The list of Telephony phone numbers
     */
    @JvmName("mevbqlcddiocihua")
    public suspend fun phoneNumbers(vararg argument: suspend TelephonyPhoneNumbersArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TelephonyPhoneNumbersArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.phoneNumbers = mapped
    }

    /**
     * @param argument The list of Telephony phone numbers
     */
    @JvmName("iucgdjhjvshtiwfa")
    public suspend fun phoneNumbers(argument: suspend TelephonyPhoneNumbersArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TelephonyPhoneNumbersArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.phoneNumbers = mapped
    }

    /**
     * @param values The list of Telephony phone numbers
     */
    @JvmName("nnuncirjqwunipbt")
    public suspend fun phoneNumbers(vararg values: TelephonyPhoneNumbersArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.phoneNumbers = mapped
    }

    /**
     * @param value The premium SKU applied to the channel
     */
    @JvmName("spspbwefrsnywxwr")
    public suspend fun premiumSKU(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.premiumSKU = mapped
    }

    internal fun build(): TelephonyChannelPropertiesArgs = TelephonyChannelPropertiesArgs(
        apiConfigurations = apiConfigurations,
        cognitiveServiceRegion = cognitiveServiceRegion,
        cognitiveServiceSubscriptionKey = cognitiveServiceSubscriptionKey,
        defaultLocale = defaultLocale,
        isEnabled = isEnabled,
        phoneNumbers = phoneNumbers,
        premiumSKU = premiumSKU,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy