@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListRetainedMessagesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListRetainedMessagesResult() |
Modifier and Type | Method and Description |
---|---|
ListRetainedMessagesResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token for the next set of results, or null if there are no additional results.
|
List<RetainedMessageSummary> |
getRetainedTopics()
A summary list the account's retained messages.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token for the next set of results, or null if there are no additional results.
|
void |
setRetainedTopics(Collection<RetainedMessageSummary> retainedTopics)
A summary list the account's retained messages.
|
String |
toString()
Returns a string representation of this object.
|
ListRetainedMessagesResult |
withNextToken(String nextToken)
The token for the next set of results, or null if there are no additional results.
|
ListRetainedMessagesResult |
withRetainedTopics(Collection<RetainedMessageSummary> retainedTopics)
A summary list the account's retained messages.
|
ListRetainedMessagesResult |
withRetainedTopics(RetainedMessageSummary... retainedTopics)
A summary list the account's retained messages.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<RetainedMessageSummary> getRetainedTopics()
A summary list the account's retained messages. The information returned doesn't include the message payloads of the retained messages.
public void setRetainedTopics(Collection<RetainedMessageSummary> retainedTopics)
A summary list the account's retained messages. The information returned doesn't include the message payloads of the retained messages.
retainedTopics
- A summary list the account's retained messages. The information returned doesn't include the message
payloads of the retained messages.public ListRetainedMessagesResult withRetainedTopics(RetainedMessageSummary... retainedTopics)
A summary list the account's retained messages. The information returned doesn't include the message payloads of the retained messages.
NOTE: This method appends the values to the existing list (if any). Use
setRetainedTopics(java.util.Collection)
or withRetainedTopics(java.util.Collection)
if you want
to override the existing values.
retainedTopics
- A summary list the account's retained messages. The information returned doesn't include the message
payloads of the retained messages.public ListRetainedMessagesResult withRetainedTopics(Collection<RetainedMessageSummary> retainedTopics)
A summary list the account's retained messages. The information returned doesn't include the message payloads of the retained messages.
retainedTopics
- A summary list the account's retained messages. The information returned doesn't include the message
payloads of the retained messages.public void setNextToken(String nextToken)
The token for the next set of results, or null if there are no additional results.
nextToken
- The token for the next set of results, or null if there are no additional results.public String getNextToken()
The token for the next set of results, or null if there are no additional results.
public ListRetainedMessagesResult withNextToken(String nextToken)
The token for the next set of results, or null if there are no additional results.
nextToken
- The token for the next set of results, or null if there are no additional results.public String toString()
toString
in class Object
Object.toString()
public ListRetainedMessagesResult clone()