@Generated(value="software.amazon.awssdk:codegen") public final class ActiveContextTimeToLive extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ActiveContextTimeToLive.Builder,ActiveContextTimeToLive>
The time that a context is active. You can specify the time to live in seconds or in conversation turns.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ActiveContextTimeToLive.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ActiveContextTimeToLive.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ActiveContextTimeToLive.Builder> |
serializableBuilderClass() |
Integer |
timeToLiveInSeconds()
The number of seconds that the context is active.
|
ActiveContextTimeToLive.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
turnsToLive()
The number of turns that the context is active.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer timeToLiveInSeconds()
The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
public final Integer turnsToLive()
The number of turns that the context is active. You can specify up to 20 turns. Each request and response from the bot is a turn.
public ActiveContextTimeToLive.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ActiveContextTimeToLive.Builder,ActiveContextTimeToLive>public static ActiveContextTimeToLive.Builder builder()
public static Class<? extends ActiveContextTimeToLive.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.