public TaskContainerProperties withDependsOn(TaskContainerDependency... dependsOn) {
        if (this.dependsOn == null) {
            setDependsOn(new java.util.ArrayList<TaskContainerDependency>(dependsOn.length));
        }
        for (TaskContainerDependency ele : dependsOn) {
            this.dependsOn.add(ele);
        }
        return this;
    }
<p>
A list of containers that this container depends on.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDependsOn(java.util.Collection)} or {@link #withDependsOn(java.util.Collection)} if you want to
override the existing values.
</p>

@param dependsOn
       A list of containers that this container depends on.
@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/TaskContainerProperties.java