public CreateDataSetRequest withFolderArns(String... folderArns) {
        if (this.folderArns == null) {
            setFolderArns(new java.util.ArrayList<String>(folderArns.length));
        }
        for (String ele : folderArns) {
            this.folderArns.add(ele);
        }
        return this;
    }
<p>
When you create the dataset, Amazon QuickSight adds the dataset to these folders.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFolderArns(java.util.Collection)} or {@link #withFolderArns(java.util.Collection)} if you want to
override the existing values.
</p>

@param folderArns
       When you create the dataset, Amazon QuickSight adds the dataset to these folders.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/CreateDataSetRequest.java