public CreateVpcEndpointRequest withDomainArn(String domainArn) {
        setDomainArn(domainArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the domain to grant access to.
</p>

@param domainArn
       The Amazon Resource Name (ARN) of the domain to grant access to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/CreateVpcEndpointRequest.java