code: public ServiceFuture<Void> checkNameAvailabilityAsync(CheckNameAvailabilityParameters parameters, final ServiceCallback<Void> serviceCallback) {
          return ServiceFuture.fromResponse(checkNameAvailabilityWithServiceResponseAsync(parameters), serviceCallback);
      }
docs: Checks that the redis cache name is valid and is not already in use.
  
  @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource type is 'Microsoft.Cache/redis'
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object