public EksAttemptDetail withInitContainers(EksAttemptContainerDetail... initContainers) {
        if (this.initContainers == null) {
            setInitContainers(new java.util.ArrayList<EksAttemptContainerDetail>(initContainers.length));
        }
        for (EksAttemptContainerDetail ele : initContainers) {
            this.initContainers.add(ele);
        }
        return this;
    }
<p>
The details for the init containers.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInitContainers(java.util.Collection)} or {@link #withInitContainers(java.util.Collection)} if you want
to override the existing values.
</p>

@param initContainers
       The details for the init containers.
@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/EksAttemptDetail.java