Class DialogflowCxIntentConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder displayName​(String displayName)
        Parameters:
        displayName - The human-readable name of the intent, unique within the agent. This parameter is required. 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}
        Returns:
        this
      • description

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder description​(String description)
        Parameters:
        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}
        Returns:
        this
      • id

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder id​(String id)
        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}. 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
      • isDefaultNegativeIntent

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder isDefaultNegativeIntent​(Boolean isDefaultNegativeIntent)
        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. ~> 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}
        Returns:
        this
      • isDefaultNegativeIntent

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder isDefaultNegativeIntent​(com.hashicorp.cdktf.IResolvable isDefaultNegativeIntent)
        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. ~> 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}
        Returns:
        this
      • isDefaultWelcomeIntent

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder isDefaultWelcomeIntent​(Boolean isDefaultWelcomeIntent)
        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. ~> 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}
        Returns:
        this
      • isDefaultWelcomeIntent

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder isDefaultWelcomeIntent​(com.hashicorp.cdktf.IResolvable isDefaultWelcomeIntent)
        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. ~> 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}
        Returns:
        this
      • isFallback

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder isFallback​(Boolean isFallback)
        Parameters:
        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}
        Returns:
        this
      • isFallback

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder isFallback​(com.hashicorp.cdktf.IResolvable isFallback)
        Parameters:
        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}
        Returns:
        this
      • labels

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder labels​(Map<String,​String> labels)
        Parameters:
        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}
        Returns:
        this
      • languageCode

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder languageCode​(String languageCode)
        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. 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}
        Returns:
        this
      • parameters

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder parameters​(com.hashicorp.cdktf.IResolvable parameters)
        Parameters:
        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}
        Returns:
        this
      • parent

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder parent​(String parent)
        Parameters:
        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}
        Returns:
        this
      • priority

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder priority​(Number priority)
        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_cx_intent#priority DialogflowCxIntent#priority}
        Returns:
        this
      • trainingPhrases

        @Stability(Stable)
        public DialogflowCxIntentConfig.Builder trainingPhrases​(com.hashicorp.cdktf.IResolvable trainingPhrases)
        Parameters:
        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}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public DialogflowCxIntentConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this