public UpdateTaskRequest withTaskArn(String taskArn) {
        setTaskArn(taskArn);
        return this;
    }
<p>
Specifies the ARN of the task that you want to update.
</p>

@param taskArn
       Specifies the ARN of the task that you want to update.
@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