Interface ActiveContext.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ActiveContext.Builder,ActiveContext>,SdkBuilder<ActiveContext.Builder,ActiveContext>,SdkPojo
- Enclosing class:
- ActiveContext
public static interface ActiveContext.Builder extends SdkPojo, CopyableBuilder<ActiveContext.Builder,ActiveContext>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ActiveContext.BuildercontextAttributes(Map<String,String> contextAttributes)A list of contexts active for the request.ActiveContext.Buildername(String name)The name of the context.default ActiveContext.BuildertimeToLive(Consumer<ActiveContextTimeToLive.Builder> timeToLive)Indicates the number of turns or seconds that the context is active.ActiveContext.BuildertimeToLive(ActiveContextTimeToLive timeToLive)Indicates the number of turns or seconds that the context is 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
ActiveContext.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.
-
timeToLive
ActiveContext.Builder timeToLive(ActiveContextTimeToLive timeToLive)
Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.
- Parameters:
timeToLive- Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeToLive
default ActiveContext.Builder timeToLive(Consumer<ActiveContextTimeToLive.Builder> timeToLive)
Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.
This is a convenience method that creates an instance of theActiveContextTimeToLive.Builderavoiding the need to create one manually viaActiveContextTimeToLive.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeToLive(ActiveContextTimeToLive).- Parameters:
timeToLive- a consumer that will call methods onActiveContextTimeToLive.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timeToLive(ActiveContextTimeToLive)
-
contextAttributes
ActiveContext.Builder contextAttributes(Map<String,String> contextAttributes)
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.
If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
- Parameters:
contextAttributes- A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-