com.amazonaws.services.recyclebin.AmazonRecycleBinAsync Maven / Gradle / Ivy
Show all versions of aws-java-sdk-recyclebin Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.recyclebin;
import javax.annotation.Generated;
import com.amazonaws.services.recyclebin.model.*;
/**
* Interface for accessing Amazon Recycle Bin asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
* {@link com.amazonaws.services.recyclebin.AbstractAmazonRecycleBinAsync} instead.
*
*
*
* 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.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public interface AmazonRecycleBinAsync extends AmazonRecycleBin {
/**
*
* Creates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
*
*
* @param createRuleRequest
* @return A Java Future containing the result of the CreateRule operation returned by the service.
* @sample AmazonRecycleBinAsync.CreateRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future createRuleAsync(CreateRuleRequest createRuleRequest);
/**
*
* Creates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
*
*
* @param createRuleRequest
* @param 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.
* @return A Java Future containing the result of the CreateRule operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.CreateRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future createRuleAsync(CreateRuleRequest createRuleRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Deletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
*
*
* @param deleteRuleRequest
* @return A Java Future containing the result of the DeleteRule operation returned by the service.
* @sample AmazonRecycleBinAsync.DeleteRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future deleteRuleAsync(DeleteRuleRequest deleteRuleRequest);
/**
*
* Deletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
*
*
* @param deleteRuleRequest
* @param 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.
* @return A Java Future containing the result of the DeleteRule operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.DeleteRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future deleteRuleAsync(DeleteRuleRequest deleteRuleRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Gets information about a Recycle Bin retention rule.
*
*
* @param getRuleRequest
* @return A Java Future containing the result of the GetRule operation returned by the service.
* @sample AmazonRecycleBinAsync.GetRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future getRuleAsync(GetRuleRequest getRuleRequest);
/**
*
* Gets information about a Recycle Bin retention rule.
*
*
* @param getRuleRequest
* @param 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.
* @return A Java Future containing the result of the GetRule operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.GetRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future getRuleAsync(GetRuleRequest getRuleRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Lists the Recycle Bin retention rules in the Region.
*
*
* @param listRulesRequest
* @return A Java Future containing the result of the ListRules operation returned by the service.
* @sample AmazonRecycleBinAsync.ListRules
* @see AWS API
* Documentation
*/
java.util.concurrent.Future listRulesAsync(ListRulesRequest listRulesRequest);
/**
*
* Lists the Recycle Bin retention rules in the Region.
*
*
* @param listRulesRequest
* @param 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.
* @return A Java Future containing the result of the ListRules operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.ListRules
* @see AWS API
* Documentation
*/
java.util.concurrent.Future listRulesAsync(ListRulesRequest listRulesRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Lists the tags assigned to a retention rule.
*
*
* @param listTagsForResourceRequest
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* @sample AmazonRecycleBinAsync.ListTagsForResource
* @see AWS API
* Documentation
*/
java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest);
/**
*
* Lists the tags assigned to a retention rule.
*
*
* @param listTagsForResourceRequest
* @param 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.
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.ListTagsForResource
* @see AWS API
* Documentation
*/
java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Locks a retention rule. A locked retention rule can't be modified or deleted.
*
*
* @param lockRuleRequest
* @return A Java Future containing the result of the LockRule operation returned by the service.
* @sample AmazonRecycleBinAsync.LockRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future lockRuleAsync(LockRuleRequest lockRuleRequest);
/**
*
* Locks a retention rule. A locked retention rule can't be modified or deleted.
*
*
* @param lockRuleRequest
* @param 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.
* @return A Java Future containing the result of the LockRule operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.LockRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future lockRuleAsync(LockRuleRequest lockRuleRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Assigns tags to the specified retention rule.
*
*
* @param tagResourceRequest
* @return A Java Future containing the result of the TagResource operation returned by the service.
* @sample AmazonRecycleBinAsync.TagResource
* @see AWS API
* Documentation
*/
java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest);
/**
*
* Assigns tags to the specified retention rule.
*
*
* @param tagResourceRequest
* @param 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.
* @return A Java Future containing the result of the TagResource operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.TagResource
* @see AWS API
* Documentation
*/
java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock
* delay period expires.
*
*
* @param unlockRuleRequest
* @return A Java Future containing the result of the UnlockRule operation returned by the service.
* @sample AmazonRecycleBinAsync.UnlockRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future unlockRuleAsync(UnlockRuleRequest unlockRuleRequest);
/**
*
* Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock
* delay period expires.
*
*
* @param unlockRuleRequest
* @param 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.
* @return A Java Future containing the result of the UnlockRule operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.UnlockRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future unlockRuleAsync(UnlockRuleRequest unlockRuleRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Unassigns a tag from a retention rule.
*
*
* @param untagResourceRequest
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* @sample AmazonRecycleBinAsync.UntagResource
* @see AWS API
* Documentation
*/
java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest);
/**
*
* Unassigns a tag from a retention rule.
*
*
* @param untagResourceRequest
* @param 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.
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.UntagResource
* @see AWS API
* Documentation
*/
java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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.
*
*
* @param updateRuleRequest
* @return A Java Future containing the result of the UpdateRule operation returned by the service.
* @sample AmazonRecycleBinAsync.UpdateRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future updateRuleAsync(UpdateRuleRequest updateRuleRequest);
/**
*
* 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.
*
*
* @param updateRuleRequest
* @param 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.
* @return A Java Future containing the result of the UpdateRule operation returned by the service.
* @sample AmazonRecycleBinAsyncHandler.UpdateRule
* @see AWS API
* Documentation
*/
java.util.concurrent.Future updateRuleAsync(UpdateRuleRequest updateRuleRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
}