@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageGroup extends Object implements Serializable, Cloneable, StructuredPojo
Provides one or more messages that Amazon Lex should send to the user.
Constructor and Description |
---|
MessageGroup() |
Modifier and Type | Method and Description |
---|---|
MessageGroup |
clone() |
boolean |
equals(Object obj) |
Message |
getMessage()
The primary message that Amazon Lex should send to the user.
|
List<Message> |
getVariations()
Message variations to send to the user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMessage(Message message)
The primary message that Amazon Lex should send to the user.
|
void |
setVariations(Collection<Message> variations)
Message variations to send to the user.
|
String |
toString()
Returns a string representation of this object.
|
MessageGroup |
withMessage(Message message)
The primary message that Amazon Lex should send to the user.
|
MessageGroup |
withVariations(Collection<Message> variations)
Message variations to send to the user.
|
MessageGroup |
withVariations(Message... variations)
Message variations to send to the user.
|
public void setMessage(Message message)
The primary message that Amazon Lex should send to the user.
message
- The primary message that Amazon Lex should send to the user.public Message getMessage()
The primary message that Amazon Lex should send to the user.
public MessageGroup withMessage(Message message)
The primary message that Amazon Lex should send to the user.
message
- The primary message that Amazon Lex should send to the user.public List<Message> getVariations()
Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
public void setVariations(Collection<Message> variations)
Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
variations
- Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary
message or one of the variations to send to the user.public MessageGroup withVariations(Message... variations)
Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
NOTE: This method appends the values to the existing list (if any). Use
setVariations(java.util.Collection)
or withVariations(java.util.Collection)
if you want to
override the existing values.
variations
- Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary
message or one of the variations to send to the user.public MessageGroup withVariations(Collection<Message> variations)
Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
variations
- Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary
message or one of the variations to send to the user.public String toString()
toString
in class Object
Object.toString()
public MessageGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.