public static final class CfnBot.CustomVocabularyItemProperty.Builder
extends java.lang.Object
CfnBot.CustomVocabularyItemProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnBot.CustomVocabularyItemProperty |
build()
Builds the configured instance.
|
CfnBot.CustomVocabularyItemProperty.Builder |
phrase(java.lang.String phrase)
Sets the value of
CfnBot.CustomVocabularyItemProperty.getPhrase() |
CfnBot.CustomVocabularyItemProperty.Builder |
weight(java.lang.Number weight)
Sets the value of
CfnBot.CustomVocabularyItemProperty.getWeight() |
public CfnBot.CustomVocabularyItemProperty.Builder phrase(java.lang.String phrase)
CfnBot.CustomVocabularyItemProperty.getPhrase()
phrase
- Specifies 1 - 4 words that should be recognized. This parameter is required.this
public CfnBot.CustomVocabularyItemProperty.Builder weight(java.lang.Number weight)
CfnBot.CustomVocabularyItemProperty.getWeight()
weight
- Specifies the degree to which the phrase recognition is boosted.
The default value is 1.this
public CfnBot.CustomVocabularyItemProperty build()
CfnBot.CustomVocabularyItemProperty
java.lang.NullPointerException
- if any required attribute was not provided