Interface DocDbElasticClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
The new Amazon Elastic DocumentDB service endpoint.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocDbElasticClientBuilder
builder()
Create a builder that can be used to configure and create aDocDbElasticClient
.static DocDbElasticClient
create()
Create aDocDbElasticClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateClusterResponse
createCluster
(Consumer<CreateClusterRequest.Builder> createClusterRequest) Creates a new Elastic DocumentDB cluster and returns its Cluster structure.default CreateClusterResponse
createCluster
(CreateClusterRequest createClusterRequest) Creates a new Elastic DocumentDB cluster and returns its Cluster structure.default CreateClusterSnapshotResponse
createClusterSnapshot
(Consumer<CreateClusterSnapshotRequest.Builder> createClusterSnapshotRequest) Creates a snapshot of a cluster.default CreateClusterSnapshotResponse
createClusterSnapshot
(CreateClusterSnapshotRequest createClusterSnapshotRequest) Creates a snapshot of a cluster.default DeleteClusterResponse
deleteCluster
(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest) Delete a Elastic DocumentDB cluster.default DeleteClusterResponse
deleteCluster
(DeleteClusterRequest deleteClusterRequest) Delete a Elastic DocumentDB cluster.default DeleteClusterSnapshotResponse
deleteClusterSnapshot
(Consumer<DeleteClusterSnapshotRequest.Builder> deleteClusterSnapshotRequest) Delete a Elastic DocumentDB snapshot.default DeleteClusterSnapshotResponse
deleteClusterSnapshot
(DeleteClusterSnapshotRequest deleteClusterSnapshotRequest) Delete a Elastic DocumentDB snapshot.default GetClusterResponse
getCluster
(Consumer<GetClusterRequest.Builder> getClusterRequest) Returns information about a specific Elastic DocumentDB cluster.default GetClusterResponse
getCluster
(GetClusterRequest getClusterRequest) Returns information about a specific Elastic DocumentDB cluster.default GetClusterSnapshotResponse
getClusterSnapshot
(Consumer<GetClusterSnapshotRequest.Builder> getClusterSnapshotRequest) Returns information about a specific Elastic DocumentDB snapshotdefault GetClusterSnapshotResponse
getClusterSnapshot
(GetClusterSnapshotRequest getClusterSnapshotRequest) Returns information about a specific Elastic DocumentDB snapshotdefault ListClustersResponse
listClusters
(Consumer<ListClustersRequest.Builder> listClustersRequest) Returns information about provisioned Elastic DocumentDB clusters.default ListClustersResponse
listClusters
(ListClustersRequest listClustersRequest) Returns information about provisioned Elastic DocumentDB clusters.default ListClusterSnapshotsResponse
listClusterSnapshots
(Consumer<ListClusterSnapshotsRequest.Builder> listClusterSnapshotsRequest) Returns information about Elastic DocumentDB snapshots for a specified cluster.default ListClusterSnapshotsResponse
listClusterSnapshots
(ListClusterSnapshotsRequest listClusterSnapshotsRequest) Returns information about Elastic DocumentDB snapshots for a specified cluster.default ListClusterSnapshotsIterable
listClusterSnapshotsPaginator
(Consumer<ListClusterSnapshotsRequest.Builder> listClusterSnapshotsRequest) Returns information about Elastic DocumentDB snapshots for a specified cluster.default ListClusterSnapshotsIterable
listClusterSnapshotsPaginator
(ListClusterSnapshotsRequest listClusterSnapshotsRequest) Returns information about Elastic DocumentDB snapshots for a specified cluster.default ListClustersIterable
listClustersPaginator
(Consumer<ListClustersRequest.Builder> listClustersRequest) Returns information about provisioned Elastic DocumentDB clusters.default ListClustersIterable
listClustersPaginator
(ListClustersRequest listClustersRequest) Returns information about provisioned Elastic DocumentDB clusters.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all tags on a Elastic DocumentDB resourcedefault ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists all tags on a Elastic DocumentDB resourcerestoreClusterFromSnapshot
(Consumer<RestoreClusterFromSnapshotRequest.Builder> restoreClusterFromSnapshotRequest) Restores a Elastic DocumentDB cluster from a snapshot.restoreClusterFromSnapshot
(RestoreClusterFromSnapshotRequest restoreClusterFromSnapshotRequest) Restores a Elastic DocumentDB cluster from a snapshot.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds metadata tags to a Elastic DocumentDB resourcedefault TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Adds metadata tags to a Elastic DocumentDB resourcedefault UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes metadata tags to a Elastic DocumentDB resourcedefault UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes metadata tags to a Elastic DocumentDB resourcedefault UpdateClusterResponse
updateCluster
(Consumer<UpdateClusterRequest.Builder> updateClusterRequest) Modifies a Elastic DocumentDB cluster.default UpdateClusterResponse
updateCluster
(UpdateClusterRequest updateClusterRequest) Modifies a Elastic DocumentDB cluster.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
-
createCluster
default CreateClusterResponse createCluster(CreateClusterRequest createClusterRequest) throws ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Creates a new Elastic DocumentDB cluster and returns its Cluster structure.
- Parameters:
createClusterRequest
-- Returns:
- Result of the CreateCluster operation returned by the service.
- See Also:
-
createCluster
default CreateClusterResponse createCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest) throws ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Creates a new Elastic DocumentDB cluster and returns its Cluster structure.
This is a convenience which creates an instance of the
CreateClusterRequest.Builder
avoiding the need to create one manually viaCreateClusterRequest.builder()
- Parameters:
createClusterRequest
- AConsumer
that will call methods onCreateClusterRequest.Builder
to create a request.- Returns:
- Result of the CreateCluster operation returned by the service.
- See Also:
-
createClusterSnapshot
default CreateClusterSnapshotResponse createClusterSnapshot(CreateClusterSnapshotRequest createClusterSnapshotRequest) throws ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Creates a snapshot of a cluster.
- Parameters:
createClusterSnapshotRequest
-- Returns:
- Result of the CreateClusterSnapshot operation returned by the service.
- See Also:
-
createClusterSnapshot
default CreateClusterSnapshotResponse createClusterSnapshot(Consumer<CreateClusterSnapshotRequest.Builder> createClusterSnapshotRequest) throws ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Creates a snapshot of a cluster.
This is a convenience which creates an instance of the
CreateClusterSnapshotRequest.Builder
avoiding the need to create one manually viaCreateClusterSnapshotRequest.builder()
- Parameters:
createClusterSnapshotRequest
- AConsumer
that will call methods onCreateClusterSnapshotRequest.Builder
to create a request.- Returns:
- Result of the CreateClusterSnapshot operation returned by the service.
- See Also:
-
deleteCluster
default DeleteClusterResponse deleteCluster(DeleteClusterRequest deleteClusterRequest) throws ThrottlingException, ValidationException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Delete a Elastic DocumentDB cluster.
- Parameters:
deleteClusterRequest
-- Returns:
- Result of the DeleteCluster operation returned by the service.
- See Also:
-
deleteCluster
default DeleteClusterResponse deleteCluster(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest) throws ThrottlingException, ValidationException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Delete a Elastic DocumentDB cluster.
This is a convenience which creates an instance of the
DeleteClusterRequest.Builder
avoiding the need to create one manually viaDeleteClusterRequest.builder()
- Parameters:
deleteClusterRequest
- AConsumer
that will call methods onDeleteClusterRequest.Builder
to create a request.- Returns:
- Result of the DeleteCluster operation returned by the service.
- See Also:
-
deleteClusterSnapshot
default DeleteClusterSnapshotResponse deleteClusterSnapshot(DeleteClusterSnapshotRequest deleteClusterSnapshotRequest) throws ThrottlingException, ValidationException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Delete a Elastic DocumentDB snapshot.
- Parameters:
deleteClusterSnapshotRequest
-- Returns:
- Result of the DeleteClusterSnapshot operation returned by the service.
- See Also:
-
deleteClusterSnapshot
default DeleteClusterSnapshotResponse deleteClusterSnapshot(Consumer<DeleteClusterSnapshotRequest.Builder> deleteClusterSnapshotRequest) throws ThrottlingException, ValidationException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Delete a Elastic DocumentDB snapshot.
This is a convenience which creates an instance of the
DeleteClusterSnapshotRequest.Builder
avoiding the need to create one manually viaDeleteClusterSnapshotRequest.builder()
- Parameters:
deleteClusterSnapshotRequest
- AConsumer
that will call methods onDeleteClusterSnapshotRequest.Builder
to create a request.- Returns:
- Result of the DeleteClusterSnapshot operation returned by the service.
- See Also:
-
getCluster
default GetClusterResponse getCluster(GetClusterRequest getClusterRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about a specific Elastic DocumentDB cluster.
- Parameters:
getClusterRequest
-- Returns:
- Result of the GetCluster operation returned by the service.
- See Also:
-
getCluster
default GetClusterResponse getCluster(Consumer<GetClusterRequest.Builder> getClusterRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about a specific Elastic DocumentDB cluster.
This is a convenience which creates an instance of the
GetClusterRequest.Builder
avoiding the need to create one manually viaGetClusterRequest.builder()
- Parameters:
getClusterRequest
- AConsumer
that will call methods onGetClusterRequest.Builder
to create a request.- Returns:
- Result of the GetCluster operation returned by the service.
- See Also:
-
getClusterSnapshot
default GetClusterSnapshotResponse getClusterSnapshot(GetClusterSnapshotRequest getClusterSnapshotRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about a specific Elastic DocumentDB snapshot
- Parameters:
getClusterSnapshotRequest
-- Returns:
- Result of the GetClusterSnapshot operation returned by the service.
- See Also:
-
getClusterSnapshot
default GetClusterSnapshotResponse getClusterSnapshot(Consumer<GetClusterSnapshotRequest.Builder> getClusterSnapshotRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about a specific Elastic DocumentDB snapshot
This is a convenience which creates an instance of the
GetClusterSnapshotRequest.Builder
avoiding the need to create one manually viaGetClusterSnapshotRequest.builder()
- Parameters:
getClusterSnapshotRequest
- AConsumer
that will call methods onGetClusterSnapshotRequest.Builder
to create a request.- Returns:
- Result of the GetClusterSnapshot operation returned by the service.
- See Also:
-
listClusterSnapshots
default ListClusterSnapshotsResponse listClusterSnapshots(ListClusterSnapshotsRequest listClusterSnapshotsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about Elastic DocumentDB snapshots for a specified cluster.
- Parameters:
listClusterSnapshotsRequest
-- Returns:
- Result of the ListClusterSnapshots operation returned by the service.
- See Also:
-
listClusterSnapshots
default ListClusterSnapshotsResponse listClusterSnapshots(Consumer<ListClusterSnapshotsRequest.Builder> listClusterSnapshotsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about Elastic DocumentDB snapshots for a specified cluster.
This is a convenience which creates an instance of the
ListClusterSnapshotsRequest.Builder
avoiding the need to create one manually viaListClusterSnapshotsRequest.builder()
- Parameters:
listClusterSnapshotsRequest
- AConsumer
that will call methods onListClusterSnapshotsRequest.Builder
to create a request.- Returns:
- Result of the ListClusterSnapshots operation returned by the service.
- See Also:
-
listClusterSnapshotsPaginator
default ListClusterSnapshotsIterable listClusterSnapshotsPaginator(ListClusterSnapshotsRequest listClusterSnapshotsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about Elastic DocumentDB snapshots for a specified cluster.
This is a variant of
listClusterSnapshots(software.amazon.awssdk.services.docdbelastic.model.ListClusterSnapshotsRequest)
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 Streamsoftware.amazon.awssdk.services.docdbelastic.paginators.ListClusterSnapshotsIterable responses = client.listClusterSnapshotsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.docdbelastic.paginators.ListClusterSnapshotsIterable responses = client .listClusterSnapshotsPaginator(request); for (software.amazon.awssdk.services.docdbelastic.model.ListClusterSnapshotsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.docdbelastic.paginators.ListClusterSnapshotsIterable responses = client.listClusterSnapshotsPaginator(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
listClusterSnapshots(software.amazon.awssdk.services.docdbelastic.model.ListClusterSnapshotsRequest)
operation.- Parameters:
listClusterSnapshotsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listClusterSnapshotsPaginator
default ListClusterSnapshotsIterable listClusterSnapshotsPaginator(Consumer<ListClusterSnapshotsRequest.Builder> listClusterSnapshotsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about Elastic DocumentDB snapshots for a specified cluster.
This is a variant of
listClusterSnapshots(software.amazon.awssdk.services.docdbelastic.model.ListClusterSnapshotsRequest)
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 Streamsoftware.amazon.awssdk.services.docdbelastic.paginators.ListClusterSnapshotsIterable responses = client.listClusterSnapshotsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.docdbelastic.paginators.ListClusterSnapshotsIterable responses = client .listClusterSnapshotsPaginator(request); for (software.amazon.awssdk.services.docdbelastic.model.ListClusterSnapshotsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.docdbelastic.paginators.ListClusterSnapshotsIterable responses = client.listClusterSnapshotsPaginator(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
listClusterSnapshots(software.amazon.awssdk.services.docdbelastic.model.ListClusterSnapshotsRequest)
operation.This is a convenience which creates an instance of the
ListClusterSnapshotsRequest.Builder
avoiding the need to create one manually viaListClusterSnapshotsRequest.builder()
- Parameters:
listClusterSnapshotsRequest
- AConsumer
that will call methods onListClusterSnapshotsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listClusters
default ListClustersResponse listClusters(ListClustersRequest listClustersRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about provisioned Elastic DocumentDB clusters.
- Parameters:
listClustersRequest
-- Returns:
- Result of the ListClusters operation returned by the service.
- See Also:
-
listClusters
default ListClustersResponse listClusters(Consumer<ListClustersRequest.Builder> listClustersRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about provisioned Elastic DocumentDB clusters.
This is a convenience which creates an instance of the
ListClustersRequest.Builder
avoiding the need to create one manually viaListClustersRequest.builder()
- Parameters:
listClustersRequest
- AConsumer
that will call methods onListClustersRequest.Builder
to create a request.- Returns:
- Result of the ListClusters operation returned by the service.
- See Also:
-
listClustersPaginator
default ListClustersIterable listClustersPaginator(ListClustersRequest listClustersRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about provisioned Elastic DocumentDB clusters.
This is a variant of
listClusters(software.amazon.awssdk.services.docdbelastic.model.ListClustersRequest)
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 Streamsoftware.amazon.awssdk.services.docdbelastic.paginators.ListClustersIterable responses = client.listClustersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.docdbelastic.paginators.ListClustersIterable responses = client .listClustersPaginator(request); for (software.amazon.awssdk.services.docdbelastic.model.ListClustersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.docdbelastic.paginators.ListClustersIterable responses = client.listClustersPaginator(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
listClusters(software.amazon.awssdk.services.docdbelastic.model.ListClustersRequest)
operation.- Parameters:
listClustersRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listClustersPaginator
default ListClustersIterable listClustersPaginator(Consumer<ListClustersRequest.Builder> listClustersRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Returns information about provisioned Elastic DocumentDB clusters.
This is a variant of
listClusters(software.amazon.awssdk.services.docdbelastic.model.ListClustersRequest)
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 Streamsoftware.amazon.awssdk.services.docdbelastic.paginators.ListClustersIterable responses = client.listClustersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.docdbelastic.paginators.ListClustersIterable responses = client .listClustersPaginator(request); for (software.amazon.awssdk.services.docdbelastic.model.ListClustersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.docdbelastic.paginators.ListClustersIterable responses = client.listClustersPaginator(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
listClusters(software.amazon.awssdk.services.docdbelastic.model.ListClustersRequest)
operation.This is a convenience which creates an instance of the
ListClustersRequest.Builder
avoiding the need to create one manually viaListClustersRequest.builder()
- Parameters:
listClustersRequest
- AConsumer
that will call methods onListClustersRequest.Builder
to 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 ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DocDbElasticException Lists all tags on a Elastic DocumentDB resource
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DocDbElasticException Lists all tags on a Elastic DocumentDB resource
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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
restoreClusterFromSnapshot
default RestoreClusterFromSnapshotResponse restoreClusterFromSnapshot(RestoreClusterFromSnapshotRequest restoreClusterFromSnapshotRequest) throws ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Restores a Elastic DocumentDB cluster from a snapshot.
- Parameters:
restoreClusterFromSnapshotRequest
-- Returns:
- Result of the RestoreClusterFromSnapshot operation returned by the service.
- See Also:
-
restoreClusterFromSnapshot
default RestoreClusterFromSnapshotResponse restoreClusterFromSnapshot(Consumer<RestoreClusterFromSnapshotRequest.Builder> restoreClusterFromSnapshotRequest) throws ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Restores a Elastic DocumentDB cluster from a snapshot.
This is a convenience which creates an instance of the
RestoreClusterFromSnapshotRequest.Builder
avoiding the need to create one manually viaRestoreClusterFromSnapshotRequest.builder()
- Parameters:
restoreClusterFromSnapshotRequest
- AConsumer
that will call methods onRestoreClusterFromSnapshotRequest.Builder
to create a request.- Returns:
- Result of the RestoreClusterFromSnapshot operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DocDbElasticException Adds metadata tags to a Elastic DocumentDB resource
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DocDbElasticException Adds metadata tags to a Elastic DocumentDB resource
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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DocDbElasticException Removes metadata tags to a Elastic DocumentDB resource
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DocDbElasticException Removes metadata tags to a Elastic DocumentDB 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateCluster
default UpdateClusterResponse updateCluster(UpdateClusterRequest updateClusterRequest) throws ThrottlingException, ValidationException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password, upgrading API version setting up a backup window and maintenance window
- Parameters:
updateClusterRequest
-- Returns:
- Result of the UpdateCluster operation returned by the service.
- See Also:
-
updateCluster
default UpdateClusterResponse updateCluster(Consumer<UpdateClusterRequest.Builder> updateClusterRequest) throws ThrottlingException, ValidationException, ConflictException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, DocDbElasticException Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password, upgrading API version setting up a backup window and maintenance window
This is a convenience which creates an instance of the
UpdateClusterRequest.Builder
avoiding the need to create one manually viaUpdateClusterRequest.builder()
- Parameters:
updateClusterRequest
- AConsumer
that will call methods onUpdateClusterRequest.Builder
to create a request.- Returns:
- Result of the UpdateCluster operation returned by the service.
- See Also:
-
create
Create aDocDbElasticClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aDocDbElasticClient
. -
serviceMetadata
-
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
-