@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ActiveContextTimeToLive extends Object implements Serializable, Cloneable, StructuredPojo
The time that a context is active. You can specify the time to live in seconds or in conversation turns.
| Constructor and Description |
|---|
ActiveContextTimeToLive() |
| Modifier and Type | Method and Description |
|---|---|
ActiveContextTimeToLive |
clone() |
boolean |
equals(Object obj) |
Integer |
getTimeToLiveInSeconds()
The number of seconds that the context is active.
|
Integer |
getTurnsToLive()
The number of turns that the context is active.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context is active.
|
void |
setTurnsToLive(Integer turnsToLive)
The number of turns that the context is active.
|
String |
toString()
Returns a string representation of this object.
|
ActiveContextTimeToLive |
withTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context is active.
|
ActiveContextTimeToLive |
withTurnsToLive(Integer turnsToLive)
The number of turns that the context is active.
|
public void setTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
timeToLiveInSeconds - The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).public Integer getTimeToLiveInSeconds()
The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
public ActiveContextTimeToLive withTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
timeToLiveInSeconds - The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).public void setTurnsToLive(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.
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 Integer getTurnsToLive()
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 withTurnsToLive(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.
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 String toString()
toString in class ObjectObject.toString()public ActiveContextTimeToLive clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.