Class ActiveContextTimeToLive
- java.lang.Object
-
- software.amazon.awssdk.services.lexruntimev2.model.ActiveContextTimeToLive
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ActiveContextTimeToLive.Builder,ActiveContextTimeToLive>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceActiveContextTimeToLive.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActiveContextTimeToLive.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ActiveContextTimeToLive.Builder>serializableBuilderClass()IntegertimeToLiveInSeconds()The number of seconds that the context is active.ActiveContextTimeToLive.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerturnsToLive()The number of turns that the context is active.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
timeToLiveInSeconds
public final Integer timeToLiveInSeconds()
The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
- Returns:
- The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
-
turnsToLive
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.
- Returns:
- 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.
-
toBuilder
public ActiveContextTimeToLive.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ActiveContextTimeToLive.Builder,ActiveContextTimeToLive>
-
builder
public static ActiveContextTimeToLive.Builder builder()
-
serializableBuilderClass
public static Class<? extends ActiveContextTimeToLive.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-