Class CfnBot.CustomVocabularyItemProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.CustomVocabularyItemProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.CustomVocabularyItemProperty>
- Enclosing interface:
- CfnBot.CustomVocabularyItemProperty
@Stability(Stable)
public static final class CfnBot.CustomVocabularyItemProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.CustomVocabularyItemProperty>
A builder for
CfnBot.CustomVocabularyItemProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBot.CustomVocabularyItemProperty.getDisplayAs()Sets the value ofCfnBot.CustomVocabularyItemProperty.getPhrase()Sets the value ofCfnBot.CustomVocabularyItemProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
phrase
Sets the value ofCfnBot.CustomVocabularyItemProperty.getPhrase()- Parameters:
phrase- Specifies 1 - 4 words that should be recognized. This parameter is required.- Returns:
this
-
displayAs
Sets the value ofCfnBot.CustomVocabularyItemProperty.getDisplayAs()- Parameters:
displayAs- The DisplayAs value for the custom vocabulary item from the custom vocabulary list.- Returns:
this
-
weight
Sets the value ofCfnBot.CustomVocabularyItemProperty.getWeight()- Parameters:
weight- Specifies the degree to which the phrase recognition is boosted. The default value is 1.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.CustomVocabularyItemProperty>- Returns:
- a new instance of
CfnBot.CustomVocabularyItemProperty - Throws:
NullPointerException- if any required attribute was not provided
-