public ReportDeliveryChannel withFormats(String... formats) {
        if (this.formats == null) {
            setFormats(new java.util.ArrayList<String>(formats.length));
        }
        for (String ele : formats) {
            this.formats.add(ele);
        }
        return this;
    }
<p>
A list of the format of your reports: <code>CSV</code>, <code>JSON</code>, or both. If not specified, the default
format is <code>CSV</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFormats(java.util.Collection)} or {@link #withFormats(java.util.Collection)} if you want to override
the existing values.
</p>

@param formats
       A list of the format of your reports: <code>CSV</code>, <code>JSON</code>, or both. If not specified, the
       default format is <code>CSV</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/ReportDeliveryChannel.java