public AwsEventsEndpointDetails withEventBuses(AwsEventsEndpointEventBusesDetails... eventBuses) {
        if (this.eventBuses == null) {
            setEventBuses(new java.util.ArrayList<AwsEventsEndpointEventBusesDetails>(eventBuses.length));
        }
        for (AwsEventsEndpointEventBusesDetails ele : eventBuses) {
            this.eventBuses.add(ele);
        }
        return this;
    }
<p>
The event buses being used by the endpoint.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEventBuses(java.util.Collection)} or {@link #withEventBuses(java.util.Collection)} if you want to
override the existing values.
</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-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEventsEndpointDetails.java