@Override
    public ListDomainNamesResult listDomainNames(ListDomainNamesRequest request) {
        request = beforeClientExecution(request);
        return executeListDomainNames(request);
    }
<p>
Lists all search domains owned by an account.
</p>

@param listDomainNamesRequest
@return Result of the ListDomainNames operation returned by the service.
@throws BaseException
        An error occurred while processing the request.
@sample AmazonCloudSearch.ListDomainNames
aws-java-sdk-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchv2/AmazonCloudSearchClient.java