@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReceiveMessageResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
A list of received messages.
Constructor and Description |
---|
ReceiveMessageResult() |
Modifier and Type | Method and Description |
---|---|
ReceiveMessageResult |
clone() |
boolean |
equals(Object obj) |
List<Message> |
getMessages()
A list of messages.
|
int |
hashCode() |
void |
setMessages(Collection<Message> messages)
A list of messages.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ReceiveMessageResult |
withMessages(Collection<Message> messages)
A list of messages.
|
ReceiveMessageResult |
withMessages(Message... messages)
A list of messages.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setMessages(Collection<Message> messages)
A list of messages.
messages
- A list of messages.public ReceiveMessageResult withMessages(Message... messages)
A list of messages.
NOTE: This method appends the values to the existing list (if any). Use
setMessages(java.util.Collection)
or withMessages(java.util.Collection)
if you want to override
the existing values.
messages
- A list of messages.public ReceiveMessageResult withMessages(Collection<Message> messages)
A list of messages.
messages
- A list of messages.public String toString()
toString
in class Object
Object.toString()
public ReceiveMessageResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.