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