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.Buildername(String name)The name of the context.ActiveContext.Builderparameters(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.ActiveContext.BuildertimeToLive(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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)
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
default ActiveContext.Builder timeToLive(Consumer<ActiveContextTimeToLive.Builder> 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:
timeToLive(ActiveContextTimeToLive)
-
parameters
ActiveContext.Builder parameters(Map<String,String> 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.
-
-