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

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