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
-
Field Summary
Fields Modifier and Type Field Description io.github.bucket4j.Bucket
getVehiclesBucket
-
Constructor Summary
Constructors Constructor Description VehiclesApi(ApiClient apiClient, java.lang.Boolean disableRateLimiting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 vehiclesApiResponse<VehiclesResponse>
getVehiclesWithHttpInfo(java.lang.String marketplaceId, java.lang.String vehicleType, java.lang.String pageToken, java.lang.String updatedAfter)
Get the latest collection of vehicles
-
-
-
Constructor Detail
-
VehiclesApi
public VehiclesApi(ApiClient apiClient, java.lang.Boolean disableRateLimiting)
-
-
Method Detail
-
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
-
-