Class DialogflowCxFlowConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dialogflow_cx_flow.DialogflowCxFlowConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DialogflowCxFlowConfig>
- Enclosing interface:
- DialogflowCxFlowConfig
@Stability(Stable) public static final class DialogflowCxFlowConfig.Builder extends Object implements software.amazon.jsii.Builder<DialogflowCxFlowConfig>
A builder forDialogflowCxFlowConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
displayName
@Stability(Stable) public DialogflowCxFlowConfig.Builder displayName(String displayName)
Sets the value ofDialogflowCxFlowConfig.getDisplayName()- Parameters:
displayName- The human-readable name of the flow. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#display_name DialogflowCxFlow#display_name}- Returns:
this
-
advancedSettings
@Stability(Stable) public DialogflowCxFlowConfig.Builder advancedSettings(DialogflowCxFlowAdvancedSettings advancedSettings)
Sets the value ofDialogflowCxFlowConfig.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_flow#advanced_settings DialogflowCxFlow#advanced_settings}- Returns:
this
-
description
@Stability(Stable) public DialogflowCxFlowConfig.Builder description(String description)
Sets the value ofDialogflowCxFlowConfig.getDescription()- Parameters:
description- The description of the flow. 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_flow#description DialogflowCxFlow#description}- Returns:
this
-
eventHandlers
@Stability(Stable) public DialogflowCxFlowConfig.Builder eventHandlers(com.hashicorp.cdktf.IResolvable eventHandlers)
Sets the value ofDialogflowCxFlowConfig.getEventHandlers()- Parameters:
eventHandlers- event_handlers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#event_handlers DialogflowCxFlow#event_handlers}- Returns:
this
-
eventHandlers
@Stability(Stable) public DialogflowCxFlowConfig.Builder eventHandlers(List<? extends DialogflowCxFlowEventHandlers> eventHandlers)
Sets the value ofDialogflowCxFlowConfig.getEventHandlers()- Parameters:
eventHandlers- event_handlers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#event_handlers DialogflowCxFlow#event_handlers}- Returns:
this
-
id
@Stability(Stable) public DialogflowCxFlowConfig.Builder id(String id)
Sets the value ofDialogflowCxFlowConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#id DialogflowCxFlow#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
-
isDefaultStartFlow
@Stability(Stable) public DialogflowCxFlowConfig.Builder isDefaultStartFlow(Boolean isDefaultStartFlow)
Sets the value ofDialogflowCxFlowConfig.getIsDefaultStartFlow()- Parameters:
isDefaultStartFlow- Marks this as the Default Start Flow for an agent. When you create an agent, the Default Start Flow is created automatically. The Default Start Flow cannot be deleted; deleting the 'google_dialogflow_cx_flow' resource does nothing to the underlying GCP resources. ~> Avoid having multiple 'google_dialogflow_cx_flow' resources linked to the same agent with 'is_default_start_flow = true' because they will compete to control a single Default Start Flow resource in GCP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#is_default_start_flow DialogflowCxFlow#is_default_start_flow}- Returns:
this
-
isDefaultStartFlow
@Stability(Stable) public DialogflowCxFlowConfig.Builder isDefaultStartFlow(com.hashicorp.cdktf.IResolvable isDefaultStartFlow)
Sets the value ofDialogflowCxFlowConfig.getIsDefaultStartFlow()- Parameters:
isDefaultStartFlow- Marks this as the Default Start Flow for an agent. When you create an agent, the Default Start Flow is created automatically. The Default Start Flow cannot be deleted; deleting the 'google_dialogflow_cx_flow' resource does nothing to the underlying GCP resources. ~> Avoid having multiple 'google_dialogflow_cx_flow' resources linked to the same agent with 'is_default_start_flow = true' because they will compete to control a single Default Start Flow resource in GCP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#is_default_start_flow DialogflowCxFlow#is_default_start_flow}- Returns:
this
-
languageCode
@Stability(Stable) public DialogflowCxFlowConfig.Builder languageCode(String languageCode)
Sets the value ofDialogflowCxFlowConfig.getLanguageCode()- Parameters:
languageCode- The language of the following fields in flow: Flow.event_handlers.trigger_fulfillment.messages Flow.event_handlers.trigger_fulfillment.conditional_cases Flow.transition_routes.trigger_fulfillment.messages Flow.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#language_code DialogflowCxFlow#language_code}- Returns:
this
-
nluSettings
@Stability(Stable) public DialogflowCxFlowConfig.Builder nluSettings(DialogflowCxFlowNluSettings nluSettings)
Sets the value ofDialogflowCxFlowConfig.getNluSettings()- Parameters:
nluSettings- nlu_settings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#nlu_settings DialogflowCxFlow#nlu_settings}- Returns:
this
-
parent
@Stability(Stable) public DialogflowCxFlowConfig.Builder parent(String parent)
Sets the value ofDialogflowCxFlowConfig.getParent()- Parameters:
parent- The agent to create a flow for. Format: projects//locations/ /agents/ . Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#parent DialogflowCxFlow#parent} - Returns:
this
-
timeouts
@Stability(Stable) public DialogflowCxFlowConfig.Builder timeouts(DialogflowCxFlowTimeouts timeouts)
Sets the value ofDialogflowCxFlowConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#timeouts DialogflowCxFlow#timeouts}- Returns:
this
-
transitionRouteGroups
@Stability(Stable) public DialogflowCxFlowConfig.Builder transitionRouteGroups(List<String> transitionRouteGroups)
Sets the value ofDialogflowCxFlowConfig.getTransitionRouteGroups()- Parameters:
transitionRouteGroups- A flow's transition route group serve two purposes: They are responsible for matching the user's first utterances in the flow. They are inherited by every page's [transition route groups][Page.transition_route_groups]. Transition route groups defined in the page have higher priority than those defined in the flow. Format:projects//locations/ /agents/ /flows/ /transitionRouteGroups/ . Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#transition_route_groups DialogflowCxFlow#transition_route_groups} - Returns:
this
-
transitionRoutes
@Stability(Stable) public DialogflowCxFlowConfig.Builder transitionRoutes(com.hashicorp.cdktf.IResolvable transitionRoutes)
Sets the value ofDialogflowCxFlowConfig.getTransitionRoutes()- Parameters:
transitionRoutes- transition_routes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#transition_routes DialogflowCxFlow#transition_routes}- Returns:
this
-
transitionRoutes
@Stability(Stable) public DialogflowCxFlowConfig.Builder transitionRoutes(List<? extends DialogflowCxFlowTransitionRoutes> transitionRoutes)
Sets the value ofDialogflowCxFlowConfig.getTransitionRoutes()- Parameters:
transitionRoutes- transition_routes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_flow#transition_routes DialogflowCxFlow#transition_routes}- Returns:
this
-
connection
@Stability(Experimental) public DialogflowCxFlowConfig.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 DialogflowCxFlowConfig.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 DialogflowCxFlowConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DialogflowCxFlowConfig.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 DialogflowCxFlowConfig.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 DialogflowCxFlowConfig.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 DialogflowCxFlowConfig.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 DialogflowCxFlowConfig.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 DialogflowCxFlowConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DialogflowCxFlowConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DialogflowCxFlowConfig>- Returns:
- a new instance of
DialogflowCxFlowConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-