@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OutputContext extends Object implements Serializable, Cloneable, StructuredPojo
Describes a session context that is activated 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 output context.
|
Integer |
getTimeToLiveInSeconds()
The amount of time, in seconds, that the output context should remain active.
|
Integer |
getTurnsToLive()
The number of conversation turns that the output context should remain active.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the output context.
|
void |
setTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The amount of time, in seconds, that the output context should remain active.
|
void |
setTurnsToLive(Integer turnsToLive)
The number of conversation turns that the output context should remain active.
|
String |
toString()
Returns a string representation of this object.
|
OutputContext |
withName(String name)
The name of the output context.
|
OutputContext |
withTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The amount of time, in seconds, that the output context should remain active.
|
OutputContext |
withTurnsToLive(Integer turnsToLive)
The number of conversation turns that the output context should remain active.
|
public void setName(String name)
The name of the output context.
name
- The name of the output context.public String getName()
The name of the output context.
public OutputContext withName(String name)
The name of the output context.
name
- The name of the output context.public void setTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
timeToLiveInSeconds
- The amount of time, in seconds, that the output context should remain active. The time is figured from the
first time the context is sent to the user.public Integer getTimeToLiveInSeconds()
The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
public OutputContext withTimeToLiveInSeconds(Integer timeToLiveInSeconds)
The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
timeToLiveInSeconds
- The amount of time, in seconds, that the output context should remain active. The time is figured from the
first time the context is sent to the user.public void setTurnsToLive(Integer turnsToLive)
The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
turnsToLive
- The number of conversation turns that the output context should remain active. The number of turns is
counted from the first time that the context is sent to the user.public Integer getTurnsToLive()
The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
public OutputContext withTurnsToLive(Integer turnsToLive)
The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
turnsToLive
- The number of conversation turns that the output context should remain active. The number of turns is
counted from the first time that the context is sent to the user.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.