public RetainedMessageSummary withPayloadSize(Long payloadSize) {
        setPayloadSize(payloadSize);
        return this;
    }
<p>
The size of the retained message's payload in bytes.
</p>

@param payloadSize
       The size of the retained message's payload in bytes.
@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/RetainedMessageSummary.java