public TaskPropertiesOverride withContainers(TaskContainerOverrides... containers) {
        if (this.containers == null) {
            setContainers(new java.util.ArrayList<TaskContainerOverrides>(containers.length));
        }
        for (TaskContainerOverrides ele : containers) {
            this.containers.add(ele);
        }
        return this;
    }
<p>
The overrides for the container definition of a job.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setContainers(java.util.Collection)} or {@link #withContainers(java.util.Collection)} if you want to
override the existing values.
</p>

@param containers
       The overrides for the container definition of a job.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/TaskPropertiesOverride.java