public DataRepositoryTaskFilter withName(DataRepositoryTaskFilterName name) {
        this.name = name.toString();
        return this;
    }
<p>
Name of the task property to use in filtering the tasks returned in the response.
</p>
<ul>
<li>
<p>
Use <code>file-system-id</code> to retrieve data repository tasks for specific file systems.
</p>
</li>
<li>
<p>
Use <code>task-lifecycle</code> to retrieve data repository tasks with one or more specific lifecycle states, as
follows: CANCELED, EXECUTING, FAILED, PENDING, and SUCCEEDED.
</p>
</li>
</ul>

@param name
       Name of the task property to use in filtering the tasks returned in the response.</p>
       <ul>
       <li>
       <p>
       Use <code>file-system-id</code> to retrieve data repository tasks for specific file systems.
       </p>
       </li>
       <li>
       <p>
       Use <code>task-lifecycle</code> to retrieve data repository tasks with one or more specific lifecycle
       states, as follows: CANCELED, EXECUTING, FAILED, PENDING, and SUCCEEDED.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see DataRepositoryTaskFilterName
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/DataRepositoryTaskFilter.java