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