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