code: public ListWorkGroupsResult withWorkGroups(WorkGroupSummary... workGroups) {
          if (this.workGroups == null) {
              setWorkGroups(new java.util.ArrayList<WorkGroupSummary>(workGroups.length));
          }
          for (WorkGroupSummary ele : workGroups) {
              this.workGroups.add(ele);
          }
          return this;
      }
docs: <p>
  The list of workgroups, including their names, descriptions, creation times, and states.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setWorkGroups(java.util.Collection)} or {@link #withWorkGroups(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param workGroups
  The list of workgroups, including their names, descriptions, creation times, and states.
  @return Returns a reference to this object so that method calls can be chained together.