public ListDatasetsResult withDatasets(Dataset... datasets) {
        if (this.datasets == null) {
            setDatasets(new java.util.ArrayList<Dataset>(datasets.length));
        }
        for (Dataset ele : datasets) {
            this.datasets.add(ele);
        }
        return this;
    }
<p>
List of Datasets.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDatasets(java.util.Collection)} or {@link #withDatasets(java.util.Collection)} if you want to override
the existing values.
</p>

@param datasets
       List of Datasets.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-finspacedata/src/main/java/com/amazonaws/services/finspacedata/model/ListDatasetsResult.java