class UserApi {

  public CompletableFuture<Void> deleteUser(String username) throws ApiException {
    try {
      HttpRequest.Builder localVarRequestBuilder = deleteUserRequestBuilder(username);
      return memberVarHttpClient.sendAsync(
          localVarRequestBuilder.build(),
          HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
            if (localVarResponse.statusCode()/ 100 != 2) {
              return CompletableFuture.failedFuture(getApiException("deleteUser", localVarResponse));
            }
            return CompletableFuture.completedFuture(null);
      });
    }
    catch (ApiException e) {
      return CompletableFuture.failedFuture(e);
    }
  }

  public  UserApi();
  public  UserApi(ApiClient apiClient);

}