code: public ContainerDefinition withVolumesFrom(VolumeFrom... volumesFrom) {
          if (this.volumesFrom == null) {
              setVolumesFrom(new com.amazonaws.internal.SdkInternalList<VolumeFrom>(volumesFrom.length));
          }
          for (VolumeFrom ele : volumesFrom) {
              this.volumesFrom.add(ele);
          }
          return this;
      }
docs: <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/">docker run</a>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setVolumesFrom(java.util.Collection)} or {@link #withVolumesFrom(java.util.Collection)} if you want to
  override the existing values.
  </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/">docker
  run</a>.
  @return Returns a reference to this object so that method calls can be chained together.