code: public ListVolumesResult withVolumeInfos(VolumeInfo... volumeInfos) {
          if (this.volumeInfos == null) {
              setVolumeInfos(new com.amazonaws.internal.SdkInternalList<VolumeInfo>(volumeInfos.length));
          }
          for (VolumeInfo ele : volumeInfos) {
              this.volumeInfos.add(ele);
          }
          return this;
      }
docs: <p>
  An array of <a>VolumeInfo</a> objects, where each object describes an iSCSI volume. If no volumes are defined for
  the gateway, then <code>VolumeInfos</code> is an empty array "[]".
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setVolumeInfos(java.util.Collection)} or {@link #withVolumeInfos(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param volumeInfos
  An array of <a>VolumeInfo</a> objects, where each object describes an iSCSI volume. If no volumes are
  defined for the gateway, then <code>VolumeInfos</code> is an empty array "[]".
  @return Returns a reference to this object so that method calls can be chained together.