public ListEndpointGroupsResult withEndpointGroups(java.util.Collection<EndpointGroup> endpointGroups) {
        setEndpointGroups(endpointGroups);
        return this;
    }
<p>
The list of the endpoint groups associated with a listener.
</p>

@param endpointGroups
       The list of the endpoint groups associated with a listener.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/ListEndpointGroupsResult.java