Interface RbinAsyncClient
- All Superinterfaces:
- AutoCloseable,- AwsClient,- SdkAutoCloseable,- SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
 SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
 perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
 call.
 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.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String
- 
Method SummaryModifier and TypeMethodDescriptionstatic RbinAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aRbinAsyncClient.static RbinAsyncClientcreate()Create aRbinAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateRuleResponse> createRule(Consumer<CreateRuleRequest.Builder> createRuleRequest) Creates a Recycle Bin retention rule.default CompletableFuture<CreateRuleResponse> createRule(CreateRuleRequest createRuleRequest) Creates a Recycle Bin retention rule.default CompletableFuture<DeleteRuleResponse> deleteRule(Consumer<DeleteRuleRequest.Builder> deleteRuleRequest) Deletes a Recycle Bin retention rule.default CompletableFuture<DeleteRuleResponse> deleteRule(DeleteRuleRequest deleteRuleRequest) Deletes a Recycle Bin retention rule.default CompletableFuture<GetRuleResponse> getRule(Consumer<GetRuleRequest.Builder> getRuleRequest) Gets information about a Recycle Bin retention rule.default CompletableFuture<GetRuleResponse> getRule(GetRuleRequest getRuleRequest) Gets information about a Recycle Bin retention rule.default CompletableFuture<ListRulesResponse> listRules(Consumer<ListRulesRequest.Builder> listRulesRequest) Lists the Recycle Bin retention rules in the Region.default CompletableFuture<ListRulesResponse> listRules(ListRulesRequest listRulesRequest) Lists the Recycle Bin retention rules in the Region.default ListRulesPublisherlistRulesPaginator(Consumer<ListRulesRequest.Builder> listRulesRequest) This is a variant oflistRules(software.amazon.awssdk.services.rbin.model.ListRulesRequest)operation.default ListRulesPublisherlistRulesPaginator(ListRulesRequest listRulesRequest) This is a variant oflistRules(software.amazon.awssdk.services.rbin.model.ListRulesRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags assigned to a retention rule.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags assigned to a retention rule.default CompletableFuture<LockRuleResponse> lockRule(Consumer<LockRuleRequest.Builder> lockRuleRequest) Locks a Region-level retention rule.default CompletableFuture<LockRuleResponse> lockRule(LockRuleRequest lockRuleRequest) Locks a Region-level retention rule.default RbinServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Assigns tags to the specified retention rule.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Assigns tags to the specified retention rule.default CompletableFuture<UnlockRuleResponse> unlockRule(Consumer<UnlockRuleRequest.Builder> unlockRuleRequest) Unlocks a retention rule.default CompletableFuture<UnlockRuleResponse> unlockRule(UnlockRuleRequest unlockRuleRequest) Unlocks a retention rule.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Unassigns a tag from a retention rule.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Unassigns a tag from a retention rule.default CompletableFuture<UpdateRuleResponse> updateRule(Consumer<UpdateRuleRequest.Builder> updateRuleRequest) Updates an existing Recycle Bin retention rule.default CompletableFuture<UpdateRuleResponse> updateRule(UpdateRuleRequest updateRuleRequest) Updates an existing Recycle Bin retention rule.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseablecloseMethods inherited from interface software.amazon.awssdk.core.SdkClientserviceName
- 
Field Details- 
SERVICE_NAME- See Also:
 
- 
SERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.- See Also:
 
 
- 
- 
Method Details- 
createRuleCreates a Recycle Bin retention rule. You can create two types of retention rules: - 
 Tag-level retention rules - These retention rules use resource tags to identify the resources to protect. For each retention rule, you specify one or more tag key and value pairs. Resources (of the specified type) that have at least one of these tag key and value pairs are automatically retained in the Recycle Bin upon deletion. Use this type of retention rule to protect specific resources in your account based on their tags. 
- 
 Region-level retention rules - These retention rules, by default, apply to all of the resources (of the specified type) in the Region, even if the resources are not tagged. However, you can specify exclusion tags to exclude resources that have specific tags. Use this type of retention rule to protect all resources of a specific type in a Region. 
 For more information, see Create Recycle Bin retention rules in the Amazon EBS User Guide. - Parameters:
- createRuleRequest-
- Returns:
- A Java Future containing the result of the CreateRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
- InternalServerException The service could not respond to the request due to an internal problem.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
 
- 
createRuledefault CompletableFuture<CreateRuleResponse> createRule(Consumer<CreateRuleRequest.Builder> createRuleRequest) Creates a Recycle Bin retention rule. You can create two types of retention rules: - 
 Tag-level retention rules - These retention rules use resource tags to identify the resources to protect. For each retention rule, you specify one or more tag key and value pairs. Resources (of the specified type) that have at least one of these tag key and value pairs are automatically retained in the Recycle Bin upon deletion. Use this type of retention rule to protect specific resources in your account based on their tags. 
- 
 Region-level retention rules - These retention rules, by default, apply to all of the resources (of the specified type) in the Region, even if the resources are not tagged. However, you can specify exclusion tags to exclude resources that have specific tags. Use this type of retention rule to protect all resources of a specific type in a Region. 
 For more information, see Create Recycle Bin retention rules in the Amazon EBS User Guide. 
 This is a convenience which creates an instance of the CreateRuleRequest.Builderavoiding the need to create one manually viaCreateRuleRequest.builder()- Parameters:
- createRuleRequest- A- Consumerthat will call methods on- CreateRuleRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the CreateRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
- InternalServerException The service could not respond to the request due to an internal problem.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
 
- 
deleteRuleDeletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide. - Parameters:
- deleteRuleRequest-
- Returns:
- A Java Future containing the result of the DeleteRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ValidationException One or more of the parameters in the request is not valid.
- ConflictException The specified retention rule lock request can't be completed.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
deleteRuledefault CompletableFuture<DeleteRuleResponse> deleteRule(Consumer<DeleteRuleRequest.Builder> deleteRuleRequest) Deletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide. 
 This is a convenience which creates an instance of the DeleteRuleRequest.Builderavoiding the need to create one manually viaDeleteRuleRequest.builder()- Parameters:
- deleteRuleRequest- A- Consumerthat will call methods on- DeleteRuleRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the DeleteRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ValidationException One or more of the parameters in the request is not valid.
- ConflictException The specified retention rule lock request can't be completed.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
getRuleGets information about a Recycle Bin retention rule. - Parameters:
- getRuleRequest-
- Returns:
- A Java Future containing the result of the GetRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
getRuleGets information about a Recycle Bin retention rule. 
 This is a convenience which creates an instance of the GetRuleRequest.Builderavoiding the need to create one manually viaGetRuleRequest.builder()- Parameters:
- getRuleRequest- A- Consumerthat will call methods on- GetRuleRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the GetRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
listRulesLists the Recycle Bin retention rules in the Region. - Parameters:
- listRulesRequest-
- Returns:
- A Java Future containing the result of the ListRules operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
listRulesdefault CompletableFuture<ListRulesResponse> listRules(Consumer<ListRulesRequest.Builder> listRulesRequest) Lists the Recycle Bin retention rules in the Region. 
 This is a convenience which creates an instance of the ListRulesRequest.Builderavoiding the need to create one manually viaListRulesRequest.builder()- Parameters:
- listRulesRequest- A- Consumerthat will call methods on- ListRulesRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the ListRules operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
listRulesPaginatorThis is a variant of listRules(software.amazon.awssdk.services.rbin.model.ListRulesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class: 1) Using the subscribe helper method
 2) Using a custom subscribersoftware.amazon.awssdk.services.rbin.paginators.ListRulesPublisher publisher = client.listRulesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
 As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.rbin.paginators.ListRulesPublisher publisher = client.listRulesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rbin.model.ListRulesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.rbin.model.ListRulesResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listRules(software.amazon.awssdk.services.rbin.model.ListRulesRequest)operation.- Parameters:
