public DomainEndpointOptions withCustomEndpointEnabled(Boolean customEndpointEnabled) {
        setCustomEndpointEnabled(customEndpointEnabled);
        return this;
    }
<p>
Specify if custom endpoint should be enabled for the Elasticsearch domain.
</p>

@param customEndpointEnabled
       Specify if custom endpoint should be enabled for the Elasticsearch domain.
@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/DomainEndpointOptions.java