public Task withContainers(Container... containers) {
        if (this.containers == null) {
            setContainers(new com.amazonaws.internal.SdkInternalList<Container>(containers.length));
        }
        for (Container ele : containers) {
            this.containers.add(ele);
        }
        return this;
    }
public Task withContainers ( Container ... containers ) { if ( this . containers == null ) { setContainers ( new com . amazonaws . internal . SdkInternalList < Container > ( containers . length ) ) ; } for ( Container ele : containers ) { this . containers . add ( ele ) ; } return this ; }
<p>
The containers associated with the task.
</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 containers associated with the task.
@return Returns a reference to this object so that method calls can be chained together.