Class DialogflowIntentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dialogflow_intent.DialogflowIntentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DialogflowIntentConfig>
- Enclosing interface:
- DialogflowIntentConfig
@Stability(Stable) public static final class DialogflowIntentConfig.Builder extends Object implements software.amazon.jsii.Builder<DialogflowIntentConfig>
A builder forDialogflowIntentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
displayName
@Stability(Stable) public DialogflowIntentConfig.Builder displayName(String displayName)
Sets the value ofDialogflowIntentConfig.getDisplayName()- Parameters:
displayName- The name of this intent to be displayed on the console. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#display_name DialogflowIntent#display_name}- Returns:
this
-
action
@Stability(Stable) public DialogflowIntentConfig.Builder action(String action)
Sets the value ofDialogflowIntentConfig.getAction()- Parameters:
action- The name of the action associated with the intent. Note: The action name must not contain whitespaces. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#action DialogflowIntent#action}- Returns:
this
-
defaultResponsePlatforms
@Stability(Stable) public DialogflowIntentConfig.Builder defaultResponsePlatforms(List<String> defaultResponsePlatforms)
Sets the value ofDialogflowIntentConfig.getDefaultResponsePlatforms()- Parameters:
defaultResponsePlatforms- The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Possible values: ["FACEBOOK", "SLACK", "TELEGRAM", "KIK", "SKYPE", "LINE", "VIBER", "ACTIONS_ON_GOOGLE", "GOOGLE_HANGOUTS"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#default_response_platforms DialogflowIntent#default_response_platforms}- Returns:
this
-
events
@Stability(Stable) public DialogflowIntentConfig.Builder events(List<String> events)
Sets the value ofDialogflowIntentConfig.getEvents()- Parameters:
events- The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the [events reference](https://cloud.google.com/dialogflow/docs/events-overview) for more details. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#events DialogflowIntent#events}- Returns:
this
-
id
@Stability(Stable) public DialogflowIntentConfig.Builder id(String id)
Sets the value ofDialogflowIntentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#id DialogflowIntent#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
-
inputContextNames
@Stability(Stable) public DialogflowIntentConfig.Builder inputContextNames(List<String> inputContextNames)
Sets the value ofDialogflowIntentConfig.getInputContextNames()- Parameters:
inputContextNames- The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/ . Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#input_context_names DialogflowIntent#input_context_names} - Returns:
this
-
isFallback
@Stability(Stable) public DialogflowIntentConfig.Builder isFallback(Boolean isFallback)
Sets the value ofDialogflowIntentConfig.getIsFallback()- Parameters:
isFallback- Indicates whether this is a fallback intent. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#is_fallback DialogflowIntent#is_fallback}- Returns:
this
-
isFallback
@Stability(Stable) public DialogflowIntentConfig.Builder isFallback(com.hashicorp.cdktf.IResolvable isFallback)
Sets the value ofDialogflowIntentConfig.getIsFallback()- Parameters:
isFallback- Indicates whether this is a fallback intent. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#is_fallback DialogflowIntent#is_fallback}- Returns:
this
-
mlDisabled
@Stability(Stable) public DialogflowIntentConfig.Builder mlDisabled(Boolean mlDisabled)
Sets the value ofDialogflowIntentConfig.getMlDisabled()- Parameters:
mlDisabled- Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#ml_disabled DialogflowIntent#ml_disabled}- Returns:
this
-
mlDisabled
@Stability(Stable) public DialogflowIntentConfig.Builder mlDisabled(com.hashicorp.cdktf.IResolvable mlDisabled)
Sets the value ofDialogflowIntentConfig.getMlDisabled()- Parameters:
mlDisabled- Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#ml_disabled DialogflowIntent#ml_disabled}- Returns:
this
-
parentFollowupIntentName
@Stability(Stable) public DialogflowIntentConfig.Builder parentFollowupIntentName(String parentFollowupIntentName)
Sets the value ofDialogflowIntentConfig.getParentFollowupIntentName()- Parameters:
parentFollowupIntentName- The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/ . Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#parent_followup_intent_name DialogflowIntent#parent_followup_intent_name} - Returns:
this
-
priority
@Stability(Stable) public DialogflowIntentConfig.Builder priority(Number priority)
Sets the value ofDialogflowIntentConfig.getPriority()- Parameters:
priority- The priority of this intent. Higher numbers represent higher priorities. * If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console. * If the supplied value is negative, the intent is ignored in runtime detect intent requests. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#priority DialogflowIntent#priority}- Returns:
this
-
project
@Stability(Stable) public DialogflowIntentConfig.Builder project(String project)
Sets the value ofDialogflowIntentConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#project DialogflowIntent#project}.- Returns:
this
-
resetContexts
@Stability(Stable) public DialogflowIntentConfig.Builder resetContexts(Boolean resetContexts)
Sets the value ofDialogflowIntentConfig.getResetContexts()- Parameters:
resetContexts- Indicates whether to delete all contexts in the current session when this intent is matched. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#reset_contexts DialogflowIntent#reset_contexts}- Returns:
this
-
resetContexts
@Stability(Stable) public DialogflowIntentConfig.Builder resetContexts(com.hashicorp.cdktf.IResolvable resetContexts)
Sets the value ofDialogflowIntentConfig.getResetContexts()- Parameters:
resetContexts- Indicates whether to delete all contexts in the current session when this intent is matched. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#reset_contexts DialogflowIntent#reset_contexts}- Returns:
this
-
timeouts
@Stability(Stable) public DialogflowIntentConfig.Builder timeouts(DialogflowIntentTimeouts timeouts)
Sets the value ofDialogflowIntentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#timeouts DialogflowIntent#timeouts}- Returns:
this
-
webhookState
@Stability(Stable) public DialogflowIntentConfig.Builder webhookState(String webhookState)
Sets the value ofDialogflowIntentConfig.getWebhookState()- Parameters:
webhookState- Indicates whether webhooks are enabled for the intent. * WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent. * WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values: ["WEBHOOK_STATE_ENABLED", "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_intent#webhook_state DialogflowIntent#webhook_state}- Returns:
this
-
connection
@Stability(Experimental) public DialogflowIntentConfig.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 DialogflowIntentConfig.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 DialogflowIntentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DialogflowIntentConfig.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 DialogflowIntentConfig.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 DialogflowIntentConfig.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 DialogflowIntentConfig.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 DialogflowIntentConfig.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 DialogflowIntentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DialogflowIntentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DialogflowIntentConfig>- Returns:
- a new instance of
DialogflowIntentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-