public Endpoint withEndpointId(String endpointId) {
        setEndpointId(endpointId);
        return this;
    }
<p>
The URL subdomain of the endpoint. For example, if the URL for Endpoint is
https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is <code>abcde.veo</code>.
</p>

@param endpointId
       The URL subdomain of the endpoint. For example, if the URL for Endpoint is
       https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is <code>abcde.veo</code>.
@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