- listRulesRequest-
- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
listRulesPaginatorThis is a variant of listRules(software.amazon.awssdk.services.rbin.model.ListRulesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class: 1) Using the subscribe helper method
 2) Using a custom subscribersoftware.amazon.awssdk.services.rbin.paginators.ListRulesPublisher publisher = client.listRulesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
 As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.rbin.paginators.ListRulesPublisher publisher = client.listRulesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rbin.model.ListRulesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.rbin.model.ListRulesResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listRules(software.amazon.awssdk.services.rbin.model.ListRulesRequest)operation.
 This is a convenience which creates an instance of the ListRulesRequest.Builderavoiding the need to create one manually viaListRulesRequest.builder()- Parameters:
- listRulesRequest- A- Consumerthat will call methods on- ListRulesRequest.Builderto create a request.
- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
listTagsForResourcedefault CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags assigned to a retention rule. - Parameters:
- listTagsForResourceRequest-
- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
listTagsForResourcedefault CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags assigned to a retention rule. 
 This is a convenience which creates an instance of the ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
- listTagsForResourceRequest- A- Consumerthat will call methods on- ListTagsForResourceRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
lockRuleLocks a Region-level retention rule. A locked retention rule can't be modified or deleted. You can't lock tag-level retention rules, or Region-level retention rules that have exclusion tags. - Parameters:
- lockRuleRequest-
- Returns:
- A Java Future containing the result of the LockRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ValidationException One or more of the parameters in the request is not valid.
- ConflictException The specified retention rule lock request can't be completed.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
lockRuledefault CompletableFuture<LockRuleResponse> lockRule(Consumer<LockRuleRequest.Builder> lockRuleRequest) Locks a Region-level retention rule. A locked retention rule can't be modified or deleted. You can't lock tag-level retention rules, or Region-level retention rules that have exclusion tags. 
 This is a convenience which creates an instance of the LockRuleRequest.Builderavoiding the need to create one manually viaLockRuleRequest.builder()- Parameters:
