code: public void setEndpointGroups(java.util.Collection<EndpointGroup> endpointGroups) {
          if (endpointGroups == null) {
              this.endpointGroups = null;
              return;
          }
  
          this.endpointGroups = new java.util.ArrayList<EndpointGroup>(endpointGroups);
      }
docs: <p>
  The list of the endpoint groups associated with a listener.
  </p>
  
  @param endpointGroups
  The list of the endpoint groups associated with a listener.