public ListTasksResult withTasks(TaskSummary... tasks) {
        if (this.tasks == null) {
            setTasks(new java.util.ArrayList<TaskSummary>(tasks.length));
        }
        for (TaskSummary ele : tasks) {
            this.tasks.add(ele);
        }
        return this;
    }
<p>
A list of task structures containing details about each task.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTasks(java.util.Collection)} or {@link #withTasks(java.util.Collection)} if you want to override the
existing values.
</p>

@param tasks
       A list of task structures containing details about each task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-snowdevicemanagement/src/main/java/com/amazonaws/services/snowdevicemanagement/model/ListTasksResult.java