Class VehiclesApi


  • public class VehiclesApi
    extends java.lang.Object
    • Constructor Detail

      • VehiclesApi

        public VehiclesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getVehiclesCall

        public okhttp3.Call getVehiclesCall​(java.lang.String marketplaceId,
                                            java.lang.String vehicleType,
                                            java.lang.String pageToken,
                                            java.lang.String updatedAfter,
                                            ProgressResponseBody.ProgressListener progressListener,
                                            ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                     throws ApiException,
                                            LWAException
        Build call for getVehicles
        Parameters:
        marketplaceId - An identifier for the marketplace in which the resource operates. (required)
        vehicleType - An identifier for vehicle type. (required)
        pageToken - A token to fetch a certain page when there are multiple pages worth of results. (optional)
        updatedAfter - Date in ISO 8601 format, if provided only vehicles which are modified/added to Amazon's catalog after this date will be returned. (optional)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        LWAException - If calls to fetch LWA access token fails
      • getVehicles

        public VehiclesResponse getVehicles​(java.lang.String marketplaceId,
                                            java.lang.String vehicleType,
                                            java.lang.String pageToken,
                                            java.lang.String updatedAfter)
                                     throws ApiException,
                                            LWAException
        Get the latest collection of vehicles
        Parameters:
        marketplaceId - An identifier for the marketplace in which the resource operates. (required)
        vehicleType - An identifier for vehicle type. (required)
        pageToken - A token to fetch a certain page when there are multiple pages worth of results. (optional)
        updatedAfter - Date in ISO 8601 format, if provided only vehicles which are modified/added to Amazon's catalog after this date will be returned. (optional)
        Returns:
        VehiclesResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • getVehiclesWithHttpInfo

        public ApiResponse<VehiclesResponse> getVehiclesWithHttpInfo​(java.lang.String marketplaceId,
                                                                     java.lang.String vehicleType,
                                                                     java.lang.String pageToken,
                                                                     java.lang.String updatedAfter)
                                                              throws ApiException,
                                                                     LWAException
        Get the latest collection of vehicles
        Parameters:
        marketplaceId - An identifier for the marketplace in which the resource operates. (required)
        vehicleType - An identifier for vehicle type. (required)
        pageToken - A token to fetch a certain page when there are multiple pages worth of results. (optional)
        updatedAfter - Date in ISO 8601 format, if provided only vehicles which are modified/added to Amazon's catalog after this date will be returned. (optional)
        Returns:
        ApiResponse<VehiclesResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • getVehiclesAsync

        public okhttp3.Call getVehiclesAsync​(java.lang.String marketplaceId,
                                             java.lang.String vehicleType,
                                             java.lang.String pageToken,
                                             java.lang.String updatedAfter,
                                             ApiCallback<VehiclesResponse> callback)
                                      throws ApiException,
                                             LWAException
        (asynchronously) Get the latest collection of vehicles
        Parameters:
        marketplaceId - An identifier for the marketplace in which the resource operates. (required)
        vehicleType - An identifier for vehicle type. (required)
        pageToken - A token to fetch a certain page when there are multiple pages worth of results. (optional)
        updatedAfter - Date in ISO 8601 format, if provided only vehicles which are modified/added to Amazon's catalog after this date will be returned. (optional)
        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
        LWAException - If calls to fetch LWA access token fails