Class SupplySourcesApi
- java.lang.Object
-
- software.amazon.spapi.api.supplysources.v2020_07_01.SupplySourcesApi
-
public class SupplySourcesApi extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SupplySourcesApi.Builder
-
Constructor Summary
Constructors Constructor Description SupplySourcesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorList
archiveSupplySource(java.lang.String supplySourceId)
Archive a supply source, making it inactive.okhttp3.Call
archiveSupplySourceAsync(java.lang.String supplySourceId, ApiCallback<ErrorList> callback)
(asynchronously) Archive a supply source, making it inactive.okhttp3.Call
archiveSupplySourceCall(java.lang.String supplySourceId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for archiveSupplySourceApiResponse<ErrorList>
archiveSupplySourceWithHttpInfo(java.lang.String supplySourceId)
Archive a supply source, making it inactive.CreateSupplySourceResponse
createSupplySource(CreateSupplySourceRequest body)
Create a new supply source.okhttp3.Call
createSupplySourceAsync(CreateSupplySourceRequest body, ApiCallback<CreateSupplySourceResponse> callback)
(asynchronously) Create a new supply source.okhttp3.Call
createSupplySourceCall(CreateSupplySourceRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createSupplySourceApiResponse<CreateSupplySourceResponse>
createSupplySourceWithHttpInfo(CreateSupplySourceRequest body)
Create a new supply source.ApiClient
getApiClient()
SupplySource
getSupplySource(java.lang.String supplySourceId)
Retrieve a supply source.okhttp3.Call
getSupplySourceAsync(java.lang.String supplySourceId, ApiCallback<SupplySource> callback)
(asynchronously) Retrieve a supply source.okhttp3.Call
getSupplySourceCall(java.lang.String supplySourceId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getSupplySourceGetSupplySourcesResponse
getSupplySources(java.lang.String nextPageToken, java.math.BigDecimal pageSize)
The path to retrieve paginated supply sources.okhttp3.Call
getSupplySourcesAsync(java.lang.String nextPageToken, java.math.BigDecimal pageSize, ApiCallback<GetSupplySourcesResponse> callback)
(asynchronously) The path to retrieve paginated supply sources.okhttp3.Call
getSupplySourcesCall(java.lang.String nextPageToken, java.math.BigDecimal pageSize, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getSupplySourcesApiResponse<GetSupplySourcesResponse>
getSupplySourcesWithHttpInfo(java.lang.String nextPageToken, java.math.BigDecimal pageSize)
The path to retrieve paginated supply sources.ApiResponse<SupplySource>
getSupplySourceWithHttpInfo(java.lang.String supplySourceId)
Retrieve a supply source.void
setApiClient(ApiClient apiClient)
ErrorList
updateSupplySource(java.lang.String supplySourceId, UpdateSupplySourceRequest body)
Update the configuration and capabilities of a supply source.okhttp3.Call
updateSupplySourceAsync(java.lang.String supplySourceId, UpdateSupplySourceRequest body, ApiCallback<ErrorList> callback)
(asynchronously) Update the configuration and capabilities of a supply source.okhttp3.Call
updateSupplySourceCall(java.lang.String supplySourceId, UpdateSupplySourceRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateSupplySourceErrorList
updateSupplySourceStatus(java.lang.String supplySourceId, UpdateSupplySourceStatusRequest body)
Update the status of a supply source.okhttp3.Call
updateSupplySourceStatusAsync(java.lang.String supplySourceId, UpdateSupplySourceStatusRequest body, ApiCallback<ErrorList> callback)
(asynchronously) Update the status of a supply source.okhttp3.Call
updateSupplySourceStatusCall(java.lang.String supplySourceId, UpdateSupplySourceStatusRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateSupplySourceStatusApiResponse<ErrorList>
updateSupplySourceStatusWithHttpInfo(java.lang.String supplySourceId, UpdateSupplySourceStatusRequest body)
Update the status of a supply source.ApiResponse<ErrorList>
updateSupplySourceWithHttpInfo(java.lang.String supplySourceId, UpdateSupplySourceRequest body)
Update the configuration and capabilities of a supply source.
-
-
-
Constructor Detail
-
SupplySourcesApi
public SupplySourcesApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
archiveSupplySourceCall
public okhttp3.Call archiveSupplySourceCall(java.lang.String supplySourceId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for archiveSupplySource- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)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
-
archiveSupplySource
public ErrorList archiveSupplySource(java.lang.String supplySourceId) throws ApiException, LWAException
Archive a supply source, making it inactive. Cannot be undone.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)- Returns:
- ErrorList
- 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
-
archiveSupplySourceWithHttpInfo
public ApiResponse<ErrorList> archiveSupplySourceWithHttpInfo(java.lang.String supplySourceId) throws ApiException, LWAException
Archive a supply source, making it inactive. Cannot be undone.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)- Returns:
- ApiResponse<ErrorList>
- 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
-
archiveSupplySourceAsync
public okhttp3.Call archiveSupplySourceAsync(java.lang.String supplySourceId, ApiCallback<ErrorList> callback) throws ApiException, LWAException
(asynchronously) Archive a supply source, making it inactive. Cannot be undone.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)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
-
createSupplySourceCall
public okhttp3.Call createSupplySourceCall(CreateSupplySourceRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for createSupplySource- Parameters:
body
- A request to create a supply source. (required)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
-
createSupplySource
public CreateSupplySourceResponse createSupplySource(CreateSupplySourceRequest body) throws ApiException, LWAException
Create a new supply source.- Parameters:
body
- A request to create a supply source. (required)- Returns:
- CreateSupplySourceResponse
- 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
-
createSupplySourceWithHttpInfo
public ApiResponse<CreateSupplySourceResponse> createSupplySourceWithHttpInfo(CreateSupplySourceRequest body) throws ApiException, LWAException
Create a new supply source.- Parameters:
body
- A request to create a supply source. (required)- Returns:
- ApiResponse<CreateSupplySourceResponse>
- 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
-
createSupplySourceAsync
public okhttp3.Call createSupplySourceAsync(CreateSupplySourceRequest body, ApiCallback<CreateSupplySourceResponse> callback) throws ApiException, LWAException
(asynchronously) Create a new supply source.- Parameters:
body
- A request to create a supply source. (required)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
-
getSupplySourceCall
public okhttp3.Call getSupplySourceCall(java.lang.String supplySourceId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for getSupplySource- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)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
-
getSupplySource
public SupplySource getSupplySource(java.lang.String supplySourceId) throws ApiException, LWAException
Retrieve a supply source.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)- Returns:
- SupplySource
- 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
-
getSupplySourceWithHttpInfo
public ApiResponse<SupplySource> getSupplySourceWithHttpInfo(java.lang.String supplySourceId) throws ApiException, LWAException
Retrieve a supply source.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)- Returns:
- ApiResponse<SupplySource>
- 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
-
getSupplySourceAsync
public okhttp3.Call getSupplySourceAsync(java.lang.String supplySourceId, ApiCallback<SupplySource> callback) throws ApiException, LWAException
(asynchronously) Retrieve a supply source.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)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
-
getSupplySourcesCall
public okhttp3.Call getSupplySourcesCall(java.lang.String nextPageToken, java.math.BigDecimal pageSize, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for getSupplySources- Parameters:
nextPageToken
- The pagination token to retrieve a specific page of results. (optional)pageSize
- The number of supply sources to return per paginated request. (optional, default to 10.0)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
-
getSupplySources
public GetSupplySourcesResponse getSupplySources(java.lang.String nextPageToken, java.math.BigDecimal pageSize) throws ApiException, LWAException
The path to retrieve paginated supply sources.- Parameters:
nextPageToken
- The pagination token to retrieve a specific page of results. (optional)pageSize
- The number of supply sources to return per paginated request. (optional, default to 10.0)- Returns:
- GetSupplySourcesResponse
- 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
-
getSupplySourcesWithHttpInfo
public ApiResponse<GetSupplySourcesResponse> getSupplySourcesWithHttpInfo(java.lang.String nextPageToken, java.math.BigDecimal pageSize) throws ApiException, LWAException
The path to retrieve paginated supply sources.- Parameters:
nextPageToken
- The pagination token to retrieve a specific page of results. (optional)pageSize
- The number of supply sources to return per paginated request. (optional, default to 10.0)- Returns:
- ApiResponse<GetSupplySourcesResponse>
- 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
-
getSupplySourcesAsync
public okhttp3.Call getSupplySourcesAsync(java.lang.String nextPageToken, java.math.BigDecimal pageSize, ApiCallback<GetSupplySourcesResponse> callback) throws ApiException, LWAException
(asynchronously) The path to retrieve paginated supply sources.- Parameters:
nextPageToken
- The pagination token to retrieve a specific page of results. (optional)pageSize
- The number of supply sources to return per paginated request. (optional, default to 10.0)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
-
updateSupplySourceCall
public okhttp3.Call updateSupplySourceCall(java.lang.String supplySourceId, UpdateSupplySourceRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for updateSupplySource- Parameters:
supplySourceId
- The unique identitier of a supply source. (required)body
- (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
-
updateSupplySource
public ErrorList updateSupplySource(java.lang.String supplySourceId, UpdateSupplySourceRequest body) throws ApiException, LWAException
Update the configuration and capabilities of a supply source.- Parameters:
supplySourceId
- The unique identitier of a supply source. (required)body
- (optional)- Returns:
- ErrorList
- 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
-
updateSupplySourceWithHttpInfo
public ApiResponse<ErrorList> updateSupplySourceWithHttpInfo(java.lang.String supplySourceId, UpdateSupplySourceRequest body) throws ApiException, LWAException
Update the configuration and capabilities of a supply source.- Parameters:
supplySourceId
- The unique identitier of a supply source. (required)body
- (optional)- Returns:
- ApiResponse<ErrorList>
- 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
-
updateSupplySourceAsync
public okhttp3.Call updateSupplySourceAsync(java.lang.String supplySourceId, UpdateSupplySourceRequest body, ApiCallback<ErrorList> callback) throws ApiException, LWAException
(asynchronously) Update the configuration and capabilities of a supply source.- Parameters:
supplySourceId
- The unique identitier of a supply source. (required)body
- (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
-
updateSupplySourceStatusCall
public okhttp3.Call updateSupplySourceStatusCall(java.lang.String supplySourceId, UpdateSupplySourceStatusRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for updateSupplySourceStatus- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)body
- (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
-
updateSupplySourceStatus
public ErrorList updateSupplySourceStatus(java.lang.String supplySourceId, UpdateSupplySourceStatusRequest body) throws ApiException, LWAException
Update the status of a supply source.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)body
- (optional)- Returns:
- ErrorList
- 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
-
updateSupplySourceStatusWithHttpInfo
public ApiResponse<ErrorList> updateSupplySourceStatusWithHttpInfo(java.lang.String supplySourceId, UpdateSupplySourceStatusRequest body) throws ApiException, LWAException
Update the status of a supply source.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)body
- (optional)- Returns:
- ApiResponse<ErrorList>
- 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
-
updateSupplySourceStatusAsync
public okhttp3.Call updateSupplySourceStatusAsync(java.lang.String supplySourceId, UpdateSupplySourceStatusRequest body, ApiCallback<ErrorList> callback) throws ApiException, LWAException
(asynchronously) Update the status of a supply source.- Parameters:
supplySourceId
- The unique identifier of a supply source. (required)body
- (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
-
-