Class ActiveContextTimeToLive
- java.lang.Object
-
- software.amazon.awssdk.services.lexruntime.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 length of time or number of turns that a context remains active.
- 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 should be active after it is first sent in aPostContentorPostTextresponse.ActiveContextTimeToLive.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerturnsToLive()The number of conversation turns that the context should be 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 should be active after it is first sent in a
PostContentorPostTextresponse. You can set the value between 5 and 86,400 seconds (24 hours).- Returns:
- The number of seconds that the context should be active after it is first sent in a
PostContentorPostTextresponse. You can set the value between 5 and 86,400 seconds (24 hours).
-
turnsToLive
public final Integer turnsToLive()
The number of conversation turns that the context should be active. A conversation turn is one
PostContentorPostTextrequest and the corresponding response from Amazon Lex.- Returns:
- The number of conversation turns that the context should be active. A conversation turn is one
PostContentorPostTextrequest and the corresponding response from Amazon Lex.
-
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.
-
-