public ContainerDefinition withVolumesFrom(java.util.Collection<VolumeFrom> volumesFrom) {
        setVolumesFrom(volumesFrom);
        return this;
    }
<p>
Data volumes to mount from another container. This parameter maps to <code>VolumesFrom</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>--volumes-from</code>
option to <a href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
</p>

@param volumesFrom
       Data volumes to mount from another container. This parameter maps to <code>VolumesFrom</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>--volumes-from</code> option to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
@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