public AwsOpenSearchServiceDomainDomainEndpointOptionsDetails withCustomEndpointEnabled(Boolean customEndpointEnabled) {
        setCustomEndpointEnabled(customEndpointEnabled);
        return this;
    }
<p>
Whether to enable a custom endpoint for the domain.
</p>

@param customEndpointEnabled
       Whether to enable a custom endpoint for the domain.
@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/AwsOpenSearchServiceDomainDomainEndpointOptionsDetails.java