Package Avalara.SDK.api.A1099.V2
Class JobsApi
- java.lang.Object
-
- Avalara.SDK.api.A1099.V2.JobsApi
-
public class JobsApi extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJobsApi.GetJobRequestRepresents the Request object for the GetJob API
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()StringgetCustomBaseUrl()JobsApi.GetJobRequestgetGetJobRequest()Getter function to instantiate Request classintgetHostIndex()JobResponsegetJob(JobsApi.GetJobRequest requestParameters)Retrieves information about the job Retrieves information about the jobokhttp3.CallgetJobAsync(JobsApi.GetJobRequest requestParameters, ApiCallback<JobResponse> _callback)Retrieves information about the job (asynchronously) Retrieves information about the jobokhttp3.CallgetJobCall(JobsApi.GetJobRequest requestParameters, ApiCallback _callback)Build call for getJobApiResponse<JobResponse>getJobWithHttpInfo(JobsApi.GetJobRequest requestParameters)Retrieves information about the job Retrieves information about the jobvoidsetCustomBaseUrl(String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
JobsApi
public JobsApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(String customBaseUrl)
-
getJobCall
public okhttp3.Call getJobCall(JobsApi.GetJobRequest requestParameters, ApiCallback _callback) throws ApiException
Build call for getJob- Parameters:
requestOptions- Object which represents the options available for a given API/request_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request - 404 Not Found - 500 Server Error - 401 Unauthorized -
-
getJob
public JobResponse getJob(JobsApi.GetJobRequest requestParameters) throws ApiException
Retrieves information about the job Retrieves information about the job- Parameters:
requestOptions- Object which represents the options available for a given API/request- Returns:
- JobResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request - 404 Not Found - 500 Server Error - 401 Unauthorized -
-
getJobWithHttpInfo
public ApiResponse<JobResponse> getJobWithHttpInfo(JobsApi.GetJobRequest requestParameters) throws ApiException
Retrieves information about the job Retrieves information about the job- Parameters:
requestOptions- Object which represents the options available for a given API/request- Returns:
- ApiResponse<JobResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request - 404 Not Found - 500 Server Error - 401 Unauthorized -
-
getJobAsync
public okhttp3.Call getJobAsync(JobsApi.GetJobRequest requestParameters, ApiCallback<JobResponse> _callback) throws ApiException
Retrieves information about the job (asynchronously) Retrieves information about the job- Parameters:
requestOptions- Object which represents the options available for a given API/request_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request - 404 Not Found - 500 Server Error - 401 Unauthorized -
-
getGetJobRequest
public JobsApi.GetJobRequest getGetJobRequest()
Getter function to instantiate Request class
-
-