- lockRuleRequest- A- Consumerthat will call methods on- LockRuleRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the LockRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ValidationException One or more of the parameters in the request is not valid.
- ConflictException The specified retention rule lock request can't be completed.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
tagResourceAssigns tags to the specified retention rule. - Parameters:
- tagResourceRequest-
- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
tagResourcedefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Assigns tags to the specified retention rule. 
 This is a convenience which creates an instance of the TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
- tagResourceRequest- A- Consumerthat will call methods on- TagResourceRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
unlockRuleUnlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock delay period expires. - Parameters:
- unlockRuleRequest-
- Returns:
- A Java Future containing the result of the UnlockRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ValidationException One or more of the parameters in the request is not valid.
- ConflictException The specified retention rule lock request can't be completed.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
unlockRuledefault CompletableFuture<UnlockRuleResponse> unlockRule(Consumer<UnlockRuleRequest.Builder> unlockRuleRequest) Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock delay period expires. 
 This is a convenience which creates an instance of the UnlockRuleRequest.Builderavoiding the need to create one manually viaUnlockRuleRequest.builder()- Parameters:
- unlockRuleRequest- A- Consumerthat will call methods on- UnlockRuleRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the UnlockRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ValidationException One or more of the parameters in the request is not valid.
- ConflictException The specified retention rule lock request can't be completed.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
untagResourcedefault CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Unassigns a tag from a retention rule. - Parameters:
- untagResourceRequest-
- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
untagResourcedefault CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Unassigns a tag from a retention rule. 
 This is a convenience which creates an instance of the UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
- untagResourceRequest- A- Consumerthat will call methods on- UntagResourceRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
updateRuleUpdates 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. - Parameters:
- updateRuleRequest-
- Returns:
- A Java Future containing the result of the UpdateRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ConflictException The specified retention rule lock request can't be completed.
- ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
updateRuledefault CompletableFuture<UpdateRuleResponse> updateRule(Consumer<UpdateRuleRequest.Builder> 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. 
 This is a convenience which creates an instance of the UpdateRuleRequest.Builderavoiding the need to create one manually viaUpdateRuleRequest.builder()- Parameters:
- updateRuleRequest- A- Consumerthat will call methods on- UpdateRuleRequest.Builderto create a request.
- Returns:
- A Java Future containing the result of the UpdateRule operation returned by the service.
 The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException One or more of the parameters in the request is not valid.
- InternalServerException The service could not respond to the request due to an internal problem.
- ResourceNotFoundException The specified resource was not found.
- ConflictException The specified retention rule lock request can't be completed.
- ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RbinException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
 
- See Also:
 
- 
serviceClientConfigurationDescription copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
- serviceClientConfigurationin interface- AwsClient
- Specified by:
- serviceClientConfigurationin interface- SdkClient
- Returns:
- SdkServiceClientConfiguration
 
- 
createCreate aRbinAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
- 
builderCreate a builder that can be used to configure and create aRbinAsyncClient.
 
-