public ListRetainedMessagesResult withRetainedTopics(java.util.Collection<RetainedMessageSummary> retainedTopics) {
        setRetainedTopics(retainedTopics);
        return this;
    }
<p>
A summary list the account's retained messages. The information returned doesn't include the message payloads of
the retained messages.
</p>

@param retainedTopics
       A summary list the account's retained messages. The information returned doesn't include the message
       payloads of the retained messages.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iotdata/model/ListRetainedMessagesResult.java