public Endpoint withEventBuses(java.util.Collection<EndpointEventBus> eventBuses) {
        setEventBuses(eventBuses);
        return this;
    }
<p>
The event buses being used by the endpoint.
</p>

@param eventBuses
       The event buses being used by the endpoint.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/Endpoint.java