public CreateTaskRequest withName(String name) {
        setName(name);
        return this;
    }
<p>
Specifies the name of your task.
</p>

@param name
       Specifies the name of your task.
@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/CreateTaskRequest.java