@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSSnowDeviceManagementAsyncClient extends AWSSnowDeviceManagementClient implements AWSSnowDeviceManagementAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Amazon Web Services Snow Device Management documentation.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AWSSnowDeviceManagementAsyncClientBuilder |
asyncBuilder() |
Future<CancelTaskResult> |
cancelTaskAsync(CancelTaskRequest request)
Sends a cancel request for a specified task.
|
Future<CancelTaskResult> |
cancelTaskAsync(CancelTaskRequest request,
AsyncHandler<CancelTaskRequest,CancelTaskResult> asyncHandler)
Sends a cancel request for a specified task.
|
Future<CreateTaskResult> |
createTaskAsync(CreateTaskRequest request)
Instructs one or more devices to start a task, such as unlocking or rebooting.
|
Future<CreateTaskResult> |
createTaskAsync(CreateTaskRequest request,
AsyncHandler<CreateTaskRequest,CreateTaskResult> asyncHandler)
Instructs one or more devices to start a task, such as unlocking or rebooting.
|
Future<DescribeDeviceResult> |
describeDeviceAsync(DescribeDeviceRequest request)
Checks device-specific information, such as the device type, software version, IP addresses, and lock status.
|
Future<DescribeDeviceResult> |
describeDeviceAsync(DescribeDeviceRequest request,
AsyncHandler<DescribeDeviceRequest,DescribeDeviceResult> asyncHandler)
Checks device-specific information, such as the device type, software version, IP addresses, and lock status.
|
Future<DescribeDeviceEc2InstancesResult> |
describeDeviceEc2InstancesAsync(DescribeDeviceEc2InstancesRequest request)
Checks the current state of the Amazon EC2 instances.
|
Future<DescribeDeviceEc2InstancesResult> |
describeDeviceEc2InstancesAsync(DescribeDeviceEc2InstancesRequest request,
AsyncHandler<DescribeDeviceEc2InstancesRequest,DescribeDeviceEc2InstancesResult> asyncHandler)
Checks the current state of the Amazon EC2 instances.
|
Future<DescribeExecutionResult> |
describeExecutionAsync(DescribeExecutionRequest request)
Checks the status of a remote task running on one or more target devices.
|
Future<DescribeExecutionResult> |
describeExecutionAsync(DescribeExecutionRequest request,
AsyncHandler<DescribeExecutionRequest,DescribeExecutionResult> asyncHandler)
Checks the status of a remote task running on one or more target devices.
|
Future<DescribeTaskResult> |
describeTaskAsync(DescribeTaskRequest request)
Checks the metadata for a given task on a device.
|
Future<DescribeTaskResult> |
describeTaskAsync(DescribeTaskRequest request,
AsyncHandler<DescribeTaskRequest,DescribeTaskResult> asyncHandler)
Checks the metadata for a given task on a device.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<ListDeviceResourcesResult> |
listDeviceResourcesAsync(ListDeviceResourcesRequest request)
Returns a list of the Amazon Web Services resources available for a device.
|
Future<ListDeviceResourcesResult> |
listDeviceResourcesAsync(ListDeviceResourcesRequest request,
AsyncHandler<ListDeviceResourcesRequest,ListDeviceResourcesResult> asyncHandler)
Returns a list of the Amazon Web Services resources available for a device.
|
Future<ListDevicesResult> |
listDevicesAsync(ListDevicesRequest request)
Returns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device
Management enabled in the Amazon Web Services Region where the command is run.
|
Future<ListDevicesResult> |
listDevicesAsync(ListDevicesRequest request,
AsyncHandler<ListDevicesRequest,ListDevicesResult> asyncHandler)
Returns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device
Management enabled in the Amazon Web Services Region where the command is run.
|
Future<ListExecutionsResult> |
listExecutionsAsync(ListExecutionsRequest request)
Returns the status of tasks for one or more target devices.
|
Future<ListExecutionsResult> |
listExecutionsAsync(ListExecutionsRequest request,
AsyncHandler<ListExecutionsRequest,ListExecutionsResult> asyncHandler)
Returns the status of tasks for one or more target devices.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request)
Returns a list of tags for a managed device or task.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Returns a list of tags for a managed device or task.
|
Future<ListTasksResult> |
listTasksAsync(ListTasksRequest request)
Returns a list of tasks that can be filtered by state.
|
Future<ListTasksResult> |
listTasksAsync(ListTasksRequest request,
AsyncHandler<ListTasksRequest,ListTasksResult> asyncHandler)
Returns a list of tasks that can be filtered by state.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request)
Adds or replaces tags on a device or task.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Adds or replaces tags on a device or task.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request)
Removes a tag from a device or task.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes a tag from a device or task.
|
builder, cancelTask, createTask, describeDevice, describeDeviceEc2Instances, describeExecution, describeTask, getCachedResponseMetadata, listDeviceResources, listDevices, listExecutions, listTagsForResource, listTasks, tagResource, untagResourceaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelTask, createTask, describeDevice, describeDeviceEc2Instances, describeExecution, describeTask, getCachedResponseMetadata, listDeviceResources, listDevices, listExecutions, listTagsForResource, listTasks, tagResource, untagResourcepublic static AWSSnowDeviceManagementAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CancelTaskResult> cancelTaskAsync(CancelTaskRequest request)
AWSSnowDeviceManagementAsync
Sends a cancel request for a specified task. You can cancel a task only if it's still in a QUEUED
state. Tasks that are already running can't be cancelled.
A task might still run if it's processed from the queue before the CancelTask operation changes the
task's state.
cancelTaskAsync in interface AWSSnowDeviceManagementAsyncpublic Future<CancelTaskResult> cancelTaskAsync(CancelTaskRequest request, AsyncHandler<CancelTaskRequest,CancelTaskResult> asyncHandler)
AWSSnowDeviceManagementAsync
Sends a cancel request for a specified task. You can cancel a task only if it's still in a QUEUED
state. Tasks that are already running can't be cancelled.
A task might still run if it's processed from the queue before the CancelTask operation changes the
task's state.
cancelTaskAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateTaskResult> createTaskAsync(CreateTaskRequest request)
AWSSnowDeviceManagementAsyncInstructs one or more devices to start a task, such as unlocking or rebooting.
createTaskAsync in interface AWSSnowDeviceManagementAsyncpublic Future<CreateTaskResult> createTaskAsync(CreateTaskRequest request, AsyncHandler<CreateTaskRequest,CreateTaskResult> asyncHandler)
AWSSnowDeviceManagementAsyncInstructs one or more devices to start a task, such as unlocking or rebooting.
createTaskAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeDeviceResult> describeDeviceAsync(DescribeDeviceRequest request)
AWSSnowDeviceManagementAsyncChecks device-specific information, such as the device type, software version, IP addresses, and lock status.
describeDeviceAsync in interface AWSSnowDeviceManagementAsyncpublic Future<DescribeDeviceResult> describeDeviceAsync(DescribeDeviceRequest request, AsyncHandler<DescribeDeviceRequest,DescribeDeviceResult> asyncHandler)
AWSSnowDeviceManagementAsyncChecks device-specific information, such as the device type, software version, IP addresses, and lock status.
describeDeviceAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeDeviceEc2InstancesResult> describeDeviceEc2InstancesAsync(DescribeDeviceEc2InstancesRequest request)
AWSSnowDeviceManagementAsync
Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice, but
the results are sourced from the device cache in the Amazon Web Services Cloud and include a subset of the
available fields.
describeDeviceEc2InstancesAsync in interface AWSSnowDeviceManagementAsyncpublic Future<DescribeDeviceEc2InstancesResult> describeDeviceEc2InstancesAsync(DescribeDeviceEc2InstancesRequest request, AsyncHandler<DescribeDeviceEc2InstancesRequest,DescribeDeviceEc2InstancesResult> asyncHandler)
AWSSnowDeviceManagementAsync
Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice, but
the results are sourced from the device cache in the Amazon Web Services Cloud and include a subset of the
available fields.
describeDeviceEc2InstancesAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeExecutionResult> describeExecutionAsync(DescribeExecutionRequest request)
AWSSnowDeviceManagementAsyncChecks the status of a remote task running on one or more target devices.
describeExecutionAsync in interface AWSSnowDeviceManagementAsyncpublic Future<DescribeExecutionResult> describeExecutionAsync(DescribeExecutionRequest request, AsyncHandler<DescribeExecutionRequest,DescribeExecutionResult> asyncHandler)
AWSSnowDeviceManagementAsyncChecks the status of a remote task running on one or more target devices.
describeExecutionAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeTaskResult> describeTaskAsync(DescribeTaskRequest request)
AWSSnowDeviceManagementAsyncChecks the metadata for a given task on a device.
describeTaskAsync in interface AWSSnowDeviceManagementAsyncpublic Future<DescribeTaskResult> describeTaskAsync(DescribeTaskRequest request, AsyncHandler<DescribeTaskRequest,DescribeTaskResult> asyncHandler)
AWSSnowDeviceManagementAsyncChecks the metadata for a given task on a device.
describeTaskAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDeviceResourcesResult> listDeviceResourcesAsync(ListDeviceResourcesRequest request)
AWSSnowDeviceManagementAsyncReturns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.
listDeviceResourcesAsync in interface AWSSnowDeviceManagementAsyncpublic Future<ListDeviceResourcesResult> listDeviceResourcesAsync(ListDeviceResourcesRequest request, AsyncHandler<ListDeviceResourcesRequest,ListDeviceResourcesResult> asyncHandler)
AWSSnowDeviceManagementAsyncReturns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.
listDeviceResourcesAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDevicesResult> listDevicesAsync(ListDevicesRequest request)
AWSSnowDeviceManagementAsyncReturns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device Management enabled in the Amazon Web Services Region where the command is run.
listDevicesAsync in interface AWSSnowDeviceManagementAsyncpublic Future<ListDevicesResult> listDevicesAsync(ListDevicesRequest request, AsyncHandler<ListDevicesRequest,ListDevicesResult> asyncHandler)
AWSSnowDeviceManagementAsyncReturns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device Management enabled in the Amazon Web Services Region where the command is run.
listDevicesAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListExecutionsResult> listExecutionsAsync(ListExecutionsRequest request)
AWSSnowDeviceManagementAsyncReturns the status of tasks for one or more target devices.
listExecutionsAsync in interface AWSSnowDeviceManagementAsyncpublic Future<ListExecutionsResult> listExecutionsAsync(ListExecutionsRequest request, AsyncHandler<ListExecutionsRequest,ListExecutionsResult> asyncHandler)
AWSSnowDeviceManagementAsyncReturns the status of tasks for one or more target devices.
listExecutionsAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSSnowDeviceManagementAsyncReturns a list of tags for a managed device or task.
listTagsForResourceAsync in interface AWSSnowDeviceManagementAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSSnowDeviceManagementAsyncReturns a list of tags for a managed device or task.
listTagsForResourceAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTasksResult> listTasksAsync(ListTasksRequest request)
AWSSnowDeviceManagementAsyncReturns a list of tasks that can be filtered by state.
listTasksAsync in interface AWSSnowDeviceManagementAsyncpublic Future<ListTasksResult> listTasksAsync(ListTasksRequest request, AsyncHandler<ListTasksRequest,ListTasksResult> asyncHandler)
AWSSnowDeviceManagementAsyncReturns a list of tasks that can be filtered by state.
listTasksAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSSnowDeviceManagementAsyncAdds or replaces tags on a device or task.
tagResourceAsync in interface AWSSnowDeviceManagementAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSSnowDeviceManagementAsyncAdds or replaces tags on a device or task.
tagResourceAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSSnowDeviceManagementAsyncRemoves a tag from a device or task.
untagResourceAsync in interface AWSSnowDeviceManagementAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSSnowDeviceManagementAsyncRemoves a tag from a device or task.
untagResourceAsync in interface AWSSnowDeviceManagementAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AWSSnowDeviceManagementshutdown in class AWSSnowDeviceManagementClient