Class CfnBot.SessionAttributeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SessionAttributeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SessionAttributeProperty>
- Enclosing interface:
CfnBot.SessionAttributeProperty
@Stability(Stable)
public static final class CfnBot.SessionAttributeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SessionAttributeProperty>
A builder for
CfnBot.SessionAttributeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBot.SessionAttributeProperty.getKey()
Sets the value ofCfnBot.SessionAttributeProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnBot.SessionAttributeProperty.getKey()
- Parameters:
key
- The name of the session attribute. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnBot.SessionAttributeProperty.getValue()
- Parameters:
value
- The session-specific context information for the session attribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.SessionAttributeProperty>
- Returns:
- a new instance of
CfnBot.SessionAttributeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-