public static interface ActiveContext.Builder extends SdkPojo, CopyableBuilder<ActiveContext.Builder,ActiveContext>
| Modifier and Type | Method and Description |
|---|---|
ActiveContext.Builder |
name(String name)
The name of the context.
|
ActiveContext.Builder |
parameters(Map<String,String> parameters)
State variables for the current context.
|
ActiveContext.Builder |
timeToLive(ActiveContextTimeToLive timeToLive)
The length of time or number of turns that a context remains active.
|
default ActiveContext.Builder |
timeToLive(Consumer<ActiveContextTimeToLive.Builder> timeToLive)
The length of time or number of turns that a context remains active.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildActiveContext.Builder name(String name)
The name of the context.
name - The name of the context.ActiveContext.Builder timeToLive(ActiveContextTimeToLive timeToLive)
The length of time or number of turns that a context remains active.
timeToLive - The length of time or number of turns that a context remains active.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.Builder avoiding
the need to create one manually via ActiveContextTimeToLive.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to timeToLive(ActiveContextTimeToLive).
timeToLive - a consumer that will call methods on ActiveContextTimeToLive.BuildertimeToLive(ActiveContextTimeToLive)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 - State variables for the current context. You can use these values as default values for slots in
subsequent events.Copyright © 2023. All rights reserved.