Class VehiclesApi
- java.lang.Object
-
- software.amazon.spapi.api.vehicles.v2024_11_01.VehiclesApi
-
public class VehiclesApi extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VehiclesApi.Builder
-
Constructor Summary
Constructors Constructor Description VehiclesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClient
getApiClient()
VehiclesResponse
getVehicles(java.lang.String marketplaceId, java.lang.String vehicleType, java.lang.String pageToken, java.lang.String updatedAfter)
Get the latest collection of vehiclesokhttp3.Call
getVehiclesAsync(java.lang.String marketplaceId, java.lang.String vehicleType, java.lang.String pageToken, java.lang.String updatedAfter, ApiCallback<VehiclesResponse> callback)
(asynchronously) Get the latest collection of vehiclesokhttp3.Call
getVehiclesCall(java.lang.String marketplaceId, java.lang.String vehicleType, java.lang.String pageToken, java.lang.String updatedAfter, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getVehiclesApiResponse<VehiclesResponse>
getVehiclesWithHttpInfo(java.lang.String marketplaceId, java.lang.String vehicleType, java.lang.String pageToken, java.lang.String updatedAfter)
Get the latest collection of vehiclesvoid
setApiClient(ApiClient apiClient)
-
-
-
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 listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body objectLWAException
- 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 bodyLWAException
- 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 bodyLWAException
- 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 objectLWAException
- If calls to fetch LWA access token fails
-
-