Class DialogflowAgentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dialogflow_agent.DialogflowAgentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DialogflowAgentConfig>
- Enclosing interface:
- DialogflowAgentConfig
@Stability(Stable) public static final class DialogflowAgentConfig.Builder extends Object implements software.amazon.jsii.Builder<DialogflowAgentConfig>
A builder forDialogflowAgentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
defaultLanguageCode
@Stability(Stable) public DialogflowAgentConfig.Builder defaultLanguageCode(String defaultLanguageCode)
Sets the value ofDialogflowAgentConfig.getDefaultLanguageCode()- Parameters:
defaultLanguageCode- The default language of the agent as a language tag. This parameter is required. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. This field cannot be updated after creation. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#default_language_code DialogflowAgent#default_language_code}- Returns:
this
-
displayName
@Stability(Stable) public DialogflowAgentConfig.Builder displayName(String displayName)
Sets the value ofDialogflowAgentConfig.getDisplayName()- Parameters:
displayName- The name of this agent. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#display_name DialogflowAgent#display_name}- Returns:
this
-
timeZone
@Stability(Stable) public DialogflowAgentConfig.Builder timeZone(String timeZone)
Sets the value ofDialogflowAgentConfig.getTimeZone()- Parameters:
timeZone- The time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#time_zone DialogflowAgent#time_zone}- Returns:
this
-
apiVersion
@Stability(Stable) public DialogflowAgentConfig.Builder apiVersion(String apiVersion)
Sets the value ofDialogflowAgentConfig.getApiVersion()- Parameters:
apiVersion- API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version. * API_VERSION_V1: Legacy V1 API. * API_VERSION_V2: V2 API. * API_VERSION_V2_BETA_1: V2beta1 API. Possible values: ["API_VERSION_V1", "API_VERSION_V2", "API_VERSION_V2_BETA_1"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#api_version DialogflowAgent#api_version}- Returns:
this
-
avatarUri
@Stability(Stable) public DialogflowAgentConfig.Builder avatarUri(String avatarUri)
Sets the value ofDialogflowAgentConfig.getAvatarUri()- Parameters:
avatarUri- The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered into this field, the Dialogflow will save the image in the backend. The address of the backend image returned from the API will be shown in the [avatarUriBackend] field. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#avatar_uri DialogflowAgent#avatar_uri}- Returns:
this
-
classificationThreshold
@Stability(Stable) public DialogflowAgentConfig.Builder classificationThreshold(Number classificationThreshold)
Sets the value ofDialogflowAgentConfig.getClassificationThreshold()- Parameters:
classificationThreshold- To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#classification_threshold DialogflowAgent#classification_threshold}- Returns:
this
-
description
@Stability(Stable) public DialogflowAgentConfig.Builder description(String description)
Sets the value ofDialogflowAgentConfig.getDescription()- Parameters:
description- The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#description DialogflowAgent#description}- Returns:
this
-
enableLogging
@Stability(Stable) public DialogflowAgentConfig.Builder enableLogging(Boolean enableLogging)
Sets the value ofDialogflowAgentConfig.getEnableLogging()- Parameters:
enableLogging- Determines whether this agent should log conversation queries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#enable_logging DialogflowAgent#enable_logging}- Returns:
this
-
enableLogging
@Stability(Stable) public DialogflowAgentConfig.Builder enableLogging(com.hashicorp.cdktf.IResolvable enableLogging)
Sets the value ofDialogflowAgentConfig.getEnableLogging()- Parameters:
enableLogging- Determines whether this agent should log conversation queries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#enable_logging DialogflowAgent#enable_logging}- Returns:
this
-
id
@Stability(Stable) public DialogflowAgentConfig.Builder id(String id)
Sets the value ofDialogflowAgentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#id DialogflowAgent#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
matchMode
@Stability(Stable) public DialogflowAgentConfig.Builder matchMode(String matchMode)
Sets the value ofDialogflowAgentConfig.getMatchMode()- Parameters:
matchMode- Determines how intents are detected from user queries.- MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates syntax and composite entities.
- MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones using
- Returns:
this
-
project
@Stability(Stable) public DialogflowAgentConfig.Builder project(String project)
Sets the value ofDialogflowAgentConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#project DialogflowAgent#project}.- Returns:
this
-
supportedLanguageCodes
@Stability(Stable) public DialogflowAgentConfig.Builder supportedLanguageCodes(List<String> supportedLanguageCodes)
Sets the value ofDialogflowAgentConfig.getSupportedLanguageCodes()- Parameters:
supportedLanguageCodes- The list of all languages supported by this agent (except for the defaultLanguageCode). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#supported_language_codes DialogflowAgent#supported_language_codes}- Returns:
this
-
tier
@Stability(Stable) public DialogflowAgentConfig.Builder tier(String tier)
Sets the value ofDialogflowAgentConfig.getTier()- Parameters:
tier- The agent tier. If not specified, TIER_STANDARD is assumed. * TIER_STANDARD: Standard tier. * TIER_ENTERPRISE: Enterprise tier (Essentials). * TIER_ENTERPRISE_PLUS: Enterprise tier (Plus). NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between the Terraform state and Dialogflow if the agent tier is changed outside of Terraform. Possible values: ["TIER_STANDARD", "TIER_ENTERPRISE", "TIER_ENTERPRISE_PLUS"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#tier DialogflowAgent#tier}- Returns:
this
-
timeouts
@Stability(Stable) public DialogflowAgentConfig.Builder timeouts(DialogflowAgentTimeouts timeouts)
Sets the value ofDialogflowAgentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_agent#timeouts DialogflowAgent#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DialogflowAgentConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public DialogflowAgentConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DialogflowAgentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DialogflowAgentConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public DialogflowAgentConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public DialogflowAgentConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public DialogflowAgentConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public DialogflowAgentConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public DialogflowAgentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DialogflowAgentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DialogflowAgentConfig>- Returns:
- a new instance of
DialogflowAgentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-