Class QueriesApi
- java.lang.Object
-
- software.amazon.spapi.api.datakiosk.v2023_11_15.QueriesApi
-
public class QueriesApi extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QueriesApi.Builder
-
Constructor Summary
Constructors Constructor Description QueriesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelQuery(java.lang.String queryId)
Cancels the query specified by the `queryId` parameter.okhttp3.Call
cancelQueryAsync(java.lang.String queryId, ApiCallback<java.lang.Void> callback)
(asynchronously) Cancels the query specified by the `queryId` parameter.okhttp3.Call
cancelQueryCall(java.lang.String queryId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for cancelQueryApiResponse<java.lang.Void>
cancelQueryWithHttpInfo(java.lang.String queryId)
Cancels the query specified by the `queryId` parameter.CreateQueryResponse
createQuery(CreateQuerySpecification body)
Creates a Data Kiosk query request.okhttp3.Call
createQueryAsync(CreateQuerySpecification body, ApiCallback<CreateQueryResponse> callback)
(asynchronously) Creates a Data Kiosk query request.okhttp3.Call
createQueryCall(CreateQuerySpecification body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createQueryApiResponse<CreateQueryResponse>
createQueryWithHttpInfo(CreateQuerySpecification body)
Creates a Data Kiosk query request.ApiClient
getApiClient()
GetDocumentResponse
getDocument(java.lang.String documentId)
Returns the information required for retrieving a Data Kiosk document's contents.okhttp3.Call
getDocumentAsync(java.lang.String documentId, ApiCallback<GetDocumentResponse> callback)
(asynchronously) Returns the information required for retrieving a Data Kiosk document's contents.okhttp3.Call
getDocumentCall(java.lang.String documentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getDocumentApiResponse<GetDocumentResponse>
getDocumentWithHttpInfo(java.lang.String documentId)
Returns the information required for retrieving a Data Kiosk document's contents.GetQueriesResponse
getQueries(java.util.List<java.lang.String> processingStatuses, java.lang.Integer pageSize, org.threeten.bp.OffsetDateTime createdSince, org.threeten.bp.OffsetDateTime createdUntil, java.lang.String paginationToken)
Returns details for the Data Kiosk queries that match the specified filters.okhttp3.Call
getQueriesAsync(java.util.List<java.lang.String> processingStatuses, java.lang.Integer pageSize, org.threeten.bp.OffsetDateTime createdSince, org.threeten.bp.OffsetDateTime createdUntil, java.lang.String paginationToken, ApiCallback<GetQueriesResponse> callback)
(asynchronously) Returns details for the Data Kiosk queries that match the specified filters.okhttp3.Call
getQueriesCall(java.util.List<java.lang.String> processingStatuses, java.lang.Integer pageSize, org.threeten.bp.OffsetDateTime createdSince, org.threeten.bp.OffsetDateTime createdUntil, java.lang.String paginationToken, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getQueriesApiResponse<GetQueriesResponse>
getQueriesWithHttpInfo(java.util.List<java.lang.String> processingStatuses, java.lang.Integer pageSize, org.threeten.bp.OffsetDateTime createdSince, org.threeten.bp.OffsetDateTime createdUntil, java.lang.String paginationToken)
Returns details for the Data Kiosk queries that match the specified filters.Query
getQuery(java.lang.String queryId)
Returns query details for the query specified by the `queryId` parameter.okhttp3.Call
getQueryAsync(java.lang.String queryId, ApiCallback<Query> callback)
(asynchronously) Returns query details for the query specified by the `queryId` parameter.okhttp3.Call
getQueryCall(java.lang.String queryId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getQueryApiResponse<Query>
getQueryWithHttpInfo(java.lang.String queryId)
Returns query details for the query specified by the `queryId` parameter.void
setApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
QueriesApi
public QueriesApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
cancelQueryCall
public okhttp3.Call cancelQueryCall(java.lang.String queryId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for cancelQuery- Parameters:
queryId
- The identifier for the query. This identifier is unique only in combination with a selling partner account ID. (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
-
cancelQuery
public void cancelQuery(java.lang.String queryId) throws ApiException, LWAException
Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
queryId
- The identifier for the query. This identifier is unique only in combination with a selling partner account ID. (required)- 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
-
cancelQueryWithHttpInfo
public ApiResponse<java.lang.Void> cancelQueryWithHttpInfo(java.lang.String queryId) throws ApiException, LWAException
Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
queryId
- The identifier for the query. This identifier is unique only in combination with a selling partner account ID. (required)- Returns:
- ApiResponse<Void>
- 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
-
cancelQueryAsync
public okhttp3.Call cancelQueryAsync(java.lang.String queryId, ApiCallback<java.lang.Void> callback) throws ApiException, LWAException
(asynchronously) Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
queryId
- The identifier for the query. This identifier is unique only in combination with a selling partner account ID. (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
-
createQueryCall
public okhttp3.Call createQueryCall(CreateQuerySpecification body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for createQuery- Parameters:
body
- The body of the request. (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
-
createQuery
public CreateQueryResponse createQuery(CreateQuerySpecification body) throws ApiException, LWAException
Creates a Data Kiosk query request. **Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query's resulting documents always matches the retention of the query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- The body of the request. (required)- Returns:
- CreateQueryResponse
- 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
-
createQueryWithHttpInfo
public ApiResponse<CreateQueryResponse> createQueryWithHttpInfo(CreateQuerySpecification body) throws ApiException, LWAException
Creates a Data Kiosk query request. **Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query's resulting documents always matches the retention of the query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- The body of the request. (required)- Returns:
- ApiResponse<CreateQueryResponse>
- 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
-
createQueryAsync
public okhttp3.Call createQueryAsync(CreateQuerySpecification body, ApiCallback<CreateQueryResponse> callback) throws ApiException, LWAException
(asynchronously) Creates a Data Kiosk query request. **Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query's resulting documents always matches the retention of the query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- The body of the request. (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
-
getDocumentCall
public okhttp3.Call getDocumentCall(java.lang.String documentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for getDocument- Parameters:
documentId
- The identifier for the Data Kiosk document. (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
-
getDocument
public GetDocumentResponse getDocument(java.lang.String documentId) throws ApiException, LWAException
Returns the information required for retrieving a Data Kiosk document's contents. See the `createQuery` operation for details about document retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
documentId
- The identifier for the Data Kiosk document. (required)- Returns:
- GetDocumentResponse
- 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
-
getDocumentWithHttpInfo
public ApiResponse<GetDocumentResponse> getDocumentWithHttpInfo(java.lang.String documentId) throws ApiException, LWAException
Returns the information required for retrieving a Data Kiosk document's contents. See the `createQuery` operation for details about document retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
documentId
- The identifier for the Data Kiosk document. (required)- Returns:
- ApiResponse<GetDocumentResponse>
- 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
-
getDocumentAsync
public okhttp3.Call getDocumentAsync(java.lang.String documentId, ApiCallback<GetDocumentResponse> callback) throws ApiException, LWAException
(asynchronously) Returns the information required for retrieving a Data Kiosk document's contents. See the `createQuery` operation for details about document retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
documentId
- The identifier for the Data Kiosk document. (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
-
getQueriesCall
public okhttp3.Call getQueriesCall(java.util.List<java.lang.String> processingStatuses, java.lang.Integer pageSize, org.threeten.bp.OffsetDateTime createdSince, org.threeten.bp.OffsetDateTime createdUntil, java.lang.String paginationToken, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for getQueries- Parameters:
processingStatuses
- A list of processing statuses used to filter queries. (optional)pageSize
- The maximum number of queries to return in a single call. (optional, default to 10)createdSince
- The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago. (optional)createdUntil
- The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request. (optional)paginationToken
- A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results. (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
-
getQueries
public GetQueriesResponse getQueries(java.util.List<java.lang.String> processingStatuses, java.lang.Integer pageSize, org.threeten.bp.OffsetDateTime createdSince, org.threeten.bp.OffsetDateTime createdUntil, java.lang.String paginationToken) throws ApiException, LWAException
Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
processingStatuses
- A list of processing statuses used to filter queries. (optional)pageSize
- The maximum number of queries to return in a single call. (optional, default to 10)createdSince
- The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago. (optional)createdUntil
- The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request. (optional)paginationToken
- A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results. (optional)- Returns:
- GetQueriesResponse
- 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
-
getQueriesWithHttpInfo
public ApiResponse<GetQueriesResponse> getQueriesWithHttpInfo(java.util.List<java.lang.String> processingStatuses, java.lang.Integer pageSize, org.threeten.bp.OffsetDateTime createdSince, org.threeten.bp.OffsetDateTime createdUntil, java.lang.String paginationToken) throws ApiException, LWAException
Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
processingStatuses
- A list of processing statuses used to filter queries. (optional)pageSize
- The maximum number of queries to return in a single call. (optional, default to 10)createdSince
- The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago. (optional)createdUntil
- The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request. (optional)paginationToken
- A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results. (optional)- Returns:
- ApiResponse<GetQueriesResponse>
- 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
-
getQueriesAsync
public okhttp3.Call getQueriesAsync(java.util.List<java.lang.String> processingStatuses, java.lang.Integer pageSize, org.threeten.bp.OffsetDateTime createdSince, org.threeten.bp.OffsetDateTime createdUntil, java.lang.String paginationToken, ApiCallback<GetQueriesResponse> callback) throws ApiException, LWAException
(asynchronously) Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
processingStatuses
- A list of processing statuses used to filter queries. (optional)pageSize
- The maximum number of queries to return in a single call. (optional, default to 10)createdSince
- The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago. (optional)createdUntil
- The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request. (optional)paginationToken
- A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results. (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
-
getQueryCall
public okhttp3.Call getQueryCall(java.lang.String queryId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for getQuery- Parameters:
queryId
- The query identifier. (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
-
getQuery
public Query getQuery(java.lang.String queryId) throws ApiException, LWAException
Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
queryId
- The query identifier. (required)- Returns:
- Query
- 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
-
getQueryWithHttpInfo
public ApiResponse<Query> getQueryWithHttpInfo(java.lang.String queryId) throws ApiException, LWAException
Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
queryId
- The query identifier. (required)- Returns:
- ApiResponse<Query>
- 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
-
getQueryAsync
public okhttp3.Call getQueryAsync(java.lang.String queryId, ApiCallback<Query> callback) throws ApiException, LWAException
(asynchronously) Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
queryId
- The query identifier. (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
-
-