Class DialogflowCxAgentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dialogflow_cx_agent.DialogflowCxAgentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DialogflowCxAgentConfig>
- Enclosing interface:
- DialogflowCxAgentConfig
@Stability(Stable) public static final class DialogflowCxAgentConfig.Builder extends Object implements software.amazon.jsii.Builder<DialogflowCxAgentConfig>
A builder forDialogflowCxAgentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
defaultLanguageCode
@Stability(Stable) public DialogflowCxAgentConfig.Builder defaultLanguageCode(String defaultLanguageCode)
Sets the value ofDialogflowCxAgentConfig.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/cx/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_cx_agent#default_language_code DialogflowCxAgent#default_language_code}- Returns:
this
-
displayName
@Stability(Stable) public DialogflowCxAgentConfig.Builder displayName(String displayName)
Sets the value ofDialogflowCxAgentConfig.getDisplayName()- Parameters:
displayName- The human-readable name of the agent, unique within the location. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#display_name DialogflowCxAgent#display_name}- Returns:
this
-
location
@Stability(Stable) public DialogflowCxAgentConfig.Builder location(String location)
Sets the value ofDialogflowCxAgentConfig.getLocation()- Parameters:
location- The name of the location this agent is located in. This parameter is required. ~> **Note:** The first time you are deploying an Agent in your project you must configure location settings. This is a one time step but at the moment you can only [configure location settings](https://cloud.google.com/dialogflow/cx/docs/concept/region#location-settings) via the Dialogflow CX console. Another options is to use global location so you don't need to manually configure location settings. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#location DialogflowCxAgent#location}- Returns:
this
-
timeZone
@Stability(Stable) public DialogflowCxAgentConfig.Builder timeZone(String timeZone)
Sets the value ofDialogflowCxAgentConfig.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_cx_agent#time_zone DialogflowCxAgent#time_zone}- Returns:
this
-
advancedSettings
@Stability(Stable) public DialogflowCxAgentConfig.Builder advancedSettings(DialogflowCxAgentAdvancedSettings advancedSettings)
Sets the value ofDialogflowCxAgentConfig.getAdvancedSettings()- Parameters:
advancedSettings- advanced_settings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#advanced_settings DialogflowCxAgent#advanced_settings}- Returns:
this
-
avatarUri
@Stability(Stable) public DialogflowCxAgentConfig.Builder avatarUri(String avatarUri)
Sets the value ofDialogflowCxAgentConfig.getAvatarUri()- Parameters:
avatarUri- The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#avatar_uri DialogflowCxAgent#avatar_uri}- Returns:
this
-
description
@Stability(Stable) public DialogflowCxAgentConfig.Builder description(String description)
Sets the value ofDialogflowCxAgentConfig.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_cx_agent#description DialogflowCxAgent#description}- Returns:
this
-
enableSpellCorrection
@Stability(Stable) public DialogflowCxAgentConfig.Builder enableSpellCorrection(Boolean enableSpellCorrection)
Sets the value ofDialogflowCxAgentConfig.getEnableSpellCorrection()- Parameters:
enableSpellCorrection- Indicates if automatic spell correction is enabled in detect intent requests. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#enable_spell_correction DialogflowCxAgent#enable_spell_correction}- Returns:
this
-
enableSpellCorrection
@Stability(Stable) public DialogflowCxAgentConfig.Builder enableSpellCorrection(com.hashicorp.cdktf.IResolvable enableSpellCorrection)
Sets the value ofDialogflowCxAgentConfig.getEnableSpellCorrection()- Parameters:
enableSpellCorrection- Indicates if automatic spell correction is enabled in detect intent requests. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#enable_spell_correction DialogflowCxAgent#enable_spell_correction}- Returns:
this
-
enableStackdriverLogging
@Stability(Stable) public DialogflowCxAgentConfig.Builder enableStackdriverLogging(Boolean enableStackdriverLogging)
Sets the value ofDialogflowCxAgentConfig.getEnableStackdriverLogging()- Parameters:
enableStackdriverLogging- 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_cx_agent#enable_stackdriver_logging DialogflowCxAgent#enable_stackdriver_logging}- Returns:
this
-
enableStackdriverLogging
@Stability(Stable) public DialogflowCxAgentConfig.Builder enableStackdriverLogging(com.hashicorp.cdktf.IResolvable enableStackdriverLogging)
Sets the value ofDialogflowCxAgentConfig.getEnableStackdriverLogging()- Parameters:
enableStackdriverLogging- 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_cx_agent#enable_stackdriver_logging DialogflowCxAgent#enable_stackdriver_logging}- Returns:
this
-
gitIntegrationSettings
@Stability(Stable) public DialogflowCxAgentConfig.Builder gitIntegrationSettings(DialogflowCxAgentGitIntegrationSettings gitIntegrationSettings)
Sets the value ofDialogflowCxAgentConfig.getGitIntegrationSettings()- Parameters:
gitIntegrationSettings- git_integration_settings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#git_integration_settings DialogflowCxAgent#git_integration_settings}- Returns:
this
-
id
@Stability(Stable) public DialogflowCxAgentConfig.Builder id(String id)
Sets the value ofDialogflowCxAgentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#id DialogflowCxAgent#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
-
project
@Stability(Stable) public DialogflowCxAgentConfig.Builder project(String project)
Sets the value ofDialogflowCxAgentConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#project DialogflowCxAgent#project}.- Returns:
this
-
securitySettings
@Stability(Stable) public DialogflowCxAgentConfig.Builder securitySettings(String securitySettings)
Sets the value ofDialogflowCxAgentConfig.getSecuritySettings()- Parameters:
securitySettings- Name of the SecuritySettings reference for the agent. Format: projects//locations/ /securitySettings/ . Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#security_settings DialogflowCxAgent#security_settings} - Returns:
this
-
speechToTextSettings
@Stability(Stable) public DialogflowCxAgentConfig.Builder speechToTextSettings(DialogflowCxAgentSpeechToTextSettings speechToTextSettings)
Sets the value ofDialogflowCxAgentConfig.getSpeechToTextSettings()- Parameters:
speechToTextSettings- speech_to_text_settings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#speech_to_text_settings DialogflowCxAgent#speech_to_text_settings}- Returns:
this
-
supportedLanguageCodes
@Stability(Stable) public DialogflowCxAgentConfig.Builder supportedLanguageCodes(List<String> supportedLanguageCodes)
Sets the value ofDialogflowCxAgentConfig.getSupportedLanguageCodes()- Parameters:
supportedLanguageCodes- The list of all languages supported by this agent (except for the default_language_code). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#supported_language_codes DialogflowCxAgent#supported_language_codes}- Returns:
this
-
textToSpeechSettings
@Stability(Stable) public DialogflowCxAgentConfig.Builder textToSpeechSettings(DialogflowCxAgentTextToSpeechSettings textToSpeechSettings)
Sets the value ofDialogflowCxAgentConfig.getTextToSpeechSettings()- Parameters:
textToSpeechSettings- text_to_speech_settings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#text_to_speech_settings DialogflowCxAgent#text_to_speech_settings}- Returns:
this
-
timeouts
@Stability(Stable) public DialogflowCxAgentConfig.Builder timeouts(DialogflowCxAgentTimeouts timeouts)
Sets the value ofDialogflowCxAgentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_agent#timeouts DialogflowCxAgent#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DialogflowCxAgentConfig.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 DialogflowCxAgentConfig.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 DialogflowCxAgentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DialogflowCxAgentConfig.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 DialogflowCxAgentConfig.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 DialogflowCxAgentConfig.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 DialogflowCxAgentConfig.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 DialogflowCxAgentConfig.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 DialogflowCxAgentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DialogflowCxAgentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DialogflowCxAgentConfig>- Returns:
- a new instance of
DialogflowCxAgentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-