src/main/java/net/systran/platform/translation/client/api/TranslationApi.java
/**
   * Batch Cancel
   * Cancel a translation batch\n
   * @param batchId Batch Identifier\n
   * @param callback Javascript callback function name for JSONP Support\n
   * @return BatchCancel
   */
Batch Cancel
Cancel a translation batch\n
@param batchId Batch Identifier\n
@param callback Javascript callback function name for JSONP Support\n
@return BatchCancel
Batch Cancel Cancel a translation batch \ n @param batchId Batch Identifier \ n @param callback Javascript callback function name for JSONP Support \ n @return BatchCancel
public BatchCancel translationFileBatchCancelGet (String batchId, String callback) throws ApiException {
    Object postBody = null;
    if (batchId == null) {
       throw new ApiException(400, "Missing the required parameter 'batchId' when calling translationFileBatchCancelGet");
    }
    String path = "/translation/file/batch/cancel".replaceAll("\\{format\\}","json");
    Map<String, Object> queryParams = new HashMap<String, Object>();
    Map<String, String> headerParams = new HashMap<String, String>();
    Map<String, String> formParams = new HashMap<String, String>();
    if (batchId != null)
      queryParams.put("batchId", apiClient.parameterToString(batchId));
    if (callback != null)
      queryParams.put("callback", apiClient.parameterToString(callback));
    final String[] accepts = {
      "application/json"
    };
    final String accept = apiClient.selectHeaderAccept(accepts);
    final String[] contentTypes = {
    };
    final String contentType = apiClient.selectHeaderContentType(contentTypes);
    if(contentType.startsWith("multipart/form-data")) {
      boolean hasFields = false;
      FormDataMultiPart mp = new FormDataMultiPart();
      if(hasFields)
        postBody = mp;
    }
    else {
    }
    try {
      String[] authNames = new String[] { "accessToken", "apiKey" };
      ClientResponse response = apiClient.invokeAPI(path, "GET", queryParams, postBody, headerParams, formParams, accept, contentType, authNames);
      if(response != null){ 
        return (BatchCancel) apiClient.deserialize(response, "", BatchCancel.class); 
      }
      else {
        return null;
      }
    } catch (ApiException ex) {
      throw ex;
    }
  }
public BatchCancel translationFileBatchCancelGet ( String batchId , String callback ) throws ApiException { Object postBody = null ; if ( batchId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'batchId' when calling translationFileBatchCancelGet" ) ; } String path = "/translation/file/batch/cancel" . replaceAll ( "\\{format\\}" , "json" ) ; Map < String , Object > queryParams = new HashMap < String , Object > ( ) ; Map < String , String > headerParams = new HashMap < String , String > ( ) ; Map < String , String > formParams = new HashMap < String , String > ( ) ; if ( batchId != null ) queryParams . put ( "batchId" , apiClient . parameterToString ( batchId ) ) ; if ( callback != null ) queryParams . put ( "callback" , apiClient . parameterToString ( callback ) ) ; final String [ ] accepts = { "application/json" } ; final String accept = apiClient . selectHeaderAccept ( accepts ) ; final String [ ] contentTypes = { } ; final String contentType = apiClient . selectHeaderContentType ( contentTypes ) ; if ( contentType . startsWith ( "multipart/form-data" ) ) { boolean hasFields = false ; FormDataMultiPart mp = new FormDataMultiPart ( ) ; if ( hasFields ) postBody = mp ; } else { } try { String [ ] authNames = new String [ ] { "accessToken" , "apiKey" } ; ClientResponse response = apiClient . invokeAPI ( path , "GET" , queryParams , postBody , headerParams , formParams , accept , contentType , authNames ) ; if ( response != null ) { return ( BatchCancel ) apiClient . deserialize ( response , "" , BatchCancel . class ) ; } else { return null ; } } catch ( ApiException ex ) { throw ex ; } }
Batch Cancel
 Cancel a translation batch\n
 @param batchId Batch Identifier\n
 @param callback Javascript callback function name for JSONP Support\n
 @return BatchCancel
Batch Cancel Cancel a translation batch \ n @param batchId Batch Identifier \ n @param callback Javascript callback function name for JSONP Support \ n @return BatchCancel
// verify the required parameter 'batchId' is set // create path and map variables // query params