code: public Observable<ServiceResponse<CheckNameResultInner>> checkNameAvailabilityWithServiceResponseAsync(String resourceGroupName, String clusterName, String name) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (clusterName == null) {
              throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          if (name == null) {
              throw new IllegalArgumentException("Parameter name is required and cannot be null.");
          }
          DatabaseCheckNameRequest databaseName = new DatabaseCheckNameRequest();
          databaseName.withName(name);
          return service.checkNameAvailability(resourceGroupName, clusterName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), databaseName, this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<CheckNameResultInner>>>() {
                  @Override
                  public Observable<ServiceResponse<CheckNameResultInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<CheckNameResultInner> clientResponse = checkNameAvailabilityDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Checks that the database name is valid and is not already in use.
  
  @param resourceGroupName The name of the resource group containing the Kusto cluster.
  @param clusterName The name of the Kusto cluster.
  @param name Database name.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the CheckNameResultInner object