code: public EntityNameAvailabilityCheckOutputInner checkNameAvailability(String locationName, CheckNameAvailabilityInput parameters) {
          return checkNameAvailabilityWithServiceResponseAsync(locationName, parameters).toBlocking().single().body();
      }
docs: Check Name Availability.
  Checks whether the Media Service resource name is available.
  
  @param locationName the String value
  @param parameters The request parameters
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ApiErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the EntityNameAvailabilityCheckOutputInner object if successful.