Interface BackupSearchAsyncClient
- 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.
Backup Search is the recovery point and item level search for Backup.
For additional information, see:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aBackupSearchAsyncClient
.static BackupSearchAsyncClient
create()
Create aBackupSearchAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<GetSearchJobResponse> getSearchJob
(Consumer<GetSearchJobRequest.Builder> getSearchJobRequest) This operation retrieves metadata of a search job, including its progress.default CompletableFuture
<GetSearchJobResponse> getSearchJob
(GetSearchJobRequest getSearchJobRequest) This operation retrieves metadata of a search job, including its progress.getSearchResultExportJob
(Consumer<GetSearchResultExportJobRequest.Builder> getSearchResultExportJobRequest) This operation retrieves the metadata of an export job.getSearchResultExportJob
(GetSearchResultExportJobRequest getSearchResultExportJobRequest) This operation retrieves the metadata of an export job.listSearchJobBackups
(Consumer<ListSearchJobBackupsRequest.Builder> listSearchJobBackupsRequest) This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.listSearchJobBackups
(ListSearchJobBackupsRequest listSearchJobBackupsRequest) This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.default ListSearchJobBackupsPublisher
listSearchJobBackupsPaginator
(Consumer<ListSearchJobBackupsRequest.Builder> listSearchJobBackupsRequest) This is a variant oflistSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)
operation.default ListSearchJobBackupsPublisher
listSearchJobBackupsPaginator
(ListSearchJobBackupsRequest listSearchJobBackupsRequest) This is a variant oflistSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)
operation.listSearchJobResults
(Consumer<ListSearchJobResultsRequest.Builder> listSearchJobResultsRequest) This operation returns a list of a specified search job.listSearchJobResults
(ListSearchJobResultsRequest listSearchJobResultsRequest) This operation returns a list of a specified search job.default ListSearchJobResultsPublisher
listSearchJobResultsPaginator
(Consumer<ListSearchJobResultsRequest.Builder> listSearchJobResultsRequest) This is a variant oflistSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)
operation.default ListSearchJobResultsPublisher
listSearchJobResultsPaginator
(ListSearchJobResultsRequest listSearchJobResultsRequest) This is a variant oflistSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)
operation.default CompletableFuture
<ListSearchJobsResponse> listSearchJobs
(Consumer<ListSearchJobsRequest.Builder> listSearchJobsRequest) This operation returns a list of search jobs belonging to an account.default CompletableFuture
<ListSearchJobsResponse> listSearchJobs
(ListSearchJobsRequest listSearchJobsRequest) This operation returns a list of search jobs belonging to an account.default ListSearchJobsPublisher
listSearchJobsPaginator
(Consumer<ListSearchJobsRequest.Builder> listSearchJobsRequest) This is a variant oflistSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)
operation.default ListSearchJobsPublisher
listSearchJobsPaginator
(ListSearchJobsRequest listSearchJobsRequest) This is a variant oflistSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)
operation.listSearchResultExportJobs
(Consumer<ListSearchResultExportJobsRequest.Builder> listSearchResultExportJobsRequest) This operation exports search results of a search job to a specified destination S3 bucket.listSearchResultExportJobs
(ListSearchResultExportJobsRequest listSearchResultExportJobsRequest) This operation exports search results of a search job to a specified destination S3 bucket.listSearchResultExportJobsPaginator
(Consumer<ListSearchResultExportJobsRequest.Builder> listSearchResultExportJobsRequest) This is a variant oflistSearchResultExportJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsRequest)
operation.listSearchResultExportJobsPaginator
(ListSearchResultExportJobsRequest listSearchResultExportJobsRequest) This is a variant oflistSearchResultExportJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) This operation returns the tags for a resource type.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) This operation returns the tags for a resource type.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<StartSearchJobResponse> startSearchJob
(Consumer<StartSearchJobRequest.Builder> startSearchJobRequest) This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.default CompletableFuture
<StartSearchJobResponse> startSearchJob
(StartSearchJobRequest startSearchJobRequest) This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.startSearchResultExportJob
(Consumer<StartSearchResultExportJobRequest.Builder> startSearchResultExportJobRequest) This operations starts a job to export the results of search job to a designated S3 bucket.startSearchResultExportJob
(StartSearchResultExportJobRequest startSearchResultExportJobRequest) This operations starts a job to export the results of search job to a designated S3 bucket.default CompletableFuture
<StopSearchJobResponse> stopSearchJob
(Consumer<StopSearchJobRequest.Builder> stopSearchJobRequest) This operations ends a search job.default CompletableFuture
<StopSearchJobResponse> stopSearchJob
(StopSearchJobRequest stopSearchJobRequest) This operations ends a search job.default CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) This operation puts tags on the resource you indicate.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) This operation puts tags on the resource you indicate.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) This operation removes tags from the specified resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) This operation removes tags from the specified resource.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
getSearchJob
default CompletableFuture<GetSearchJobResponse> getSearchJob(GetSearchJobRequest getSearchJobRequest) This operation retrieves metadata of a search job, including its progress.
- Parameters:
getSearchJobRequest
-- Returns:
- A Java Future containing the result of the GetSearchJob 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
getSearchJob
default CompletableFuture<GetSearchJobResponse> getSearchJob(Consumer<GetSearchJobRequest.Builder> getSearchJobRequest) This operation retrieves metadata of a search job, including its progress.
This is a convenience which creates an instance of the
GetSearchJobRequest.Builder
avoiding the need to create one manually viaGetSearchJobRequest.builder()
- Parameters:
getSearchJobRequest
- AConsumer
that will call methods onGetSearchJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetSearchJob 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
getSearchResultExportJob
default CompletableFuture<GetSearchResultExportJobResponse> getSearchResultExportJob(GetSearchResultExportJobRequest getSearchResultExportJobRequest) This operation retrieves the metadata of an export job.
An export job is an operation that transmits the results of a search job to a specified S3 bucket in a .csv file.
An export job allows you to retain results of a search beyond the search job's scheduled retention of 7 days.
- Parameters:
getSearchResultExportJobRequest
-- Returns:
- A Java Future containing the result of the GetSearchResultExportJob 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
getSearchResultExportJob
default CompletableFuture<GetSearchResultExportJobResponse> getSearchResultExportJob(Consumer<GetSearchResultExportJobRequest.Builder> getSearchResultExportJobRequest) This operation retrieves the metadata of an export job.
An export job is an operation that transmits the results of a search job to a specified S3 bucket in a .csv file.
An export job allows you to retain results of a search beyond the search job's scheduled retention of 7 days.
This is a convenience which creates an instance of the
GetSearchResultExportJobRequest.Builder
avoiding the need to create one manually viaGetSearchResultExportJobRequest.builder()
- Parameters:
getSearchResultExportJobRequest
- AConsumer
that will call methods onGetSearchResultExportJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetSearchResultExportJob 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobBackups
default CompletableFuture<ListSearchJobBackupsResponse> listSearchJobBackups(ListSearchJobBackupsRequest listSearchJobBackupsRequest) This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.
If a search does not display an expected backup in the results, you can call this operation to display each backup included in the search. Any backups that were not included because they have a
FAILED
status from a permissions issue will be displayed, along with a status message.Only recovery points with a backup index that has a status of
ACTIVE
will be included in search results. If the index has any other status, its status will be displayed along with a status message.- Parameters:
listSearchJobBackupsRequest
-- Returns:
- A Java Future containing the result of the ListSearchJobBackups 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobBackups
default CompletableFuture<ListSearchJobBackupsResponse> listSearchJobBackups(Consumer<ListSearchJobBackupsRequest.Builder> listSearchJobBackupsRequest) This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.
If a search does not display an expected backup in the results, you can call this operation to display each backup included in the search. Any backups that were not included because they have a
FAILED
status from a permissions issue will be displayed, along with a status message.Only recovery points with a backup index that has a status of
ACTIVE
will be included in search results. If the index has any other status, its status will be displayed along with a status message.
This is a convenience which creates an instance of the
ListSearchJobBackupsRequest.Builder
avoiding the need to create one manually viaListSearchJobBackupsRequest.builder()
- Parameters:
listSearchJobBackupsRequest
- AConsumer
that will call methods onListSearchJobBackupsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListSearchJobBackups 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobBackupsPaginator
default ListSearchJobBackupsPublisher listSearchJobBackupsPaginator(ListSearchJobBackupsRequest listSearchJobBackupsRequest) This is a variant of
listSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)
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 newSubscription
i.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 methodsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsPublisher publisher = client.listSearchJobBackupsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsPublisher publisher = client.listSearchJobBackupsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsResponse 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
listSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)
operation.- Parameters:
listSearchJobBackupsRequest
-- 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobBackupsPaginator
default ListSearchJobBackupsPublisher listSearchJobBackupsPaginator(Consumer<ListSearchJobBackupsRequest.Builder> listSearchJobBackupsRequest) This is a variant of
listSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)
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 newSubscription
i.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 methodsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsPublisher publisher = client.listSearchJobBackupsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsPublisher publisher = client.listSearchJobBackupsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsResponse 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
listSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)
operation.
This is a convenience which creates an instance of the
ListSearchJobBackupsRequest.Builder
avoiding the need to create one manually viaListSearchJobBackupsRequest.builder()
- Parameters:
listSearchJobBackupsRequest
- AConsumer
that will call methods onListSearchJobBackupsRequest.Builder
to 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobResults
default CompletableFuture<ListSearchJobResultsResponse> listSearchJobResults(ListSearchJobResultsRequest listSearchJobResultsRequest) This operation returns a list of a specified search job.
- Parameters:
listSearchJobResultsRequest
-- Returns:
- A Java Future containing the result of the ListSearchJobResults 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobResults
default CompletableFuture<ListSearchJobResultsResponse> listSearchJobResults(Consumer<ListSearchJobResultsRequest.Builder> listSearchJobResultsRequest) This operation returns a list of a specified search job.
This is a convenience which creates an instance of the
ListSearchJobResultsRequest.Builder
avoiding the need to create one manually viaListSearchJobResultsRequest.builder()
- Parameters:
listSearchJobResultsRequest
- AConsumer
that will call methods onListSearchJobResultsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListSearchJobResults 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobResultsPaginator
default ListSearchJobResultsPublisher listSearchJobResultsPaginator(ListSearchJobResultsRequest listSearchJobResultsRequest) This is a variant of
listSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)
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 newSubscription
i.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 methodsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsPublisher publisher = client.listSearchJobResultsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsPublisher publisher = client.listSearchJobResultsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsResponse 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
listSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)
operation.- Parameters:
listSearchJobResultsRequest
-- 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobResultsPaginator
default ListSearchJobResultsPublisher listSearchJobResultsPaginator(Consumer<ListSearchJobResultsRequest.Builder> listSearchJobResultsRequest) This is a variant of
listSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)
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 newSubscription
i.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 methodsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsPublisher publisher = client.listSearchJobResultsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsPublisher publisher = client.listSearchJobResultsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsResponse 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
listSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)
operation.
This is a convenience which creates an instance of the
ListSearchJobResultsRequest.Builder
avoiding the need to create one manually viaListSearchJobResultsRequest.builder()
- Parameters:
listSearchJobResultsRequest
- AConsumer
that will call methods onListSearchJobResultsRequest.Builder
to 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchJobs
default CompletableFuture<ListSearchJobsResponse> listSearchJobs(ListSearchJobsRequest listSearchJobsRequest) This operation returns a list of search jobs belonging to an account.
- Parameters:
listSearchJobsRequest
-- Returns:
- A Java Future containing the result of the ListSearchJobs 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.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSearchJobs
default CompletableFuture<ListSearchJobsResponse> listSearchJobs(Consumer<ListSearchJobsRequest.Builder> listSearchJobsRequest) This operation returns a list of search jobs belonging to an account.
This is a convenience which creates an instance of the
ListSearchJobsRequest.Builder
avoiding the need to create one manually viaListSearchJobsRequest.builder()
- Parameters:
listSearchJobsRequest
- AConsumer
that will call methods onListSearchJobsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListSearchJobs 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.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSearchJobsPaginator
default ListSearchJobsPublisher listSearchJobsPaginator(ListSearchJobsRequest listSearchJobsRequest) This is a variant of
listSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)
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 newSubscription
i.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 methodsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsPublisher publisher = client.listSearchJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsPublisher publisher = client.listSearchJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupsearch.model.ListSearchJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsResponse 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
listSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)
operation.- Parameters:
listSearchJobsRequest
-- 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.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSearchJobsPaginator
default ListSearchJobsPublisher listSearchJobsPaginator(Consumer<ListSearchJobsRequest.Builder> listSearchJobsRequest) This is a variant of
listSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)
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 newSubscription
i.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 methodsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsPublisher publisher = client.listSearchJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsPublisher publisher = client.listSearchJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupsearch.model.ListSearchJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsResponse 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
listSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)
operation.
This is a convenience which creates an instance of the
ListSearchJobsRequest.Builder
avoiding the need to create one manually viaListSearchJobsRequest.builder()
- Parameters:
listSearchJobsRequest
- AConsumer
that will call methods onListSearchJobsRequest.Builder
to 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.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSearchResultExportJobs
default CompletableFuture<ListSearchResultExportJobsResponse> listSearchResultExportJobs(ListSearchResultExportJobsRequest listSearchResultExportJobsRequest) This operation exports search results of a search job to a specified destination S3 bucket.
- Parameters:
listSearchResultExportJobsRequest
-- Returns:
- A Java Future containing the result of the ListSearchResultExportJobs 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The request denied due to exceeding the quota limits permitted.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchResultExportJobs
default CompletableFuture<ListSearchResultExportJobsResponse> listSearchResultExportJobs(Consumer<ListSearchResultExportJobsRequest.Builder> listSearchResultExportJobsRequest) This operation exports search results of a search job to a specified destination S3 bucket.
This is a convenience which creates an instance of the
ListSearchResultExportJobsRequest.Builder
avoiding the need to create one manually viaListSearchResultExportJobsRequest.builder()
- Parameters:
listSearchResultExportJobsRequest
- AConsumer
that will call methods onListSearchResultExportJobsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListSearchResultExportJobs 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The request denied due to exceeding the quota limits permitted.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchResultExportJobsPaginator
default ListSearchResultExportJobsPublisher listSearchResultExportJobsPaginator(ListSearchResultExportJobsRequest listSearchResultExportJobsRequest) This is a variant of
listSearchResultExportJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsRequest)
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 newSubscription
i.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 methodsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsPublisher publisher = client.listSearchResultExportJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsPublisher publisher = client.listSearchResultExportJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsResponse 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
listSearchResultExportJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsRequest)
operation.- Parameters:
listSearchResultExportJobsRequest
-- 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The request denied due to exceeding the quota limits permitted.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listSearchResultExportJobsPaginator
default ListSearchResultExportJobsPublisher listSearchResultExportJobsPaginator(Consumer<ListSearchResultExportJobsRequest.Builder> listSearchResultExportJobsRequest) This is a variant of
listSearchResultExportJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsRequest)
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 newSubscription
i.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 methodsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsPublisher publisher = client.listSearchResultExportJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsPublisher publisher = client.listSearchResultExportJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsResponse 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
listSearchResultExportJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsRequest)
operation.
This is a convenience which creates an instance of the
ListSearchResultExportJobsRequest.Builder
avoiding the need to create one manually viaListSearchResultExportJobsRequest.builder()
- Parameters:
listSearchResultExportJobsRequest
- AConsumer
that will call methods onListSearchResultExportJobsRequest.Builder
to 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The request denied due to exceeding the quota limits permitted.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) This operation returns the tags for a resource type.
- 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) This operation returns the tags for a resource type.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
startSearchJob
default CompletableFuture<StartSearchJobResponse> startSearchJob(StartSearchJobRequest startSearchJobRequest) This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.
You can optionally include ClientToken, EncryptionKeyArn, Name, and/or Tags.
- Parameters:
startSearchJobRequest
-- Returns:
- A Java Future containing the result of the StartSearchJob 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.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The request denied due to exceeding the quota limits permitted.
- ConflictException This exception occurs when a conflict with a previous successful operation is
detected. This generally occurs when the previous operation did not have time to propagate to the host
serving the current request.
A retry (with appropriate backoff logic) is the recommended response to this exception.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startSearchJob
default CompletableFuture<StartSearchJobResponse> startSearchJob(Consumer<StartSearchJobRequest.Builder> startSearchJobRequest) This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.
You can optionally include ClientToken, EncryptionKeyArn, Name, and/or Tags.
This is a convenience which creates an instance of the
StartSearchJobRequest.Builder
avoiding the need to create one manually viaStartSearchJobRequest.builder()
- Parameters:
startSearchJobRequest
- AConsumer
that will call methods onStartSearchJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartSearchJob 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.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The request denied due to exceeding the quota limits permitted.
- ConflictException This exception occurs when a conflict with a previous successful operation is
detected. This generally occurs when the previous operation did not have time to propagate to the host
serving the current request.
A retry (with appropriate backoff logic) is the recommended response to this exception.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startSearchResultExportJob
default CompletableFuture<StartSearchResultExportJobResponse> startSearchResultExportJob(StartSearchResultExportJobRequest startSearchResultExportJobRequest) This operations starts a job to export the results of search job to a designated S3 bucket.
- Parameters:
startSearchResultExportJobRequest
-- Returns:
- A Java Future containing the result of the StartSearchResultExportJob 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The request denied due to exceeding the quota limits permitted.
- ConflictException This exception occurs when a conflict with a previous successful operation is
detected. This generally occurs when the previous operation did not have time to propagate to the host
serving the current request.
A retry (with appropriate backoff logic) is the recommended response to this exception.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
startSearchResultExportJob
default CompletableFuture<StartSearchResultExportJobResponse> startSearchResultExportJob(Consumer<StartSearchResultExportJobRequest.Builder> startSearchResultExportJobRequest) This operations starts a job to export the results of search job to a designated S3 bucket.
This is a convenience which creates an instance of the
StartSearchResultExportJobRequest.Builder
avoiding the need to create one manually viaStartSearchResultExportJobRequest.builder()
- Parameters:
startSearchResultExportJobRequest
- AConsumer
that will call methods onStartSearchResultExportJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartSearchResultExportJob 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The request denied due to exceeding the quota limits permitted.
- ConflictException This exception occurs when a conflict with a previous successful operation is
detected. This generally occurs when the previous operation did not have time to propagate to the host
serving the current request.
A retry (with appropriate backoff logic) is the recommended response to this exception.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
stopSearchJob
default CompletableFuture<StopSearchJobResponse> stopSearchJob(StopSearchJobRequest stopSearchJobRequest) This operations ends a search job.
Only a search job with a status of
RUNNING
can be stopped.- Parameters:
stopSearchJobRequest
-- Returns:
- A Java Future containing the result of the StopSearchJob 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ConflictException This exception occurs when a conflict with a previous successful operation is
detected. This generally occurs when the previous operation did not have time to propagate to the host
serving the current request.
A retry (with appropriate backoff logic) is the recommended response to this exception.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
stopSearchJob
default CompletableFuture<StopSearchJobResponse> stopSearchJob(Consumer<StopSearchJobRequest.Builder> stopSearchJobRequest) This operations ends a search job.
Only a search job with a status of
RUNNING
can be stopped.
This is a convenience which creates an instance of the
StopSearchJobRequest.Builder
avoiding the need to create one manually viaStopSearchJobRequest.builder()
- Parameters:
stopSearchJobRequest
- AConsumer
that will call methods onStopSearchJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StopSearchJob 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- ConflictException This exception occurs when a conflict with a previous successful operation is
detected. This generally occurs when the previous operation did not have time to propagate to the host
serving the current request.
A retry (with appropriate backoff logic) is the recommended response to this exception.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
tagResource
This operation puts tags on the resource you indicate.
- 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) This operation puts tags on the resource you indicate.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) This operation removes tags from the specified resource.
- 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) This operation removes tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to 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.- ResourceNotFoundException The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by a service.
- InternalServerException An internal server error occurred. Retry your request.
- 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.
- BackupSearchException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ResourceNotFoundException The resource was not found for this request.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aBackupSearchAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aBackupSearchAsyncClient
.
-