def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil)
      response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil)
      response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Validates the custom domain mapping to ensure it maps to the correct CDN
 endpoint in DNS.

 @param resource_group_name [String] Name of the Resource group within the
 Azure subscription.
 @param profile_name [String] Name of the CDN profile which is unique within
 the resource group.
 @param endpoint_name [String] Name of the endpoint under the profile which is
 unique globally.
 @param custom_domain_properties [ValidateCustomDomainInput] Custom domain to
 be validated.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ValidateCustomDomainOutput] operation results.