@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_METRIC
ENDPOINT_PREFIX
builder, createRule, deleteRule, getCachedResponseMetadata, getRule, listRules, listTagsForResource, lockRule, tagResource, unlockRule, untagResource, updateRule
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRule, deleteRule, getCachedResponseMetadata, getRule, listRules, listTagsForResource, lockRule, tagResource, unlockRule, untagResource, updateRule
public static AmazonRecycleBinAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateRuleResult> createRuleAsync(CreateRuleRequest request)
AmazonRecycleBinAsync
Creates 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 AmazonRecycleBinAsync
public Future<CreateRuleResult> createRuleAsync(CreateRuleRequest request, AsyncHandler<CreateRuleRequest,CreateRuleResult> asyncHandler)
AmazonRecycleBinAsync
Creates 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 AmazonRecycleBinAsync
asyncHandler
- 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)
AmazonRecycleBinAsync
Deletes 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 AmazonRecycleBinAsync
public Future<DeleteRuleResult> deleteRuleAsync(DeleteRuleRequest request, AsyncHandler<DeleteRuleRequest,DeleteRuleResult> asyncHandler)
AmazonRecycleBinAsync
Deletes 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 AmazonRecycleBinAsync
asyncHandler
- 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)
AmazonRecycleBinAsync
Gets information about a Recycle Bin retention rule.
getRuleAsync
in interface AmazonRecycleBinAsync
public Future<GetRuleResult> getRuleAsync(GetRuleRequest request, AsyncHandler<GetRuleRequest,GetRuleResult> asyncHandler)
AmazonRecycleBinAsync
Gets information about a Recycle Bin retention rule.
getRuleAsync
in interface AmazonRecycleBinAsync
asyncHandler
- 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)
AmazonRecycleBinAsync
Lists the Recycle Bin retention rules in the Region.
listRulesAsync
in interface AmazonRecycleBinAsync
public Future<ListRulesResult> listRulesAsync(ListRulesRequest request, AsyncHandler<ListRulesRequest,ListRulesResult> asyncHandler)
AmazonRecycleBinAsync
Lists the Recycle Bin retention rules in the Region.
listRulesAsync
in interface AmazonRecycleBinAsync
asyncHandler
- 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)
AmazonRecycleBinAsync
Lists the tags assigned to a retention rule.
listTagsForResourceAsync
in interface AmazonRecycleBinAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonRecycleBinAsync
Lists the tags assigned to a retention rule.
listTagsForResourceAsync
in interface AmazonRecycleBinAsync
asyncHandler
- 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<LockRuleResult> lockRuleAsync(LockRuleRequest request)
AmazonRecycleBinAsync
Locks a retention rule. A locked retention rule can't be modified or deleted.
lockRuleAsync
in interface AmazonRecycleBinAsync
public Future<LockRuleResult> lockRuleAsync(LockRuleRequest request, AsyncHandler<LockRuleRequest,LockRuleResult> asyncHandler)
AmazonRecycleBinAsync
Locks a retention rule. A locked retention rule can't be modified or deleted.
lockRuleAsync
in interface AmazonRecycleBinAsync
asyncHandler
- 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)
AmazonRecycleBinAsync
Assigns tags to the specified retention rule.
tagResourceAsync
in interface AmazonRecycleBinAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonRecycleBinAsync
Assigns tags to the specified retention rule.
tagResourceAsync
in interface AmazonRecycleBinAsync
asyncHandler
- 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<UnlockRuleResult> unlockRuleAsync(UnlockRuleRequest request)
AmazonRecycleBinAsync
Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock delay period expires.
unlockRuleAsync
in interface AmazonRecycleBinAsync
public Future<UnlockRuleResult> unlockRuleAsync(UnlockRuleRequest request, AsyncHandler<UnlockRuleRequest,UnlockRuleResult> asyncHandler)
AmazonRecycleBinAsync
Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock delay period expires.
unlockRuleAsync
in interface AmazonRecycleBinAsync
asyncHandler
- 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)
AmazonRecycleBinAsync
Unassigns a tag from a retention rule.
untagResourceAsync
in interface AmazonRecycleBinAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonRecycleBinAsync
Unassigns a tag from a retention rule.
untagResourceAsync
in interface AmazonRecycleBinAsync
asyncHandler
- 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)
AmazonRecycleBinAsync
Updates an existing Recycle Bin retention rule. You can update a retention rule's description, resource tags, and retention period at any time after creation. You can't update a retention rule's resource type after creation. For more information, see Update Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
updateRuleAsync
in interface AmazonRecycleBinAsync
public Future<UpdateRuleResult> updateRuleAsync(UpdateRuleRequest request, AsyncHandler<UpdateRuleRequest,UpdateRuleResult> asyncHandler)
AmazonRecycleBinAsync
Updates an existing Recycle Bin retention rule. You can update a retention rule's description, resource tags, and retention period at any time after creation. You can't update a retention rule's resource type after creation. For more information, see Update Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
updateRuleAsync
in interface AmazonRecycleBinAsync
asyncHandler
- 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 AmazonRecycleBin
shutdown
in class AmazonRecycleBinClient