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

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

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

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

import com.pulumi.azurenative.botservice.inputs.DirectLineChannelPropertiesArgs.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.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 directLineEmbedCode Direct Line embed code of the resource
 * @property extensionKey1 The extensionKey1
 * @property extensionKey2 The extensionKey2
 * @property sites The list of Direct Line sites
 */
public data class DirectLineChannelPropertiesArgs(
    public val directLineEmbedCode: Output? = null,
    public val extensionKey1: Output? = null,
    public val extensionKey2: Output? = null,
    public val sites: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.botservice.inputs.DirectLineChannelPropertiesArgs =
        com.pulumi.azurenative.botservice.inputs.DirectLineChannelPropertiesArgs.builder()
            .directLineEmbedCode(directLineEmbedCode?.applyValue({ args0 -> args0 }))
            .extensionKey1(extensionKey1?.applyValue({ args0 -> args0 }))
            .extensionKey2(extensionKey2?.applyValue({ args0 -> args0 }))
            .sites(
                sites?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DirectLineChannelPropertiesArgs].
 */
@PulumiTagMarker
public class DirectLineChannelPropertiesArgsBuilder internal constructor() {
    private var directLineEmbedCode: Output? = null

    private var extensionKey1: Output? = null

    private var extensionKey2: Output? = null

    private var sites: Output>? = null

    /**
     * @param value Direct Line embed code of the resource
     */
    @JvmName("nacpdkysesrnnkfb")
    public suspend fun directLineEmbedCode(`value`: Output) {
        this.directLineEmbedCode = value
    }

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

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

    /**
     * @param value The list of Direct Line sites
     */
    @JvmName("gmgpssffauotieqe")
    public suspend fun sites(`value`: Output>) {
        this.sites = value
    }

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

    /**
     * @param values The list of Direct Line sites
     */
    @JvmName("ndhrihyqlsuyctic")
    public suspend fun sites(values: List>) {
        this.sites = Output.all(values)
    }

    /**
     * @param value Direct Line embed code of the resource
     */
    @JvmName("hywevmtahpkuefvf")
    public suspend fun directLineEmbedCode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.directLineEmbedCode = mapped
    }

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

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

    /**
     * @param value The list of Direct Line sites
     */
    @JvmName("xyyrenhgcrvuuycx")
    public suspend fun sites(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sites = mapped
    }

    /**
     * @param argument The list of Direct Line sites
     */
    @JvmName("owfoobeksvbjkmlk")
    public suspend fun sites(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DirectLineSiteArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sites = mapped
    }

    /**
     * @param argument The list of Direct Line sites
     */
    @JvmName("uvdxskymlyjpiauo")
    public suspend fun sites(vararg argument: suspend DirectLineSiteArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DirectLineSiteArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sites = mapped
    }

    /**
     * @param argument The list of Direct Line sites
     */
    @JvmName("dhfldjflpbjkbxri")
    public suspend fun sites(argument: suspend DirectLineSiteArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DirectLineSiteArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sites = mapped
    }

    /**
     * @param values The list of Direct Line sites
     */
    @JvmName("ceyqygrgfkgwbnlf")
    public suspend fun sites(vararg values: DirectLineSiteArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sites = mapped
    }

    internal fun build(): DirectLineChannelPropertiesArgs = DirectLineChannelPropertiesArgs(
        directLineEmbedCode = directLineEmbedCode,
        extensionKey1 = extensionKey1,
        extensionKey2 = extensionKey2,
        sites = sites,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy