Class CfnBot.OutputContextProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.OutputContextProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.OutputContextProperty>
- Enclosing interface:
CfnBot.OutputContextProperty
@Stability(Stable)
public static final class CfnBot.OutputContextProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.OutputContextProperty>
A builder for
CfnBot.OutputContextProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBot.OutputContextProperty.getName()
timeToLiveInSeconds
(Number timeToLiveInSeconds) Sets the value ofCfnBot.OutputContextProperty.getTimeToLiveInSeconds()
turnsToLive
(Number turnsToLive) Sets the value ofCfnBot.OutputContextProperty.getTurnsToLive()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnBot.OutputContextProperty.getName()
- Parameters:
name
- The name of the output context. This parameter is required.- Returns:
this
-
timeToLiveInSeconds
@Stability(Stable) public CfnBot.OutputContextProperty.Builder timeToLiveInSeconds(Number timeToLiveInSeconds) Sets the value ofCfnBot.OutputContextProperty.getTimeToLiveInSeconds()
- Parameters:
timeToLiveInSeconds
- The amount of time, in seconds, that the output context should remain active. This parameter is required. The time is figured from the first time the context is sent to the user.- Returns:
this
-
turnsToLive
Sets the value ofCfnBot.OutputContextProperty.getTurnsToLive()
- Parameters:
turnsToLive
- The number of conversation turns that the output context should remain active. This parameter is required. The number of turns is counted from the first time that the context is sent to the user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.OutputContextProperty>
- Returns:
- a new instance of
CfnBot.OutputContextProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-