Class CfnBot.SampleUtteranceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SampleUtteranceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SampleUtteranceProperty>
- Enclosing interface:
CfnBot.SampleUtteranceProperty
@Stability(Stable)
public static final class CfnBot.SampleUtteranceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SampleUtteranceProperty>
A builder for
CfnBot.SampleUtteranceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBot.SampleUtteranceProperty.getUtterance()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
utterance
Sets the value ofCfnBot.SampleUtteranceProperty.getUtterance()
- Parameters:
utterance
- A sample utterance that invokes an intent or respond to a slot elicitation prompt. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.SampleUtteranceProperty>
- Returns:
- a new instance of
CfnBot.SampleUtteranceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-