public SampleChannelDataResult withPayloads(java.nio.ByteBuffer... payloads) {
        if (this.payloads == null) {
            setPayloads(new java.util.ArrayList<java.nio.ByteBuffer>(payloads.length));
        }
        for (java.nio.ByteBuffer ele : payloads) {
            this.payloads.add(ele);
        }
        return this;
    }
<p>
The list of message samples. Each sample message is returned as a base64-encoded string.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPayloads(java.util.Collection)} or {@link #withPayloads(java.util.Collection)} if you want to override
the existing values.
</p>

@param payloads
       The list of message samples. Each sample message is returned as a base64-encoded string.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/SampleChannelDataResult.java