public Resource withEndpointId(String endpointId) {
        setEndpointId(endpointId);
        return this;
    }
<p>
The endpoint ID for the endpoint that is specified as a Amazon Web Services resource.
</p>
<p>
An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network
Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
</p>

@param endpointId
       The endpoint ID for the endpoint that is specified as a Amazon Web Services resource. </p>
       <p>
       An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a
       Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
@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/Resource.java