@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ActiveContextTimeToLive extends Object implements Serializable, Cloneable, StructuredPojo
The length of time or number of turns that a context remains active.
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 should be active after it is first sent in a
PostContent or
PostText response. |
Integer |
getTurnsToLive()
The number of conversation turns that the context should be 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 should be active after it is first sent in a
PostContent or
PostText response. |
void |
setTurnsToLive(Integer turnsToLive)
The number of conversation turns that the context should be active.
|
String |
toString()
Returns a string representation of this object.
|
ActiveContextTimeToLive |
withTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context should be active after it is first sent in a
PostContent or
PostText response. |
ActiveContextTimeToLive |
withTurnsToLive(Integer turnsToLive)
The number of conversation turns that the context should be active.
|
public void setTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context should be active after it is first sent in a PostContent
or
PostText
response. You can set the value between 5 and 86,400 seconds (24 hours).
timeToLiveInSeconds
- The number of seconds that the context should be active after it is first sent in a
PostContent
or PostText
response. You can set the value between 5 and 86,400
seconds (24 hours).public Integer getTimeToLiveInSeconds()
The number of seconds that the context should be active after it is first sent in a PostContent
or
PostText
response. You can set the value between 5 and 86,400 seconds (24 hours).
PostContent
or PostText
response. You can set the value between 5 and 86,400
seconds (24 hours).public ActiveContextTimeToLive withTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context should be active after it is first sent in a PostContent
or
PostText
response. You can set the value between 5 and 86,400 seconds (24 hours).
timeToLiveInSeconds
- The number of seconds that the context should be active after it is first sent in a
PostContent
or PostText
response. You can set the value between 5 and 86,400
seconds (24 hours).public void setTurnsToLive(Integer turnsToLive)
The number of conversation turns that the context should be active. A conversation turn is one
PostContent
or PostText
request and the corresponding response from Amazon Lex.
turnsToLive
- The number of conversation turns that the context should be active. A conversation turn is one
PostContent
or PostText
request and the corresponding response from Amazon Lex.public Integer getTurnsToLive()
The number of conversation turns that the context should be active. A conversation turn is one
PostContent
or PostText
request and the corresponding response from Amazon Lex.
PostContent
or PostText
request and the corresponding response from Amazon Lex.public ActiveContextTimeToLive withTurnsToLive(Integer turnsToLive)
The number of conversation turns that the context should be active. A conversation turn is one
PostContent
or PostText
request and the corresponding response from Amazon Lex.
turnsToLive
- The number of conversation turns that the context should be active. A conversation turn is one
PostContent
or PostText
request and the corresponding response from Amazon Lex.public String toString()
toString
in class Object
Object.toString()
public ActiveContextTimeToLive clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.