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