Class DialogflowCxIntent.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dialogflow_cx_intent.DialogflowCxIntent.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DialogflowCxIntent>
- Enclosing class:
- DialogflowCxIntent
@Stability(Stable) public static final class DialogflowCxIntent.Builder extends Object implements software.amazon.jsii.Builder<DialogflowCxIntent>
A fluent builder forDialogflowCxIntent.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DialogflowCxIntentbuild()DialogflowCxIntent.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)DialogflowCxIntent.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)DialogflowCxIntent.Buildercount(com.hashicorp.cdktf.TerraformCount count)DialogflowCxIntent.Buildercount(Number count)static DialogflowCxIntent.Buildercreate(software.constructs.Construct scope, String id)DialogflowCxIntent.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)DialogflowCxIntent.Builderdescription(String description)Human readable description for better understanding an intent like its scope, content, result etc.DialogflowCxIntent.BuilderdisplayName(String displayName)The human-readable name of the intent, unique within the agent.DialogflowCxIntent.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)DialogflowCxIntent.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#id DialogflowCxIntent#id}.DialogflowCxIntent.BuilderisDefaultNegativeIntent(com.hashicorp.cdktf.IResolvable isDefaultNegativeIntent)Marks this as the Default Negative Intent for an agent.DialogflowCxIntent.BuilderisDefaultNegativeIntent(Boolean isDefaultNegativeIntent)Marks this as the Default Negative Intent for an agent.DialogflowCxIntent.BuilderisDefaultWelcomeIntent(com.hashicorp.cdktf.IResolvable isDefaultWelcomeIntent)Marks this as the Default Welcome Intent for an agent.DialogflowCxIntent.BuilderisDefaultWelcomeIntent(Boolean isDefaultWelcomeIntent)Marks this as the Default Welcome Intent for an agent.DialogflowCxIntent.BuilderisFallback(com.hashicorp.cdktf.IResolvable isFallback)Indicates whether this is a fallback intent.DialogflowCxIntent.BuilderisFallback(Boolean isFallback)Indicates whether this is a fallback intent.DialogflowCxIntent.Builderlabels(Map<String,String> labels)The key/value metadata to label an intent.DialogflowCxIntent.BuilderlanguageCode(String languageCode)The language of the following fields in intent: Intent.training_phrases.parts.text If not specified, the agent's default language is used.DialogflowCxIntent.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)DialogflowCxIntent.Builderparameters(com.hashicorp.cdktf.IResolvable parameters)parameters block.DialogflowCxIntent.Builderparameters(List<? extends DialogflowCxIntentParameters> parameters)parameters block.DialogflowCxIntent.Builderparent(String parent)The agent to create an intent for.DialogflowCxIntent.Builderpriority(Number priority)The priority of this intent.DialogflowCxIntent.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)DialogflowCxIntent.Builderprovisioners(List<? extends Object> provisioners)DialogflowCxIntent.Buildertimeouts(DialogflowCxIntentTimeouts timeouts)timeouts block.DialogflowCxIntent.BuildertrainingPhrases(com.hashicorp.cdktf.IResolvable trainingPhrases)training_phrases block.DialogflowCxIntent.BuildertrainingPhrases(List<? extends DialogflowCxIntentTrainingPhrases> trainingPhrases)training_phrases block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static DialogflowCxIntent.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
DialogflowCxIntent.Builder.
-
connection
@Stability(Experimental) public DialogflowCxIntent.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public DialogflowCxIntent.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public DialogflowCxIntent.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public DialogflowCxIntent.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public DialogflowCxIntent.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public DialogflowCxIntent.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public DialogflowCxIntent.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public DialogflowCxIntent.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public DialogflowCxIntent.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
displayName
@Stability(Stable) public DialogflowCxIntent.Builder displayName(String displayName)
The human-readable name of the intent, unique within the agent.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#display_name DialogflowCxIntent#display_name}
- Parameters:
displayName- The human-readable name of the intent, unique within the agent. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public DialogflowCxIntent.Builder description(String description)
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#description DialogflowCxIntent#description}
- Parameters:
description- Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public DialogflowCxIntent.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#id DialogflowCxIntent#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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#id DialogflowCxIntent#id}. This parameter is required.- Returns:
this
-
isDefaultNegativeIntent
@Stability(Stable) public DialogflowCxIntent.Builder isDefaultNegativeIntent(Boolean isDefaultNegativeIntent)
Marks this as the Default Negative Intent for an agent. When you create an agent, a Default Negative Intent is created automatically. The Default Negative Intent cannot be deleted; deleting the 'google_dialogflow_cx_intent' resource does nothing to the underlying GCP resources.~> Avoid having multiple 'google_dialogflow_cx_intent' resources linked to the same agent with 'is_default_negative_intent = true' because they will compete to control a single Default Negative Intent resource in GCP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#is_default_negative_intent DialogflowCxIntent#is_default_negative_intent}
- Parameters:
isDefaultNegativeIntent- Marks this as the Default Negative Intent for an agent. When you create an agent, a Default Negative Intent is created automatically. The Default Negative Intent cannot be deleted; deleting the 'google_dialogflow_cx_intent' resource does nothing to the underlying GCP resources. This parameter is required.- Returns:
this
-
isDefaultNegativeIntent
@Stability(Stable) public DialogflowCxIntent.Builder isDefaultNegativeIntent(com.hashicorp.cdktf.IResolvable isDefaultNegativeIntent)
Marks this as the Default Negative Intent for an agent. When you create an agent, a Default Negative Intent is created automatically. The Default Negative Intent cannot be deleted; deleting the 'google_dialogflow_cx_intent' resource does nothing to the underlying GCP resources.~> Avoid having multiple 'google_dialogflow_cx_intent' resources linked to the same agent with 'is_default_negative_intent = true' because they will compete to control a single Default Negative Intent resource in GCP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#is_default_negative_intent DialogflowCxIntent#is_default_negative_intent}
- Parameters:
isDefaultNegativeIntent- Marks this as the Default Negative Intent for an agent. When you create an agent, a Default Negative Intent is created automatically. The Default Negative Intent cannot be deleted; deleting the 'google_dialogflow_cx_intent' resource does nothing to the underlying GCP resources. This parameter is required.- Returns:
this
-
isDefaultWelcomeIntent
@Stability(Stable) public DialogflowCxIntent.Builder isDefaultWelcomeIntent(Boolean isDefaultWelcomeIntent)
Marks this as the Default Welcome Intent for an agent. When you create an agent, a Default Welcome Intent is created automatically. The Default Welcome Intent cannot be deleted; deleting the 'google_dialogflow_cx_intent' resource does nothing to the underlying GCP resources.~> Avoid having multiple 'google_dialogflow_cx_intent' resources linked to the same agent with 'is_default_welcome_intent = true' because they will compete to control a single Default Welcome Intent resource in GCP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#is_default_welcome_intent DialogflowCxIntent#is_default_welcome_intent}
- Parameters:
isDefaultWelcomeIntent- Marks this as the Default Welcome Intent for an agent. When you create an agent, a Default Welcome Intent is created automatically. The Default Welcome Intent cannot be deleted; deleting the 'google_dialogflow_cx_intent' resource does nothing to the underlying GCP resources. This parameter is required.- Returns:
this
-
isDefaultWelcomeIntent
@Stability(Stable) public DialogflowCxIntent.Builder isDefaultWelcomeIntent(com.hashicorp.cdktf.IResolvable isDefaultWelcomeIntent)
Marks this as the Default Welcome Intent for an agent. When you create an agent, a Default Welcome Intent is created automatically. The Default Welcome Intent cannot be deleted; deleting the 'google_dialogflow_cx_intent' resource does nothing to the underlying GCP resources.~> Avoid having multiple 'google_dialogflow_cx_intent' resources linked to the same agent with 'is_default_welcome_intent = true' because they will compete to control a single Default Welcome Intent resource in GCP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#is_default_welcome_intent DialogflowCxIntent#is_default_welcome_intent}
- Parameters:
isDefaultWelcomeIntent- Marks this as the Default Welcome Intent for an agent. When you create an agent, a Default Welcome Intent is created automatically. The Default Welcome Intent cannot be deleted; deleting the 'google_dialogflow_cx_intent' resource does nothing to the underlying GCP resources. This parameter is required.- Returns:
this
-
isFallback
@Stability(Stable) public DialogflowCxIntent.Builder isFallback(Boolean isFallback)
Indicates whether this is a fallback intent.Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event. To manage the fallback intent, set 'is_default_negative_intent = true' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#is_fallback DialogflowCxIntent#is_fallback}
- Parameters:
isFallback- Indicates whether this is a fallback intent. This parameter is required.- Returns:
this
-
isFallback
@Stability(Stable) public DialogflowCxIntent.Builder isFallback(com.hashicorp.cdktf.IResolvable isFallback)
Indicates whether this is a fallback intent.Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event. To manage the fallback intent, set 'is_default_negative_intent = true' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#is_fallback DialogflowCxIntent#is_fallback}
- Parameters:
isFallback- Indicates whether this is a fallback intent. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public DialogflowCxIntent.Builder labels(Map<String,String> labels)
The key/value metadata to label an intent.Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#labels DialogflowCxIntent#labels}
- Parameters:
labels- The key/value metadata to label an intent. This parameter is required.- Returns:
this
-
languageCode
@Stability(Stable) public DialogflowCxIntent.Builder languageCode(String languageCode)
The language of the following fields in intent: Intent.training_phrases.parts.text 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_intent#language_code DialogflowCxIntent#language_code}
- Parameters:
languageCode- The language of the following fields in intent: Intent.training_phrases.parts.text 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. This parameter is required.- Returns:
this
-
parameters
@Stability(Stable) public DialogflowCxIntent.Builder parameters(com.hashicorp.cdktf.IResolvable parameters)
parameters block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#parameters DialogflowCxIntent#parameters}
- Parameters:
parameters- parameters block. This parameter is required.- Returns:
this
-
parameters
@Stability(Stable) public DialogflowCxIntent.Builder parameters(List<? extends DialogflowCxIntentParameters> parameters)
parameters block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#parameters DialogflowCxIntent#parameters}
- Parameters:
parameters- parameters block. This parameter is required.- Returns:
this
-
parent
@Stability(Stable) public DialogflowCxIntent.Builder parent(String parent)
The agent to create an intent for. Format: projects//locations/ /agents/ . Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#parent DialogflowCxIntent#parent}
- Parameters:
parent- The agent to create an intent for. Format: projects//locations/ /agents/ . This parameter is required. - Returns:
this
-
priority
@Stability(Stable) public DialogflowCxIntent.Builder priority(Number 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_cx_intent#priority DialogflowCxIntent#priority}
- Parameters:
priority- The priority of this intent. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public DialogflowCxIntent.Builder timeouts(DialogflowCxIntentTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#timeouts DialogflowCxIntent#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
trainingPhrases
@Stability(Stable) public DialogflowCxIntent.Builder trainingPhrases(com.hashicorp.cdktf.IResolvable trainingPhrases)
training_phrases block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#training_phrases DialogflowCxIntent#training_phrases}
- Parameters:
trainingPhrases- training_phrases block. This parameter is required.- Returns:
this
-
trainingPhrases
@Stability(Stable) public DialogflowCxIntent.Builder trainingPhrases(List<? extends DialogflowCxIntentTrainingPhrases> trainingPhrases)
training_phrases block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dialogflow_cx_intent#training_phrases DialogflowCxIntent#training_phrases}
- Parameters:
trainingPhrases- training_phrases block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public DialogflowCxIntent build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DialogflowCxIntent>- Returns:
- a newly built instance of
DialogflowCxIntent.
-
-