Class CfnBotPropsMixin.CustomVocabularyItemProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.CustomVocabularyItemProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.CustomVocabularyItemProperty>
- Enclosing interface:
CfnBotPropsMixin.CustomVocabularyItemProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.CustomVocabularyItemProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.CustomVocabularyItemProperty>
A builder for
CfnBotPropsMixin.CustomVocabularyItemProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBotPropsMixin.CustomVocabularyItemProperty.getDisplayAs()Sets the value ofCfnBotPropsMixin.CustomVocabularyItemProperty.getPhrase()Sets the value ofCfnBotPropsMixin.CustomVocabularyItemProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
displayAs
@Stability(Stable) public CfnBotPropsMixin.CustomVocabularyItemProperty.Builder displayAs(String displayAs) Sets the value ofCfnBotPropsMixin.CustomVocabularyItemProperty.getDisplayAs()- Parameters:
displayAs- The DisplayAs value for the custom vocabulary item from the custom vocabulary list.- Returns:
this
-
phrase
@Stability(Stable) public CfnBotPropsMixin.CustomVocabularyItemProperty.Builder phrase(String phrase) Sets the value ofCfnBotPropsMixin.CustomVocabularyItemProperty.getPhrase()- Parameters:
phrase- Specifies 1 - 4 words that should be recognized.- Returns:
this
-
weight
@Stability(Stable) public CfnBotPropsMixin.CustomVocabularyItemProperty.Builder weight(Number weight) Sets the value ofCfnBotPropsMixin.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<CfnBotPropsMixin.CustomVocabularyItemProperty>- Returns:
- a new instance of
CfnBotPropsMixin.CustomVocabularyItemProperty - Throws:
NullPointerException- if any required attribute was not provided
-