public UpdateTaskRequest withIncludes(FilterRule... includes) {
        if (this.includes == null) {
            setIncludes(new java.util.ArrayList<FilterRule>(includes.length));
        }
        for (FilterRule ele : includes) {
            this.includes.add(ele);
        }
        return this;
    }
<p>
Specifies include filters define the files, objects, and folders in your source location that you want DataSync
to transfer. For more information and examples, see <a
href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by
using filters</a>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIncludes(java.util.Collection)} or {@link #withIncludes(java.util.Collection)} if you want to override
the existing values.
</p>

@param includes
       Specifies include filters define the files, objects, and folders in your source location that you want
       DataSync to transfer. For more information and examples, see <a
       href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync
       transfers by using filters</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/UpdateTaskRequest.java