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

com.pulumi.gcp.discoveryengine.kotlin.outputs.ChatEngineChatEngineConfig.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.discoveryengine.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 ChatEngineChatEngineConfig(
    public val agentCreationConfig: ChatEngineChatEngineConfigAgentCreationConfig? = null,
    public val dialogflowAgentToLink: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.discoveryengine.outputs.ChatEngineChatEngineConfig): ChatEngineChatEngineConfig = ChatEngineChatEngineConfig(
            agentCreationConfig = javaType.agentCreationConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.discoveryengine.kotlin.outputs.ChatEngineChatEngineConfigAgentCreationConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            dialogflowAgentToLink = javaType.dialogflowAgentToLink().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy