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

com.pulumi.gcp.discoveryengine.kotlin.inputs.ChatEngineChatEngineConfigAgentCreationConfigArgs.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.10.0.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.ChatEngineChatEngineConfigAgentCreationConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property business Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
 * @property defaultLanguageCode The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
 * @property location Agent location for Agent creation, currently supported values: global/us/eu, it needs to be the same region as the Chat Engine.
 * - - -
 * @property timeZone The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
 */
public data class ChatEngineChatEngineConfigAgentCreationConfigArgs(
    public val business: Output? = null,
    public val defaultLanguageCode: Output,
    public val location: Output? = null,
    public val timeZone: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.discoveryengine.inputs.ChatEngineChatEngineConfigAgentCreationConfigArgs =
        com.pulumi.gcp.discoveryengine.inputs.ChatEngineChatEngineConfigAgentCreationConfigArgs.builder()
            .business(business?.applyValue({ args0 -> args0 }))
            .defaultLanguageCode(defaultLanguageCode.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .timeZone(timeZone.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ChatEngineChatEngineConfigAgentCreationConfigArgs].
 */
@PulumiTagMarker
public class ChatEngineChatEngineConfigAgentCreationConfigArgsBuilder internal constructor() {
    private var business: Output? = null

    private var defaultLanguageCode: Output? = null

    private var location: Output? = null

    private var timeZone: Output? = null

    /**
     * @param value Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
     */
    @JvmName("ncbdnrhomusekpis")
    public suspend fun business(`value`: Output) {
        this.business = value
    }

    /**
     * @param value The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
     */
    @JvmName("oxxtloabsoomicvn")
    public suspend fun defaultLanguageCode(`value`: Output) {
        this.defaultLanguageCode = value
    }

    /**
     * @param value Agent location for Agent creation, currently supported values: global/us/eu, it needs to be the same region as the Chat Engine.
     * - - -
     */
    @JvmName("pulmrvcavqnikyxg")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
     */
    @JvmName("nhyniwdyulggruao")
    public suspend fun timeZone(`value`: Output) {
        this.timeZone = value
    }

    /**
     * @param value Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
     */
    @JvmName("tglqdynvllufojlj")
    public suspend fun business(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.business = mapped
    }

    /**
     * @param value The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
     */
    @JvmName("wfdmdoxgrelvixry")
    public suspend fun defaultLanguageCode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultLanguageCode = mapped
    }

    /**
     * @param value Agent location for Agent creation, currently supported values: global/us/eu, it needs to be the same region as the Chat Engine.
     * - - -
     */
    @JvmName("dtkhsjptsegjturd")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
     */
    @JvmName("ptdqtljthkgqyeiv")
    public suspend fun timeZone(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeZone = mapped
    }

    internal fun build(): ChatEngineChatEngineConfigAgentCreationConfigArgs =
        ChatEngineChatEngineConfigAgentCreationConfigArgs(
            business = business,
            defaultLanguageCode = defaultLanguageCode ?: throw PulumiNullFieldException("defaultLanguageCode"),
            location = location,
            timeZone = timeZone ?: throw PulumiNullFieldException("timeZone"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy