sdk/java/src/main/java/com/example/www/controllers/BlacklistIPAddressesController.java
/**
     * Create an IP Address in the Blacklist
     * @param    body    Required parameter: Example: 
     * @return    Returns the void response from the API call 
     */
Create an IP Address in the Blacklist
@param    body    Required parameter: Example:
@return    Returns the void response from the API call
Create an IP Address in the Blacklist @param body Required parameter : Example : @return Returns the void response from the API call
public void createAsync(
                final IPAddress body,
                final APICallBack<CreateResponse> callBack
    ) {
        Runnable _responseTask = new Runnable() {
            public void run() {
                HttpRequest _request;
                try {
                    _request = _buildCreateRequest(body);
                } catch (Exception e) {
                    callBack.onFailure(null, e);
                    return;
                }
                getClientInstance().executeAsStringAsync(_request, new APICallBack<HttpResponse>() {
                    public void onSuccess(HttpContext _context, HttpResponse _response) {
                        try {
                            CreateResponse returnValue = _handleCreateResponse(_context);
                            callBack.onSuccess(_context, returnValue);
                        } catch (Exception e) {
                            callBack.onFailure(_context, e);
                        }
                    }
                    public void onFailure(HttpContext _context, Throwable _exception) {
                        callBack.onFailure(_context, _exception);
                    }
                });
            }
        };
        APIHelper.getScheduler().execute(_responseTask);
    }
public void createAsync ( final IPAddress body , final APICallBack < CreateResponse > callBack ) { Runnable _responseTask = new Runnable ( ) { public void run ( ) { HttpRequest _request ; try { _request = _buildCreateRequest ( body ) ; } catch ( Exception e ) { callBack . onFailure ( null , e ) ; return ; } getClientInstance ( ) . executeAsStringAsync ( _request , new APICallBack < HttpResponse > ( ) { public void onSuccess ( HttpContext _context , HttpResponse _response ) { try { CreateResponse returnValue = _handleCreateResponse ( _context ) ; callBack . onSuccess ( _context , returnValue ) ; } catch ( Exception e ) { callBack . onFailure ( _context , e ) ; } } public void onFailure ( HttpContext _context , Throwable _exception ) { callBack . onFailure ( _context , _exception ) ; } } ) ; } } ; APIHelper . getScheduler ( ) . execute ( _responseTask ) ; }
Create an IP Address in the Blacklist
 @param    body    Required parameter: Example:
 @return    Returns the void response from the API call
Create an IP Address in the Blacklist @param body Required parameter : Example : @return Returns the void response from the API call
// Invoke request and get response // Let the caller know of the failure // Execute async using thread pool