public EksPodPropertiesDetail withInitContainers(EksContainerDetail... initContainers) {
        if (this.initContainers == null) {
            setInitContainers(new java.util.ArrayList<EksContainerDetail>(initContainers.length));
        }
        for (EksContainerDetail ele : initContainers) {
            this.initContainers.add(ele);
        }
        return this;
    }
<p>
The container registered with the Amazon EKS Connector agent and persists the registration information in the
Kubernetes backend data store.
</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 container registered with the Amazon EKS Connector agent and persists the registration information in
       the Kubernetes backend data store.
@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/EksPodPropertiesDetail.java