public FlowDefinition withTasks(java.util.Collection<Task> tasks) {
        setTasks(tasks);
        return this;
    }
<p>
A list of tasks that Customer Profiles performs while transferring the data in the flow run.
</p>

@param tasks
       A list of tasks that Customer Profiles performs while transferring the data in the flow run.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-customerprofiles/src/main/java/com/amazonaws/services/customerprofiles/model/FlowDefinition.java