@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonRecycleBinAsyncClient extends AmazonRecycleBinClient implements AmazonRecycleBinAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
This is the Recycle Bin API Reference. This documentation provides descriptions and syntax for each of the actions and data types in Recycle Bin.
Recycle Bin is a resource recovery feature that enables you to restore accidentally deleted snapshots and EBS-backed AMIs. When using Recycle Bin, if your resources are deleted, they are retained in the Recycle Bin for a time period that you specify.
You can restore a resource from the Recycle Bin at any time before its retention period expires. After you restore a resource from the Recycle Bin, the resource is removed from the Recycle Bin, and you can then use it in the same way you use any other resource of that type in your account. If the retention period expires and the resource is not restored, the resource is permanently deleted from the Recycle Bin and is no longer available for recovery. For more information about Recycle Bin, see Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, createRule, deleteRule, getCachedResponseMetadata, getRule, listRules, listTagsForResource, tagResource, untagResource, updateRuleaddRequestHandler, 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, waitcreateRule, deleteRule, getCachedResponseMetadata, getRule, listRules, listTagsForResource, tagResource, untagResource, updateRulepublic static AmazonRecycleBinAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateRuleResult> createRuleAsync(CreateRuleRequest request)
AmazonRecycleBinAsyncCreates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
createRuleAsync in interface AmazonRecycleBinAsyncpublic Future<CreateRuleResult> createRuleAsync(CreateRuleRequest request, AsyncHandler<CreateRuleRequest,CreateRuleResult> asyncHandler)
AmazonRecycleBinAsyncCreates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
createRuleAsync in interface AmazonRecycleBinAsyncasyncHandler - 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<DeleteRuleResult> deleteRuleAsync(DeleteRuleRequest request)
AmazonRecycleBinAsyncDeletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
deleteRuleAsync in interface AmazonRecycleBinAsyncpublic Future<DeleteRuleResult> deleteRuleAsync(DeleteRuleRequest request, AsyncHandler<DeleteRuleRequest,DeleteRuleResult> asyncHandler)
AmazonRecycleBinAsyncDeletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
deleteRuleAsync in interface AmazonRecycleBinAsyncasyncHandler - 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<GetRuleResult> getRuleAsync(GetRuleRequest request)
AmazonRecycleBinAsyncGets information about a Recycle Bin retention rule.
getRuleAsync in interface AmazonRecycleBinAsyncpublic Future<GetRuleResult> getRuleAsync(GetRuleRequest request, AsyncHandler<GetRuleRequest,GetRuleResult> asyncHandler)
AmazonRecycleBinAsyncGets information about a Recycle Bin retention rule.
getRuleAsync in interface AmazonRecycleBinAsyncasyncHandler - 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<ListRulesResult> listRulesAsync(ListRulesRequest request)
AmazonRecycleBinAsyncLists the Recycle Bin retention rules in the Region.
listRulesAsync in interface AmazonRecycleBinAsyncpublic Future<ListRulesResult> listRulesAsync(ListRulesRequest request, AsyncHandler<ListRulesRequest,ListRulesResult> asyncHandler)
AmazonRecycleBinAsyncLists the Recycle Bin retention rules in the Region.
listRulesAsync in interface AmazonRecycleBinAsyncasyncHandler - 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)
AmazonRecycleBinAsyncLists the tags assigned to a retention rule.
listTagsForResourceAsync in interface AmazonRecycleBinAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonRecycleBinAsyncLists the tags assigned to a retention rule.
listTagsForResourceAsync in interface AmazonRecycleBinAsyncasyncHandler - 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)
AmazonRecycleBinAsyncAssigns tags to the specified retention rule.
tagResourceAsync in interface AmazonRecycleBinAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonRecycleBinAsyncAssigns tags to the specified retention rule.
tagResourceAsync in interface AmazonRecycleBinAsyncasyncHandler - 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)
AmazonRecycleBinAsyncUnassigns a tag from a retention rule.
untagResourceAsync in interface AmazonRecycleBinAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonRecycleBinAsyncUnassigns a tag from a retention rule.
untagResourceAsync in interface AmazonRecycleBinAsyncasyncHandler - 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<UpdateRuleResult> updateRuleAsync(UpdateRuleRequest request)
AmazonRecycleBinAsyncUpdates an existing Recycle Bin retention rule. For more information, see Update Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
updateRuleAsync in interface AmazonRecycleBinAsyncpublic Future<UpdateRuleResult> updateRuleAsync(UpdateRuleRequest request, AsyncHandler<UpdateRuleRequest,UpdateRuleResult> asyncHandler)
AmazonRecycleBinAsyncUpdates an existing Recycle Bin retention rule. For more information, see Update Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
updateRuleAsync in interface AmazonRecycleBinAsyncasyncHandler - 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 AmazonRecycleBinshutdown in class AmazonRecycleBinClient