@Override
    public ListDomainNamesResult listDomainNames(ListDomainNamesRequest request) {
        request = beforeClientExecution(request);
        return executeListDomainNames(request);
    }
<p>
Returns the names of all Amazon OpenSearch Service domains owned by the current user in the active Region.
</p>

@param listDomainNamesRequest
       Container for the parameters to the <code>ListDomainNames</code> operation.
@return Result of the ListDomainNames operation returned by the service.
@throws BaseException
        An error occurred while processing the request.
@throws ValidationException
        An exception for accessing or deleting a resource that doesn't exist.
@sample AmazonOpenSearch.ListDomainNames
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/AmazonOpenSearchClient.java