public class DatastoreServiceClient extends com.amazon.ask.model.services.BaseServiceClient implements DatastoreService
Constructor and Description |
---|
DatastoreServiceClient(com.amazon.ask.model.services.ApiConfiguration apiConfiguration,
com.amazon.ask.model.services.AuthenticationConfiguration authenticationConfiguration) |
DatastoreServiceClient(com.amazon.ask.model.services.ApiConfiguration apiConfiguration,
com.amazon.ask.model.services.lwa.LwaClient lwaClient) |
Modifier and Type | Method and Description |
---|---|
com.amazon.ask.model.services.ApiResponse<Void> |
callCancelCommandsV1(String queuedResultId)
Cancel pending DataStore commands.
|
com.amazon.ask.model.services.ApiResponse<CommandsResponse> |
callCommandsV1(CommandsRequest commandsRequest)
Send DataStore commands to Alexa device.
|
com.amazon.ask.model.services.ApiResponse<QueuedResultResponse> |
callQueuedResultV1(String queuedResultId,
Integer maxResults,
String nextToken)
Query statuses of deliveries to offline devices returned by commands API.
|
void |
cancelCommandsV1(String queuedResultId)
Cancel pending DataStore commands.
|
CommandsResponse |
commandsV1(CommandsRequest commandsRequest)
Send DataStore commands to Alexa device.
|
QueuedResultResponse |
queuedResultV1(String queuedResultId,
Integer maxResults,
String nextToken)
Query statuses of deliveries to offline devices returned by commands API.
|
public DatastoreServiceClient(com.amazon.ask.model.services.ApiConfiguration apiConfiguration, com.amazon.ask.model.services.AuthenticationConfiguration authenticationConfiguration)
public DatastoreServiceClient(com.amazon.ask.model.services.ApiConfiguration apiConfiguration, com.amazon.ask.model.services.lwa.LwaClient lwaClient)
public com.amazon.ask.model.services.ApiResponse<CommandsResponse> callCommandsV1(CommandsRequest commandsRequest) throws com.amazon.ask.model.services.ServiceException
callCommandsV1
in interface DatastoreService
commandsRequest
- (required)com.amazon.ask.model.services.ServiceException
- if fails to make API callpublic CommandsResponse commandsV1(CommandsRequest commandsRequest) throws com.amazon.ask.model.services.ServiceException
commandsV1
in interface DatastoreService
commandsRequest
- (required)com.amazon.ask.model.services.ServiceException
- if fails to make API callpublic com.amazon.ask.model.services.ApiResponse<Void> callCancelCommandsV1(String queuedResultId) throws com.amazon.ask.model.services.ServiceException
callCancelCommandsV1
in interface DatastoreService
queuedResultId
- A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). (required)com.amazon.ask.model.services.ServiceException
- if fails to make API callpublic void cancelCommandsV1(String queuedResultId) throws com.amazon.ask.model.services.ServiceException
cancelCommandsV1
in interface DatastoreService
queuedResultId
- A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). (required)com.amazon.ask.model.services.ServiceException
- if fails to make API callpublic com.amazon.ask.model.services.ApiResponse<QueuedResultResponse> callQueuedResultV1(String queuedResultId, Integer maxResults, String nextToken) throws com.amazon.ask.model.services.ServiceException
callQueuedResultV1
in interface DatastoreService
queuedResultId
- A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). (required)maxResults
- Maximum number of CommandsDispatchResult items to return. (optional, default to 20)nextToken
- The value of nextToken in the response to fetch next page. If not specified, the request fetches result for the first page. (optional)com.amazon.ask.model.services.ServiceException
- if fails to make API callpublic QueuedResultResponse queuedResultV1(String queuedResultId, Integer maxResults, String nextToken) throws com.amazon.ask.model.services.ServiceException
queuedResultV1
in interface DatastoreService
queuedResultId
- A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). (required)maxResults
- Maximum number of CommandsDispatchResult items to return. (optional, default to 20)nextToken
- The value of nextToken in the response to fetch next page. If not specified, the request fetches result for the first page. (optional)com.amazon.ask.model.services.ServiceException
- if fails to make API callCopyright © 2023. All rights reserved.