public ContainerDefinition withMountPoints(MountPoint... mountPoints) {
        if (this.mountPoints == null) {
            setMountPoints(new com.amazonaws.internal.SdkInternalList<MountPoint>(mountPoints.length));
        }
        for (MountPoint ele : mountPoints) {
            this.mountPoints.add(ele);
        }
        return this;
    }
<p>
The mount points for data volumes in your container.
</p>
<p>
This parameter maps to <code>Volumes</code> in the <a
href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section of the
<a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the <code>--volume</code> option to
<a href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
</p>
<p>
Windows containers can mount whole directories on the same drive as <code>$env:ProgramData</code>. Windows
containers can't mount directories on a different drive, and mount point can't be across drives.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMountPoints(java.util.Collection)} or {@link #withMountPoints(java.util.Collection)} if you want to
override the existing values.
</p>

@param mountPoints
       The mount points for data volumes in your container.</p>
       <p>
       This parameter maps to <code>Volumes</code> in the <a
       href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section
       of the <a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the
       <code>--volume</code> option to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
       </p>
       <p>
       Windows containers can mount whole directories on the same drive as <code>$env:ProgramData</code>. Windows
       containers can't mount directories on a different drive, and mount point can't be across drives.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java