public class ReceiveMessageResult
extends java.lang.Object
implements java.io.Serializable
A list of received messages.
Constructor and Description |
---|
ReceiveMessageResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Message> |
getMessages()
A list of messages.
|
int |
hashCode() |
void |
setMessages(java.util.Collection<Message> messages)
A list of messages.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReceiveMessageResult |
withMessages(java.util.Collection<Message> messages)
A list of messages.
|
ReceiveMessageResult |
withMessages(Message... messages)
A list of messages.
|
public java.util.List<Message> getMessages()
A list of messages.
A list of messages.
public void setMessages(java.util.Collection<Message> messages)
A list of messages.
messages
- A list of messages.
public ReceiveMessageResult withMessages(Message... messages)
A list of messages.
Returns a reference to this object so that method calls can be chained together.
messages
- A list of messages.
public ReceiveMessageResult withMessages(java.util.Collection<Message> messages)
A list of messages.
Returns a reference to this object so that method calls can be chained together.
messages
- A list of messages.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.