public static interface ActiveContext.Builder extends SdkPojo, CopyableBuilder<ActiveContext.Builder,ActiveContext>
| Modifier and Type | Method and Description |
|---|---|
ActiveContext.Builder |
contextAttributes(Map<String,String> contextAttributes)
A list of contexts active for the request.
|
ActiveContext.Builder |
name(String name)
The name of the context.
|
ActiveContext.Builder |
timeToLive(ActiveContextTimeToLive timeToLive)
Indicates the number of turns or seconds that the context is active.
|
default ActiveContext.Builder |
timeToLive(Consumer<ActiveContextTimeToLive.Builder> timeToLive)
Indicates the number of turns or seconds that the context is active.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildActiveContext.Builder name(String name)
The name of the context.
name - The name of the context.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.
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.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.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 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.
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.
Copyright © 2022. All rights reserved.