@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PromptSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a list of message groups that Amazon Lex sends to a user to elicit a response.
Constructor and Description |
---|
PromptSpecification() |
Modifier and Type | Method and Description |
---|---|
PromptSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowInterrupt()
Indicates whether the user can interrupt a speech prompt from the bot.
|
Integer |
getMaxRetries()
The maximum number of times the bot tries to elicit a response from the user using this prompt.
|
List<MessageGroup> |
getMessageGroups()
A collection of messages that Amazon Lex can send to the user.
|
int |
hashCode() |
Boolean |
isAllowInterrupt()
Indicates whether the user can interrupt a speech prompt from the bot.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech prompt from the bot.
|
void |
setMaxRetries(Integer maxRetries)
The maximum number of times the bot tries to elicit a response from the user using this prompt.
|
void |
setMessageGroups(Collection<MessageGroup> messageGroups)
A collection of messages that Amazon Lex can send to the user.
|
String |
toString()
Returns a string representation of this object.
|
PromptSpecification |
withAllowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech prompt from the bot.
|
PromptSpecification |
withMaxRetries(Integer maxRetries)
The maximum number of times the bot tries to elicit a response from the user using this prompt.
|
PromptSpecification |
withMessageGroups(Collection<MessageGroup> messageGroups)
A collection of messages that Amazon Lex can send to the user.
|
PromptSpecification |
withMessageGroups(MessageGroup... messageGroups)
A collection of messages that Amazon Lex can send to the user.
|
public List<MessageGroup> getMessageGroups()
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
public void setMessageGroups(Collection<MessageGroup> messageGroups)
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
messageGroups
- A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to
send at runtime.public PromptSpecification withMessageGroups(MessageGroup... messageGroups)
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
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
- A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to
send at runtime.public PromptSpecification withMessageGroups(Collection<MessageGroup> messageGroups)
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
messageGroups
- A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to
send at runtime.public void setMaxRetries(Integer maxRetries)
The maximum number of times the bot tries to elicit a response from the user using this prompt.
maxRetries
- The maximum number of times the bot tries to elicit a response from the user using this prompt.public Integer getMaxRetries()
The maximum number of times the bot tries to elicit a response from the user using this prompt.
public PromptSpecification withMaxRetries(Integer maxRetries)
The maximum number of times the bot tries to elicit a response from the user using this prompt.
maxRetries
- The maximum number of times the bot tries to elicit a response from the user using this prompt.public void setAllowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech prompt from the bot.
allowInterrupt
- Indicates whether the user can interrupt a speech prompt from the bot.public Boolean getAllowInterrupt()
Indicates whether the user can interrupt a speech prompt from the bot.
public PromptSpecification withAllowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech prompt from the bot.
allowInterrupt
- Indicates whether the user can interrupt a speech prompt from the bot.public Boolean isAllowInterrupt()
Indicates whether the user can interrupt a speech prompt from the bot.
public String toString()
toString
in class Object
Object.toString()
public PromptSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.