code: public ListHapgsResult withHapgList(String... hapgList) {
          if (this.hapgList == null) {
              setHapgList(new com.amazonaws.internal.SdkInternalList<String>(hapgList.length));
          }
          for (String ele : hapgList) {
              this.hapgList.add(ele);
          }
          return this;
      }
docs: <p>
  The list of high-availability partition groups.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setHapgList(java.util.Collection)} or {@link #withHapgList(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param hapgList
  The list of high-availability partition groups.
  @return Returns a reference to this object so that method calls can be chained together.