Interface BackupSearchClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Backup Search is the recovery point and item level search for Backup.
For additional information, see:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic BackupSearchClientBuilderbuilder()Create a builder that can be used to configure and create aBackupSearchClient.static BackupSearchClientcreate()Create aBackupSearchClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default GetSearchJobResponsegetSearchJob(Consumer<GetSearchJobRequest.Builder> getSearchJobRequest) This operation retrieves metadata of a search job, including its progress.default GetSearchJobResponsegetSearchJob(GetSearchJobRequest getSearchJobRequest) This operation retrieves metadata of a search job, including its progress.default GetSearchResultExportJobResponsegetSearchResultExportJob(Consumer<GetSearchResultExportJobRequest.Builder> getSearchResultExportJobRequest) This operation retrieves the metadata of an export job.default GetSearchResultExportJobResponsegetSearchResultExportJob(GetSearchResultExportJobRequest getSearchResultExportJobRequest) This operation retrieves the metadata of an export job.default ListSearchJobBackupsResponselistSearchJobBackups(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.default ListSearchJobBackupsResponselistSearchJobBackups(ListSearchJobBackupsRequest listSearchJobBackupsRequest) This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.default ListSearchJobBackupsIterablelistSearchJobBackupsPaginator(Consumer<ListSearchJobBackupsRequest.Builder> listSearchJobBackupsRequest) This is a variant oflistSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)operation.default ListSearchJobBackupsIterablelistSearchJobBackupsPaginator(ListSearchJobBackupsRequest listSearchJobBackupsRequest) This is a variant oflistSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)operation.default ListSearchJobResultsResponselistSearchJobResults(Consumer<ListSearchJobResultsRequest.Builder> listSearchJobResultsRequest) This operation returns a list of a specified search job.default ListSearchJobResultsResponselistSearchJobResults(ListSearchJobResultsRequest listSearchJobResultsRequest) This operation returns a list of a specified search job.default ListSearchJobResultsIterablelistSearchJobResultsPaginator(Consumer<ListSearchJobResultsRequest.Builder> listSearchJobResultsRequest) This is a variant oflistSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)operation.default ListSearchJobResultsIterablelistSearchJobResultsPaginator(ListSearchJobResultsRequest listSearchJobResultsRequest) This is a variant oflistSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)operation.default ListSearchJobsResponselistSearchJobs(Consumer<ListSearchJobsRequest.Builder> listSearchJobsRequest) This operation returns a list of search jobs belonging to an account.default ListSearchJobsResponselistSearchJobs(ListSearchJobsRequest listSearchJobsRequest) This operation returns a list of search jobs belonging to an account.default ListSearchJobsIterablelistSearchJobsPaginator(Consumer<ListSearchJobsRequest.Builder> listSearchJobsRequest) This is a variant oflistSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)operation.default ListSearchJobsIterablelistSearchJobsPaginator(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.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) This operation returns the tags for a resource type.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) This operation returns the tags for a resource type.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartSearchJobResponsestartSearchJob(Consumer<StartSearchJobRequest.Builder> startSearchJobRequest) This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.default StartSearchJobResponsestartSearchJob(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 StopSearchJobResponsestopSearchJob(Consumer<StopSearchJobRequest.Builder> stopSearchJobRequest) This operations ends a search job.default StopSearchJobResponsestopSearchJob(StopSearchJobRequest stopSearchJobRequest) This operations ends a search job.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) This operation puts tags on the resource you indicate.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) This operation puts tags on the resource you indicate.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) This operation removes tags from the specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) This operation removes tags from the specified resource.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods 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 GetSearchJobResponse getSearchJob(GetSearchJobRequest getSearchJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation retrieves metadata of a search job, including its progress.
- Parameters:
getSearchJobRequest-- Returns:
- Result of the GetSearchJob operation returned by the service.
- See Also:
-
getSearchJob
default GetSearchJobResponse getSearchJob(Consumer<GetSearchJobRequest.Builder> getSearchJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation retrieves metadata of a search job, including its progress.
This is a convenience which creates an instance of the
GetSearchJobRequest.Builderavoiding the need to create one manually viaGetSearchJobRequest.builder()- Parameters:
getSearchJobRequest- AConsumerthat will call methods onGetSearchJobRequest.Builderto create a request.- Returns:
- Result of the GetSearchJob operation returned by the service.
- See Also:
-
getSearchResultExportJob
default GetSearchResultExportJobResponse getSearchResultExportJob(GetSearchResultExportJobRequest getSearchResultExportJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException 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:
- Result of the GetSearchResultExportJob operation returned by the service.
- See Also:
-
getSearchResultExportJob
default GetSearchResultExportJobResponse getSearchResultExportJob(Consumer<GetSearchResultExportJobRequest.Builder> getSearchResultExportJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException 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.Builderavoiding the need to create one manually viaGetSearchResultExportJobRequest.builder()- Parameters:
getSearchResultExportJobRequest- AConsumerthat will call methods onGetSearchResultExportJobRequest.Builderto create a request.- Returns:
- Result of the GetSearchResultExportJob operation returned by the service.
- See Also:
-
listSearchJobBackups
default ListSearchJobBackupsResponse listSearchJobBackups(ListSearchJobBackupsRequest listSearchJobBackupsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException 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
FAILEDstatus from a permissions issue will be displayed, along with a status message.Only recovery points with a backup index that has a status of
ACTIVEwill 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:
- Result of the ListSearchJobBackups operation returned by the service.
- See Also:
-
listSearchJobBackups
default ListSearchJobBackupsResponse listSearchJobBackups(Consumer<ListSearchJobBackupsRequest.Builder> listSearchJobBackupsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException 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
FAILEDstatus from a permissions issue will be displayed, along with a status message.Only recovery points with a backup index that has a status of
ACTIVEwill 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.Builderavoiding the need to create one manually viaListSearchJobBackupsRequest.builder()- Parameters:
listSearchJobBackupsRequest- AConsumerthat will call methods onListSearchJobBackupsRequest.Builderto create a request.- Returns:
- Result of the ListSearchJobBackups operation returned by the service.
- See Also:
-
listSearchJobBackupsPaginator
default ListSearchJobBackupsIterable listSearchJobBackupsPaginator(ListSearchJobBackupsRequest listSearchJobBackupsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This is a variant of
listSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsIterable responses = client.listSearchJobBackupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsIterable responses = client .listSearchJobBackupsPaginator(request); for (software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsIterable responses = client.listSearchJobBackupsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSearchJobBackupsPaginator
default ListSearchJobBackupsIterable listSearchJobBackupsPaginator(Consumer<ListSearchJobBackupsRequest.Builder> listSearchJobBackupsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This is a variant of
listSearchJobBackups(software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsIterable responses = client.listSearchJobBackupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsIterable responses = client .listSearchJobBackupsPaginator(request); for (software.amazon.awssdk.services.backupsearch.model.ListSearchJobBackupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobBackupsIterable responses = client.listSearchJobBackupsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListSearchJobBackupsRequest.builder()- Parameters:
listSearchJobBackupsRequest- AConsumerthat will call methods onListSearchJobBackupsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSearchJobResults
default ListSearchJobResultsResponse listSearchJobResults(ListSearchJobResultsRequest listSearchJobResultsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation returns a list of a specified search job.
- Parameters:
listSearchJobResultsRequest-- Returns:
- Result of the ListSearchJobResults operation returned by the service.
- See Also:
-
listSearchJobResults
default ListSearchJobResultsResponse listSearchJobResults(Consumer<ListSearchJobResultsRequest.Builder> listSearchJobResultsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation returns a list of a specified search job.
This is a convenience which creates an instance of the
ListSearchJobResultsRequest.Builderavoiding the need to create one manually viaListSearchJobResultsRequest.builder()- Parameters:
listSearchJobResultsRequest- AConsumerthat will call methods onListSearchJobResultsRequest.Builderto create a request.- Returns:
- Result of the ListSearchJobResults operation returned by the service.
- See Also:
-
listSearchJobResultsPaginator
default ListSearchJobResultsIterable listSearchJobResultsPaginator(ListSearchJobResultsRequest listSearchJobResultsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This is a variant of
listSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsIterable responses = client.listSearchJobResultsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsIterable responses = client .listSearchJobResultsPaginator(request); for (software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsIterable responses = client.listSearchJobResultsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSearchJobResultsPaginator
default ListSearchJobResultsIterable listSearchJobResultsPaginator(Consumer<ListSearchJobResultsRequest.Builder> listSearchJobResultsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This is a variant of
listSearchJobResults(software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsIterable responses = client.listSearchJobResultsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsIterable responses = client .listSearchJobResultsPaginator(request); for (software.amazon.awssdk.services.backupsearch.model.ListSearchJobResultsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobResultsIterable responses = client.listSearchJobResultsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListSearchJobResultsRequest.builder()- Parameters:
listSearchJobResultsRequest- AConsumerthat will call methods onListSearchJobResultsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSearchJobs
default ListSearchJobsResponse listSearchJobs(ListSearchJobsRequest listSearchJobsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation returns a list of search jobs belonging to an account.
- Parameters:
listSearchJobsRequest-- Returns:
- Result of the ListSearchJobs operation returned by the service.
- See Also:
-
listSearchJobs
default ListSearchJobsResponse listSearchJobs(Consumer<ListSearchJobsRequest.Builder> listSearchJobsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation returns a list of search jobs belonging to an account.
This is a convenience which creates an instance of the
ListSearchJobsRequest.Builderavoiding the need to create one manually viaListSearchJobsRequest.builder()- Parameters:
listSearchJobsRequest- AConsumerthat will call methods onListSearchJobsRequest.Builderto create a request.- Returns:
- Result of the ListSearchJobs operation returned by the service.
- See Also:
-
listSearchJobsPaginator
default ListSearchJobsIterable listSearchJobsPaginator(ListSearchJobsRequest listSearchJobsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This is a variant of
listSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsIterable responses = client.listSearchJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsIterable responses = client .listSearchJobsPaginator(request); for (software.amazon.awssdk.services.backupsearch.model.ListSearchJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsIterable responses = client.listSearchJobsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSearchJobsPaginator
default ListSearchJobsIterable listSearchJobsPaginator(Consumer<ListSearchJobsRequest.Builder> listSearchJobsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This is a variant of
listSearchJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchJobsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsIterable responses = client.listSearchJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsIterable responses = client .listSearchJobsPaginator(request); for (software.amazon.awssdk.services.backupsearch.model.ListSearchJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchJobsIterable responses = client.listSearchJobsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListSearchJobsRequest.builder()- Parameters:
listSearchJobsRequest- AConsumerthat will call methods onListSearchJobsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSearchResultExportJobs
default ListSearchResultExportJobsResponse listSearchResultExportJobs(ListSearchResultExportJobsRequest listSearchResultExportJobsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BackupSearchException This operation exports search results of a search job to a specified destination S3 bucket.
- Parameters:
listSearchResultExportJobsRequest-- Returns:
- Result of the ListSearchResultExportJobs operation returned by the service.
- See Also:
-
listSearchResultExportJobs
default ListSearchResultExportJobsResponse listSearchResultExportJobs(Consumer<ListSearchResultExportJobsRequest.Builder> listSearchResultExportJobsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BackupSearchException 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.Builderavoiding the need to create one manually viaListSearchResultExportJobsRequest.builder()- Parameters:
listSearchResultExportJobsRequest- AConsumerthat will call methods onListSearchResultExportJobsRequest.Builderto create a request.- Returns:
- Result of the ListSearchResultExportJobs operation returned by the service.
- See Also:
-
listSearchResultExportJobsPaginator
default ListSearchResultExportJobsIterable listSearchResultExportJobsPaginator(ListSearchResultExportJobsRequest listSearchResultExportJobsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BackupSearchException This is a variant of
listSearchResultExportJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsIterable responses = client.listSearchResultExportJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsIterable responses = client .listSearchResultExportJobsPaginator(request); for (software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsIterable responses = client.listSearchResultExportJobsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSearchResultExportJobsPaginator
default ListSearchResultExportJobsIterable listSearchResultExportJobsPaginator(Consumer<ListSearchResultExportJobsRequest.Builder> listSearchResultExportJobsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BackupSearchException This is a variant of
listSearchResultExportJobs(software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsIterable responses = client.listSearchResultExportJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsIterable responses = client .listSearchResultExportJobsPaginator(request); for (software.amazon.awssdk.services.backupsearch.model.ListSearchResultExportJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.backupsearch.paginators.ListSearchResultExportJobsIterable responses = client.listSearchResultExportJobsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListSearchResultExportJobsRequest.builder()- Parameters:
listSearchResultExportJobsRequest- AConsumerthat will call methods onListSearchResultExportJobsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation returns the tags for a resource type.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation returns the tags for a resource type.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
startSearchJob
default StartSearchJobResponse startSearchJob(StartSearchJobRequest startSearchJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, BackupSearchException 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:
- Result of the StartSearchJob operation returned by the service.
- See Also:
-
startSearchJob
default StartSearchJobResponse startSearchJob(Consumer<StartSearchJobRequest.Builder> startSearchJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, BackupSearchException 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.Builderavoiding the need to create one manually viaStartSearchJobRequest.builder()- Parameters:
startSearchJobRequest- AConsumerthat will call methods onStartSearchJobRequest.Builderto create a request.- Returns:
- Result of the StartSearchJob operation returned by the service.
- See Also:
-
startSearchResultExportJob
default StartSearchResultExportJobResponse startSearchResultExportJob(StartSearchResultExportJobRequest startSearchResultExportJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, BackupSearchException This operations starts a job to export the results of search job to a designated S3 bucket.
- Parameters:
startSearchResultExportJobRequest-- Returns:
- Result of the StartSearchResultExportJob operation returned by the service.
- See Also:
-
startSearchResultExportJob
default StartSearchResultExportJobResponse startSearchResultExportJob(Consumer<StartSearchResultExportJobRequest.Builder> startSearchResultExportJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, BackupSearchException 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.Builderavoiding the need to create one manually viaStartSearchResultExportJobRequest.builder()- Parameters:
startSearchResultExportJobRequest- AConsumerthat will call methods onStartSearchResultExportJobRequest.Builderto create a request.- Returns:
- Result of the StartSearchResultExportJob operation returned by the service.
- See Also:
-
stopSearchJob
default StopSearchJobResponse stopSearchJob(StopSearchJobRequest stopSearchJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, BackupSearchException This operations ends a search job.
Only a search job with a status of
RUNNINGcan be stopped.- Parameters:
stopSearchJobRequest-- Returns:
- Result of the StopSearchJob operation returned by the service.
- See Also:
-
stopSearchJob
default StopSearchJobResponse stopSearchJob(Consumer<StopSearchJobRequest.Builder> stopSearchJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, BackupSearchException This operations ends a search job.
Only a search job with a status of
RUNNINGcan be stopped.
This is a convenience which creates an instance of the
StopSearchJobRequest.Builderavoiding the need to create one manually viaStopSearchJobRequest.builder()- Parameters:
stopSearchJobRequest- AConsumerthat will call methods onStopSearchJobRequest.Builderto create a request.- Returns:
- Result of the StopSearchJob operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation puts tags on the resource you indicate.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation puts tags on the resource you indicate.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation removes tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BackupSearchException This operation removes tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
create
Create aBackupSearchClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aBackupSearchClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-