Interface OutputContext.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OutputContext.Builder,OutputContext>,SdkBuilder<OutputContext.Builder,OutputContext>,SdkPojo
- Enclosing class:
- OutputContext
public static interface OutputContext.Builder extends SdkPojo, CopyableBuilder<OutputContext.Builder,OutputContext>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputContext.Buildername(String name)The name of the context.OutputContext.BuildertimeToLiveInSeconds(Integer timeToLiveInSeconds)The number of seconds that the context should be active after it is first sent in aPostContentorPostTextresponse.OutputContext.BuilderturnsToLive(Integer turnsToLive)The number of conversation turns that the context should be active.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
OutputContext.Builder name(String name)
The name of the context.
- Parameters:
name- The name of the context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeToLiveInSeconds
OutputContext.Builder timeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context should be active after it is first sent in a
PostContentorPostTextresponse. You can set the value between 5 and 86,400 seconds (24 hours).- Parameters:
timeToLiveInSeconds- The number of seconds that the context should be active after it is first sent in aPostContentorPostTextresponse. You can set the value between 5 and 86,400 seconds (24 hours).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
turnsToLive
OutputContext.Builder turnsToLive(Integer turnsToLive)
The number of conversation turns that the context should be active. A conversation turn is one
PostContentorPostTextrequest and the corresponding response from Amazon Lex.- Parameters:
turnsToLive- The number of conversation turns that the context should be active. A conversation turn is onePostContentorPostTextrequest and the corresponding response from Amazon Lex.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-