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
Modifier and TypeMethodDescriptionThe name of the context.parameters(Map<String, String> parameters) State variables for the current context.default ActiveContext.BuildertimeToLive(Consumer<ActiveContextTimeToLive.Builder> timeToLive) The length of time or number of turns that a context remains active.timeToLive(ActiveContextTimeToLive timeToLive) The length of time or number of turns that a context remains active.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
The length of time or number of turns that a context remains active.
- Parameters:
timeToLive- The length of time or number of turns that a context remains active.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeToLive
The length of time or number of turns that a context remains active.
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:
-
parameters
State variables for the current context. You can use these values as default values for slots in subsequent events.
- Parameters:
parameters- State variables for the current context. You can use these values as default values for slots in subsequent events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-