public TaskFilter withName(String name) {
        setName(name);
        return this;
    }
<p>
The name of the filter being used. Each API call supports a list of filters that are available for it. For
example, <code>LocationId</code> for <code>ListTasks</code>.
</p>

@param name
       The name of the filter being used. Each API call supports a list of filters that are available for it. For
       example, <code>LocationId</code> for <code>ListTasks</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see TaskFilterName
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/TaskFilter.java