code: public GetDiskSnapshotsResult withDiskSnapshots(DiskSnapshot... diskSnapshots) {
          if (this.diskSnapshots == null) {
              setDiskSnapshots(new java.util.ArrayList<DiskSnapshot>(diskSnapshots.length));
          }
          for (DiskSnapshot ele : diskSnapshots) {
              this.diskSnapshots.add(ele);
          }
          return this;
      }
docs: <p>
  An array of objects containing information about all block storage disk snapshots.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDiskSnapshots(java.util.Collection)} or {@link #withDiskSnapshots(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param diskSnapshots
  An array of objects containing information about all block storage disk snapshots.
  @return Returns a reference to this object so that method calls can be chained together.