Interface SimpleDbV2Client
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Amazon SimpleDB is a web service providing the core database functions of data indexing and querying in the cloud. By offloading the time and effort associated with building and operating a web-scale database, SimpleDB provides developers the freedom to focus on application development.
A traditional, clustered relational database requires a sizable upfront capital outlay, is complex to design, and often requires extensive and repetitive database administration. Amazon SimpleDB is dramatically simpler, requiring no schema, automatically indexing your data and providing a simple API for storage and access. This approach eliminates the administrative burden of data modeling, index maintenance, and performance tuning. Developers gain access to this functionality within Amazon's proven computing environment, are able to scale instantly, and pay only for what they use.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleDbV2ClientBuilderbuilder()Create a builder that can be used to configure and create aSimpleDbV2Client.static SimpleDbV2Clientcreate()Create aSimpleDbV2Clientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default GetExportResponsegetExport(Consumer<GetExportRequest.Builder> getExportRequest) Returns information for an existing domain export.default GetExportResponsegetExport(GetExportRequest getExportRequest) Returns information for an existing domain export.default ListExportsResponselistExports(Consumer<ListExportsRequest.Builder> listExportsRequest) Lists all exports that were created.default ListExportsResponselistExports(ListExportsRequest listExportsRequest) Lists all exports that were created.default ListExportsIterablelistExportsPaginator(Consumer<ListExportsRequest.Builder> listExportsRequest) This is a variant oflistExports(software.amazon.awssdk.services.simpledbv2.model.ListExportsRequest)operation.default ListExportsIterablelistExportsPaginator(ListExportsRequest listExportsRequest) This is a variant oflistExports(software.amazon.awssdk.services.simpledbv2.model.ListExportsRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartDomainExportResponsestartDomainExport(Consumer<StartDomainExportRequest.Builder> startDomainExportRequest) Initiates the export of a SimpleDB domain to an S3 bucket.default StartDomainExportResponsestartDomainExport(StartDomainExportRequest startDomainExportRequest) Initiates the export of a SimpleDB domain to an S3 bucket.default SimpleDbV2Waiterwaiter()Create an instance ofSimpleDbV2Waiterusing this client.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
-
getExport
default GetExportResponse getExport(GetExportRequest getExportRequest) throws NoSuchExportException, InvalidParameterValueException, AwsServiceException, SdkClientException, SimpleDbV2Exception Returns information for an existing domain export.
- Parameters:
getExportRequest-- Returns:
- Result of the GetExport operation returned by the service.
-
getExport
default GetExportResponse getExport(Consumer<GetExportRequest.Builder> getExportRequest) throws NoSuchExportException, InvalidParameterValueException, AwsServiceException, SdkClientException, SimpleDbV2Exception Returns information for an existing domain export.
This is a convenience which creates an instance of the
GetExportRequest.Builderavoiding the need to create one manually viaGetExportRequest.builder()- Parameters:
getExportRequest- AConsumerthat will call methods onGetExportRequest.Builderto create a request.- Returns:
- Result of the GetExport operation returned by the service.
-
listExports
default ListExportsResponse listExports(ListExportsRequest listExportsRequest) throws InvalidNextTokenException, InvalidParameterValueException, NoSuchDomainException, AwsServiceException, SdkClientException, SimpleDbV2Exception Lists all exports that were created. The results are paginated and can be filtered by domain name.
- Parameters:
listExportsRequest-- Returns:
- Result of the ListExports operation returned by the service.
-
listExports
default ListExportsResponse listExports(Consumer<ListExportsRequest.Builder> listExportsRequest) throws InvalidNextTokenException, InvalidParameterValueException, NoSuchDomainException, AwsServiceException, SdkClientException, SimpleDbV2Exception Lists all exports that were created. The results are paginated and can be filtered by domain name.
This is a convenience which creates an instance of the
ListExportsRequest.Builderavoiding the need to create one manually viaListExportsRequest.builder()- Parameters:
listExportsRequest- AConsumerthat will call methods onListExportsRequest.Builderto create a request.- Returns:
- Result of the ListExports operation returned by the service.
-
listExportsPaginator
default ListExportsIterable listExportsPaginator(ListExportsRequest listExportsRequest) throws InvalidNextTokenException, InvalidParameterValueException, NoSuchDomainException, AwsServiceException, SdkClientException, SimpleDbV2Exception This is a variant of
listExports(software.amazon.awssdk.services.simpledbv2.model.ListExportsRequest)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.simpledbv2.paginators.ListExportsIterable responses = client.listExportsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.simpledbv2.paginators.ListExportsIterable responses = client.listExportsPaginator(request); for (software.amazon.awssdk.services.simpledbv2.model.ListExportsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.simpledbv2.paginators.ListExportsIterable responses = client.listExportsPaginator(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
listExports(software.amazon.awssdk.services.simpledbv2.model.ListExportsRequest)operation.- Parameters:
listExportsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
listExportsPaginator
default ListExportsIterable listExportsPaginator(Consumer<ListExportsRequest.Builder> listExportsRequest) throws InvalidNextTokenException, InvalidParameterValueException, NoSuchDomainException, AwsServiceException, SdkClientException, SimpleDbV2Exception This is a variant of
listExports(software.amazon.awssdk.services.simpledbv2.model.ListExportsRequest)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.simpledbv2.paginators.ListExportsIterable responses = client.listExportsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.simpledbv2.paginators.ListExportsIterable responses = client.listExportsPaginator(request); for (software.amazon.awssdk.services.simpledbv2.model.ListExportsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.simpledbv2.paginators.ListExportsIterable responses = client.listExportsPaginator(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
listExports(software.amazon.awssdk.services.simpledbv2.model.ListExportsRequest)operation.
This is a convenience which creates an instance of the
ListExportsRequest.Builderavoiding the need to create one manually viaListExportsRequest.builder()- Parameters:
listExportsRequest- AConsumerthat will call methods onListExportsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
startDomainExport
default StartDomainExportResponse startDomainExport(StartDomainExportRequest startDomainExportRequest) throws InvalidParameterCombinationException, InvalidParameterValueException, ConflictException, NumberExportsLimitExceededException, NoSuchDomainException, AwsServiceException, SdkClientException, SimpleDbV2Exception Initiates the export of a SimpleDB domain to an S3 bucket.
- Parameters:
startDomainExportRequest-- Returns:
- Result of the StartDomainExport operation returned by the service.
-
startDomainExport
default StartDomainExportResponse startDomainExport(Consumer<StartDomainExportRequest.Builder> startDomainExportRequest) throws InvalidParameterCombinationException, InvalidParameterValueException, ConflictException, NumberExportsLimitExceededException, NoSuchDomainException, AwsServiceException, SdkClientException, SimpleDbV2Exception Initiates the export of a SimpleDB domain to an S3 bucket.
This is a convenience which creates an instance of the
StartDomainExportRequest.Builderavoiding the need to create one manually viaStartDomainExportRequest.builder()- Parameters:
startDomainExportRequest- AConsumerthat will call methods onStartDomainExportRequest.Builderto create a request.- Returns:
- Result of the StartDomainExport operation returned by the service.
-
waiter
Create an instance ofSimpleDbV2Waiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
SimpleDbV2Waiter
-
create
Create aSimpleDbV2Clientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aSimpleDbV2Client. -
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
-