@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StillWaitingResponseSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Defines the messages that Amazon Lex sends to a user to remind them that the bot is waiting for a response.
Constructor and Description |
---|
StillWaitingResponseSpecification() |
Modifier and Type | Method and Description |
---|---|
StillWaitingResponseSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowInterrupt()
Indicates that the user can interrupt the response by speaking while the message is being played.
|
Integer |
getFrequencyInSeconds()
How often a message should be sent to the user.
|
List<MessageGroup> |
getMessageGroups()
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends
to the user.
|
Integer |
getTimeoutInSeconds()
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
|
int |
hashCode() |
Boolean |
isAllowInterrupt()
Indicates that the user can interrupt the response by speaking while the message is being played.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowInterrupt(Boolean allowInterrupt)
Indicates that the user can interrupt the response by speaking while the message is being played.
|
void |
setFrequencyInSeconds(Integer frequencyInSeconds)
How often a message should be sent to the user.
|
void |
setMessageGroups(Collection<MessageGroup> messageGroups)
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends
to the user.
|
void |
setTimeoutInSeconds(Integer timeoutInSeconds)
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
|
String |
toString()
Returns a string representation of this object.
|
StillWaitingResponseSpecification |
withAllowInterrupt(Boolean allowInterrupt)
Indicates that the user can interrupt the response by speaking while the message is being played.
|
StillWaitingResponseSpecification |
withFrequencyInSeconds(Integer frequencyInSeconds)
How often a message should be sent to the user.
|
StillWaitingResponseSpecification |
withMessageGroups(Collection<MessageGroup> messageGroups)
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends
to the user.
|
StillWaitingResponseSpecification |
withMessageGroups(MessageGroup... messageGroups)
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends
to the user.
|
StillWaitingResponseSpecification |
withTimeoutInSeconds(Integer timeoutInSeconds)
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
|
public List<MessageGroup> getMessageGroups()
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
public void setMessageGroups(Collection<MessageGroup> messageGroups)
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
messageGroups
- One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex
sends to the user.public StillWaitingResponseSpecification withMessageGroups(MessageGroup... messageGroups)
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
NOTE: This method appends the values to the existing list (if any). Use
setMessageGroups(java.util.Collection)
or withMessageGroups(java.util.Collection)
if you want
to override the existing values.
messageGroups
- One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex
sends to the user.public StillWaitingResponseSpecification withMessageGroups(Collection<MessageGroup> messageGroups)
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
messageGroups
- One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex
sends to the user.public void setFrequencyInSeconds(Integer frequencyInSeconds)
How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.
frequencyInSeconds
- How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.public Integer getFrequencyInSeconds()
How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.
public StillWaitingResponseSpecification withFrequencyInSeconds(Integer frequencyInSeconds)
How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.
frequencyInSeconds
- How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.public void setTimeoutInSeconds(Integer timeoutInSeconds)
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
timeoutInSeconds
- If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.public Integer getTimeoutInSeconds()
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
public StillWaitingResponseSpecification withTimeoutInSeconds(Integer timeoutInSeconds)
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
timeoutInSeconds
- If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.public void setAllowInterrupt(Boolean allowInterrupt)
Indicates that the user can interrupt the response by speaking while the message is being played.
allowInterrupt
- Indicates that the user can interrupt the response by speaking while the message is being played.public Boolean getAllowInterrupt()
Indicates that the user can interrupt the response by speaking while the message is being played.
public StillWaitingResponseSpecification withAllowInterrupt(Boolean allowInterrupt)
Indicates that the user can interrupt the response by speaking while the message is being played.
allowInterrupt
- Indicates that the user can interrupt the response by speaking while the message is being played.public Boolean isAllowInterrupt()
Indicates that the user can interrupt the response by speaking while the message is being played.
public String toString()
toString
in class Object
Object.toString()
public StillWaitingResponseSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.