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

com.pulumi.gcp.discoveryengine.kotlin.inputs.ChatEngineChatEngineConfigArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.discoveryengine.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.discoveryengine.inputs.ChatEngineChatEngineConfigArgs.builder
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.jvm.JvmName

/**
 *
 * @property agentCreationConfig The configuration to generate the Dialogflow agent that is associated to this Engine.
 * Exactly one of `agent_creation_config` or `dialogflow_agent_to_link` must be set.
 * Structure is documented below.
 * @property dialogflowAgentToLink The resource name of an existing Dialogflow agent to link to this Chat Engine. Format: `projects//locations//agents/`.
 * Exactly one of `agent_creation_config` or `dialogflow_agent_to_link` must be set.
 */
public data class ChatEngineChatEngineConfigArgs(
    public val agentCreationConfig: Output? = null,
    public val dialogflowAgentToLink: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.discoveryengine.inputs.ChatEngineChatEngineConfigArgs =
        com.pulumi.gcp.discoveryengine.inputs.ChatEngineChatEngineConfigArgs.builder()
            .agentCreationConfig(
                agentCreationConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .dialogflowAgentToLink(dialogflowAgentToLink?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ChatEngineChatEngineConfigArgs].
 */
@PulumiTagMarker
public class ChatEngineChatEngineConfigArgsBuilder internal constructor() {
    private var agentCreationConfig: Output? = null

    private var dialogflowAgentToLink: Output? = null

    /**
     * @param value The configuration to generate the Dialogflow agent that is associated to this Engine.
     * Exactly one of `agent_creation_config` or `dialogflow_agent_to_link` must be set.
     * Structure is documented below.
     */
    @JvmName("uwdeqpmqncemifgo")
    public suspend fun agentCreationConfig(`value`: Output) {
        this.agentCreationConfig = value
    }

    /**
     * @param value The resource name of an existing Dialogflow agent to link to this Chat Engine. Format: `projects//locations//agents/`.
     * Exactly one of `agent_creation_config` or `dialogflow_agent_to_link` must be set.
     */
    @JvmName("lwkhegogokfmrvlh")
    public suspend fun dialogflowAgentToLink(`value`: Output) {
        this.dialogflowAgentToLink = value
    }

    /**
     * @param value The configuration to generate the Dialogflow agent that is associated to this Engine.
     * Exactly one of `agent_creation_config` or `dialogflow_agent_to_link` must be set.
     * Structure is documented below.
     */
    @JvmName("hbqfecpmbnwacnhx")
    public suspend fun agentCreationConfig(`value`: ChatEngineChatEngineConfigAgentCreationConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentCreationConfig = mapped
    }

    /**
     * @param argument The configuration to generate the Dialogflow agent that is associated to this Engine.
     * Exactly one of `agent_creation_config` or `dialogflow_agent_to_link` must be set.
     * Structure is documented below.
     */
    @JvmName("ffjltgmhhsuoypdv")
    public suspend fun agentCreationConfig(argument: suspend ChatEngineChatEngineConfigAgentCreationConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ChatEngineChatEngineConfigAgentCreationConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.agentCreationConfig = mapped
    }

    /**
     * @param value The resource name of an existing Dialogflow agent to link to this Chat Engine. Format: `projects//locations//agents/`.
     * Exactly one of `agent_creation_config` or `dialogflow_agent_to_link` must be set.
     */
    @JvmName("qpymbyeafhhmfpao")
    public suspend fun dialogflowAgentToLink(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dialogflowAgentToLink = mapped
    }

    internal fun build(): ChatEngineChatEngineConfigArgs = ChatEngineChatEngineConfigArgs(
        agentCreationConfig = agentCreationConfig,
        dialogflowAgentToLink = dialogflowAgentToLink,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy