code: public GetPatchBaselineResult withPatchGroups(String... patchGroups) {
          if (this.patchGroups == null) {
              setPatchGroups(new com.amazonaws.internal.SdkInternalList<String>(patchGroups.length));
          }
          for (String ele : patchGroups) {
              this.patchGroups.add(ele);
          }
          return this;
      }
docs: <p>
  Patch groups included in the patch baseline.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPatchGroups(java.util.Collection)} or {@link #withPatchGroups(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param patchGroups
  Patch groups included in the patch baseline.
  @return Returns a reference to this object so that method calls can be chained together.