@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OutputContext extends Object implements Serializable, Cloneable, StructuredPojo
The specification of an output context that is set when an intent is fulfilled.
Constructor and Description |
---|
OutputContext() |
Modifier and Type | Method and Description |
---|---|
OutputContext |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the context.
|
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 |
setName(String name)
The name of the context.
|
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.
|
OutputContext |
withName(String name)
The name of the context.
|
OutputContext |
withTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The number of seconds that the context should be active after it is first sent in a
PostContent or
PostText response. |
OutputContext |
withTurnsToLive(Integer turnsToLive)
The number of conversation turns that the context should be active.
|
public void setName(String name)
The name of the context.
name
- The name of the context.public String getName()
The name of the context.
public OutputContext withName(String name)
The name of the context.
name
- The name of the context.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 OutputContext 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 OutputContext 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 OutputContext clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.