code: public ImportInstanceTaskDetails withVolumes(ImportInstanceVolumeDetailItem... volumes) {
          if (this.volumes == null) {
              setVolumes(new com.amazonaws.internal.SdkInternalList<ImportInstanceVolumeDetailItem>(volumes.length));
          }
          for (ImportInstanceVolumeDetailItem ele : volumes) {
              this.volumes.add(ele);
          }
          return this;
      }
docs: <p>
  The volumes.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setVolumes(java.util.Collection)} or {@link #withVolumes(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param volumes
  The volumes.
  @return Returns a reference to this object so that method calls can be chained together.