Interface DataExchangeAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access file-based data set in the AWS Cloud.
As a subscriber, you can view and access the data sets that you have an entitlement to through a subscription. You can use the APIs to download or copy your entitled data sets to Amazon Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and machine learning services.
As a provider, you can create and manage your data sets that you would like to publish to a product. Being able to package and provide your data sets into products requires a few steps to determine eligibility. For more information, visit the AWS Data Exchange User Guide.
A data set is a collection of data that can be changed or updated over time. Data sets can be updated using revisions, which represent a new version or incremental change to a data set. A revision contains one or more assets. An asset in AWS Data Exchange is a piece of data that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS Lake Formation data permission, or Amazon S3 data access. The asset can be a structured data file, an image file, or some other data file. Jobs are asynchronous import or export operations used to create or copy assets.
-
Field Summary
Modifier 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 aDataExchangeAsyncClient
.default CompletableFuture
<CancelJobResponse> cancelJob
(Consumer<CancelJobRequest.Builder> cancelJobRequest) This operation cancels a job.default CompletableFuture
<CancelJobResponse> cancelJob
(CancelJobRequest cancelJobRequest) This operation cancels a job.static DataExchangeAsyncClient
create()
Create aDataExchangeAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<CreateDataSetResponse> createDataSet
(Consumer<CreateDataSetRequest.Builder> createDataSetRequest) This operation creates a data set.default CompletableFuture
<CreateDataSetResponse> createDataSet
(CreateDataSetRequest createDataSetRequest) This operation creates a data set.createEventAction
(Consumer<CreateEventActionRequest.Builder> createEventActionRequest) This operation creates an event action.createEventAction
(CreateEventActionRequest createEventActionRequest) This operation creates an event action.default CompletableFuture
<CreateJobResponse> createJob
(Consumer<CreateJobRequest.Builder> createJobRequest) This operation creates a job.default CompletableFuture
<CreateJobResponse> createJob
(CreateJobRequest createJobRequest) This operation creates a job.default CompletableFuture
<CreateRevisionResponse> createRevision
(Consumer<CreateRevisionRequest.Builder> createRevisionRequest) This operation creates a revision for a data set.default CompletableFuture
<CreateRevisionResponse> createRevision
(CreateRevisionRequest createRevisionRequest) This operation creates a revision for a data set.default CompletableFuture
<DeleteAssetResponse> deleteAsset
(Consumer<DeleteAssetRequest.Builder> deleteAssetRequest) This operation deletes an asset.default CompletableFuture
<DeleteAssetResponse> deleteAsset
(DeleteAssetRequest deleteAssetRequest) This operation deletes an asset.default CompletableFuture
<DeleteDataSetResponse> deleteDataSet
(Consumer<DeleteDataSetRequest.Builder> deleteDataSetRequest) This operation deletes a data set.default CompletableFuture
<DeleteDataSetResponse> deleteDataSet
(DeleteDataSetRequest deleteDataSetRequest) This operation deletes a data set.deleteEventAction
(Consumer<DeleteEventActionRequest.Builder> deleteEventActionRequest) This operation deletes the event action.deleteEventAction
(DeleteEventActionRequest deleteEventActionRequest) This operation deletes the event action.default CompletableFuture
<DeleteRevisionResponse> deleteRevision
(Consumer<DeleteRevisionRequest.Builder> deleteRevisionRequest) This operation deletes a revision.default CompletableFuture
<DeleteRevisionResponse> deleteRevision
(DeleteRevisionRequest deleteRevisionRequest) This operation deletes a revision.default CompletableFuture
<GetAssetResponse> getAsset
(Consumer<GetAssetRequest.Builder> getAssetRequest) This operation returns information about an asset.default CompletableFuture
<GetAssetResponse> getAsset
(GetAssetRequest getAssetRequest) This operation returns information about an asset.default CompletableFuture
<GetDataSetResponse> getDataSet
(Consumer<GetDataSetRequest.Builder> getDataSetRequest) This operation returns information about a data set.default CompletableFuture
<GetDataSetResponse> getDataSet
(GetDataSetRequest getDataSetRequest) This operation returns information about a data set.default CompletableFuture
<GetEventActionResponse> getEventAction
(Consumer<GetEventActionRequest.Builder> getEventActionRequest) This operation retrieves information about an event action.default CompletableFuture
<GetEventActionResponse> getEventAction
(GetEventActionRequest getEventActionRequest) This operation retrieves information about an event action.default CompletableFuture
<GetJobResponse> getJob
(Consumer<GetJobRequest.Builder> getJobRequest) This operation returns information about a job.default CompletableFuture
<GetJobResponse> getJob
(GetJobRequest getJobRequest) This operation returns information about a job.default CompletableFuture
<GetRevisionResponse> getRevision
(Consumer<GetRevisionRequest.Builder> getRevisionRequest) This operation returns information about a revision.default CompletableFuture
<GetRevisionResponse> getRevision
(GetRevisionRequest getRevisionRequest) This operation returns information about a revision.listDataSetRevisions
(Consumer<ListDataSetRevisionsRequest.Builder> listDataSetRevisionsRequest) This operation lists a data set's revisions sorted by CreatedAt in descending order.listDataSetRevisions
(ListDataSetRevisionsRequest listDataSetRevisionsRequest) This operation lists a data set's revisions sorted by CreatedAt in descending order.default ListDataSetRevisionsPublisher
listDataSetRevisionsPaginator
(Consumer<ListDataSetRevisionsRequest.Builder> listDataSetRevisionsRequest) This is a variant oflistDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)
operation.default ListDataSetRevisionsPublisher
listDataSetRevisionsPaginator
(ListDataSetRevisionsRequest listDataSetRevisionsRequest) This is a variant oflistDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)
operation.default CompletableFuture
<ListDataSetsResponse> listDataSets
(Consumer<ListDataSetsRequest.Builder> listDataSetsRequest) This operation lists your data sets.default CompletableFuture
<ListDataSetsResponse> listDataSets
(ListDataSetsRequest listDataSetsRequest) This operation lists your data sets.default ListDataSetsPublisher
listDataSetsPaginator
(Consumer<ListDataSetsRequest.Builder> listDataSetsRequest) This is a variant oflistDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)
operation.default ListDataSetsPublisher
listDataSetsPaginator
(ListDataSetsRequest listDataSetsRequest) This is a variant oflistDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)
operation.listEventActions
(Consumer<ListEventActionsRequest.Builder> listEventActionsRequest) This operation lists your event actions.listEventActions
(ListEventActionsRequest listEventActionsRequest) This operation lists your event actions.default ListEventActionsPublisher
listEventActionsPaginator
(Consumer<ListEventActionsRequest.Builder> listEventActionsRequest) This is a variant oflistEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)
operation.default ListEventActionsPublisher
listEventActionsPaginator
(ListEventActionsRequest listEventActionsRequest) This is a variant oflistEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)
operation.default CompletableFuture
<ListJobsResponse> listJobs
(Consumer<ListJobsRequest.Builder> listJobsRequest) This operation lists your jobs sorted by CreatedAt in descending order.default CompletableFuture
<ListJobsResponse> listJobs
(ListJobsRequest listJobsRequest) This operation lists your jobs sorted by CreatedAt in descending order.default ListJobsPublisher
listJobsPaginator
(Consumer<ListJobsRequest.Builder> listJobsRequest) This is a variant oflistJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)
operation.default ListJobsPublisher
listJobsPaginator
(ListJobsRequest listJobsRequest) This is a variant oflistJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)
operation.listRevisionAssets
(Consumer<ListRevisionAssetsRequest.Builder> listRevisionAssetsRequest) This operation lists a revision's assets sorted alphabetically in descending order.listRevisionAssets
(ListRevisionAssetsRequest listRevisionAssetsRequest) This operation lists a revision's assets sorted alphabetically in descending order.default ListRevisionAssetsPublisher
listRevisionAssetsPaginator
(Consumer<ListRevisionAssetsRequest.Builder> listRevisionAssetsRequest) This is a variant oflistRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)
operation.default ListRevisionAssetsPublisher
listRevisionAssetsPaginator
(ListRevisionAssetsRequest listRevisionAssetsRequest) This is a variant oflistRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) This operation lists the tags on the resource.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) This operation lists the tags on the resource.default CompletableFuture
<RevokeRevisionResponse> revokeRevision
(Consumer<RevokeRevisionRequest.Builder> revokeRevisionRequest) This operation revokes subscribers' access to a revision.default CompletableFuture
<RevokeRevisionResponse> revokeRevision
(RevokeRevisionRequest revokeRevisionRequest) This operation revokes subscribers' access to a revision.sendDataSetNotification
(Consumer<SendDataSetNotificationRequest.Builder> sendDataSetNotificationRequest) The type of event associated with the data set.sendDataSetNotification
(SendDataSetNotificationRequest sendDataSetNotificationRequest) The type of event associated with the data set.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<StartJobResponse> startJob
(Consumer<StartJobRequest.Builder> startJobRequest) This operation starts a job.default CompletableFuture
<StartJobResponse> startJob
(StartJobRequest startJobRequest) This operation starts a job.default CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) This operation tags a resource.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) This operation tags a resource.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) This operation removes one or more tags from a resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) This operation removes one or more tags from a resource.default CompletableFuture
<UpdateAssetResponse> updateAsset
(Consumer<UpdateAssetRequest.Builder> updateAssetRequest) This operation updates an asset.default CompletableFuture
<UpdateAssetResponse> updateAsset
(UpdateAssetRequest updateAssetRequest) This operation updates an asset.default CompletableFuture
<UpdateDataSetResponse> updateDataSet
(Consumer<UpdateDataSetRequest.Builder> updateDataSetRequest) This operation updates a data set.default CompletableFuture
<UpdateDataSetResponse> updateDataSet
(UpdateDataSetRequest updateDataSetRequest) This operation updates a data set.updateEventAction
(Consumer<UpdateEventActionRequest.Builder> updateEventActionRequest) This operation updates the event action.updateEventAction
(UpdateEventActionRequest updateEventActionRequest) This operation updates the event action.default CompletableFuture
<UpdateRevisionResponse> updateRevision
(Consumer<UpdateRevisionRequest.Builder> updateRevisionRequest) This operation updates a revision.default CompletableFuture
<UpdateRevisionResponse> updateRevision
(UpdateRevisionRequest updateRevisionRequest) This operation updates a revision.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
-
cancelJob
This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.
- Parameters:
cancelJobRequest
-- Returns:
- A Java Future containing the result of the CancelJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelJob
default CompletableFuture<CancelJobResponse> cancelJob(Consumer<CancelJobRequest.Builder> cancelJobRequest) This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.
This is a convenience which creates an instance of the
CancelJobRequest.Builder
avoiding the need to create one manually viaCancelJobRequest.builder()
- Parameters:
cancelJobRequest
- AConsumer
that will call methods onCancelJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CancelJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createDataSet
default CompletableFuture<CreateDataSetResponse> createDataSet(CreateDataSetRequest createDataSetRequest) This operation creates a data set.
- Parameters:
createDataSetRequest
-- Returns:
- A Java Future containing the result of the CreateDataSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ServiceLimitExceededException The request has exceeded the quotas imposed by the service.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createDataSet
default CompletableFuture<CreateDataSetResponse> createDataSet(Consumer<CreateDataSetRequest.Builder> createDataSetRequest) This operation creates a data set.
This is a convenience which creates an instance of the
CreateDataSetRequest.Builder
avoiding the need to create one manually viaCreateDataSetRequest.builder()
- Parameters:
createDataSetRequest
- AConsumer
that will call methods onCreateDataSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateDataSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ServiceLimitExceededException The request has exceeded the quotas imposed by the service.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEventAction
default CompletableFuture<CreateEventActionResponse> createEventAction(CreateEventActionRequest createEventActionRequest) This operation creates an event action.
- Parameters:
createEventActionRequest
-- Returns:
- A Java Future containing the result of the CreateEventAction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ServiceLimitExceededException The request has exceeded the quotas imposed by the service.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEventAction
default CompletableFuture<CreateEventActionResponse> createEventAction(Consumer<CreateEventActionRequest.Builder> createEventActionRequest) This operation creates an event action.
This is a convenience which creates an instance of the
CreateEventActionRequest.Builder
avoiding the need to create one manually viaCreateEventActionRequest.builder()
- Parameters:
createEventActionRequest
- AConsumer
that will call methods onCreateEventActionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateEventAction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ServiceLimitExceededException The request has exceeded the quotas imposed by the service.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createJob
This operation creates a job.
- Parameters:
createJobRequest
-- Returns:
- A Java Future containing the result of the CreateJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createJob
default CompletableFuture<CreateJobResponse> createJob(Consumer<CreateJobRequest.Builder> createJobRequest) This operation creates a job.
This is a convenience which creates an instance of the
CreateJobRequest.Builder
avoiding the need to create one manually viaCreateJobRequest.builder()
- Parameters:
createJobRequest
- AConsumer
that will call methods onCreateJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRevision
default CompletableFuture<CreateRevisionResponse> createRevision(CreateRevisionRequest createRevisionRequest) This operation creates a revision for a data set.
- Parameters:
createRevisionRequest
-- Returns:
- A Java Future containing the result of the CreateRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRevision
default CompletableFuture<CreateRevisionResponse> createRevision(Consumer<CreateRevisionRequest.Builder> createRevisionRequest) This operation creates a revision for a data set.
This is a convenience which creates an instance of the
CreateRevisionRequest.Builder
avoiding the need to create one manually viaCreateRevisionRequest.builder()
- Parameters:
createRevisionRequest
- AConsumer
that will call methods onCreateRevisionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAsset
This operation deletes an asset.
- Parameters:
deleteAssetRequest
-- Returns:
- A Java Future containing the result of the DeleteAsset operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAsset
default CompletableFuture<DeleteAssetResponse> deleteAsset(Consumer<DeleteAssetRequest.Builder> deleteAssetRequest) This operation deletes an asset.
This is a convenience which creates an instance of the
DeleteAssetRequest.Builder
avoiding the need to create one manually viaDeleteAssetRequest.builder()
- Parameters:
deleteAssetRequest
- AConsumer
that will call methods onDeleteAssetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteAsset operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteDataSet
default CompletableFuture<DeleteDataSetResponse> deleteDataSet(DeleteDataSetRequest deleteDataSetRequest) This operation deletes a data set.
- Parameters:
deleteDataSetRequest
-- Returns:
- A Java Future containing the result of the DeleteDataSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteDataSet
default CompletableFuture<DeleteDataSetResponse> deleteDataSet(Consumer<DeleteDataSetRequest.Builder> deleteDataSetRequest) This operation deletes a data set.
This is a convenience which creates an instance of the
DeleteDataSetRequest.Builder
avoiding the need to create one manually viaDeleteDataSetRequest.builder()
- Parameters:
deleteDataSetRequest
- AConsumer
that will call methods onDeleteDataSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteDataSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteEventAction
default CompletableFuture<DeleteEventActionResponse> deleteEventAction(DeleteEventActionRequest deleteEventActionRequest) This operation deletes the event action.
- Parameters:
deleteEventActionRequest
-- Returns:
- A Java Future containing the result of the DeleteEventAction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteEventAction
default CompletableFuture<DeleteEventActionResponse> deleteEventAction(Consumer<DeleteEventActionRequest.Builder> deleteEventActionRequest) This operation deletes the event action.
This is a convenience which creates an instance of the
DeleteEventActionRequest.Builder
avoiding the need to create one manually viaDeleteEventActionRequest.builder()
- Parameters:
deleteEventActionRequest
- AConsumer
that will call methods onDeleteEventActionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteEventAction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRevision
default CompletableFuture<DeleteRevisionResponse> deleteRevision(DeleteRevisionRequest deleteRevisionRequest) This operation deletes a revision.
- Parameters:
deleteRevisionRequest
-- Returns:
- A Java Future containing the result of the DeleteRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRevision
default CompletableFuture<DeleteRevisionResponse> deleteRevision(Consumer<DeleteRevisionRequest.Builder> deleteRevisionRequest) This operation deletes a revision.
This is a convenience which creates an instance of the
DeleteRevisionRequest.Builder
avoiding the need to create one manually viaDeleteRevisionRequest.builder()
- Parameters:
deleteRevisionRequest
- AConsumer
that will call methods onDeleteRevisionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAsset
This operation returns information about an asset.
- Parameters:
getAssetRequest
-- Returns:
- A Java Future containing the result of the GetAsset operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAsset
default CompletableFuture<GetAssetResponse> getAsset(Consumer<GetAssetRequest.Builder> getAssetRequest) This operation returns information about an asset.
This is a convenience which creates an instance of the
GetAssetRequest.Builder
avoiding the need to create one manually viaGetAssetRequest.builder()
- Parameters:
getAssetRequest
- AConsumer
that will call methods onGetAssetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetAsset operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDataSet
This operation returns information about a data set.
- Parameters:
getDataSetRequest
-- Returns:
- A Java Future containing the result of the GetDataSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDataSet
default CompletableFuture<GetDataSetResponse> getDataSet(Consumer<GetDataSetRequest.Builder> getDataSetRequest) This operation returns information about a data set.
This is a convenience which creates an instance of the
GetDataSetRequest.Builder
avoiding the need to create one manually viaGetDataSetRequest.builder()
- Parameters:
getDataSetRequest
- AConsumer
that will call methods onGetDataSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetDataSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getEventAction
default CompletableFuture<GetEventActionResponse> getEventAction(GetEventActionRequest getEventActionRequest) This operation retrieves information about an event action.
- Parameters:
getEventActionRequest
-- Returns:
- A Java Future containing the result of the GetEventAction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getEventAction
default CompletableFuture<GetEventActionResponse> getEventAction(Consumer<GetEventActionRequest.Builder> getEventActionRequest) This operation retrieves information about an event action.
This is a convenience which creates an instance of the
GetEventActionRequest.Builder
avoiding the need to create one manually viaGetEventActionRequest.builder()
- Parameters:
getEventActionRequest
- AConsumer
that will call methods onGetEventActionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetEventAction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getJob
This operation returns information about a job.
- Parameters:
getJobRequest
-- Returns:
- A Java Future containing the result of the GetJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getJob
This operation returns information about a job.
This is a convenience which creates an instance of the
GetJobRequest.Builder
avoiding the need to create one manually viaGetJobRequest.builder()
- Parameters:
getJobRequest
- AConsumer
that will call methods onGetJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRevision
This operation returns information about a revision.
- Parameters:
getRevisionRequest
-- Returns:
- A Java Future containing the result of the GetRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRevision
default CompletableFuture<GetRevisionResponse> getRevision(Consumer<GetRevisionRequest.Builder> getRevisionRequest) This operation returns information about a revision.
This is a convenience which creates an instance of the
GetRevisionRequest.Builder
avoiding the need to create one manually viaGetRevisionRequest.builder()
- Parameters:
getRevisionRequest
- AConsumer
that will call methods onGetRevisionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSetRevisions
default CompletableFuture<ListDataSetRevisionsResponse> listDataSetRevisions(ListDataSetRevisionsRequest listDataSetRevisionsRequest) This operation lists a data set's revisions sorted by CreatedAt in descending order.
- Parameters:
listDataSetRevisionsRequest
-- Returns:
- A Java Future containing the result of the ListDataSetRevisions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSetRevisions
default CompletableFuture<ListDataSetRevisionsResponse> listDataSetRevisions(Consumer<ListDataSetRevisionsRequest.Builder> listDataSetRevisionsRequest) This operation lists a data set's revisions sorted by CreatedAt in descending order.
This is a convenience which creates an instance of the
ListDataSetRevisionsRequest.Builder
avoiding the need to create one manually viaListDataSetRevisionsRequest.builder()
- Parameters:
listDataSetRevisionsRequest
- AConsumer
that will call methods onListDataSetRevisionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListDataSetRevisions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSetRevisionsPaginator
default ListDataSetRevisionsPublisher listDataSetRevisionsPaginator(ListDataSetRevisionsRequest listDataSetRevisionsRequest) This is a variant of
listDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)
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.dataexchange.paginators.ListDataSetRevisionsPublisher publisher = client.listDataSetRevisionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListDataSetRevisionsPublisher publisher = client.listDataSetRevisionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsResponse 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
listDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)
operation.- Parameters:
listDataSetRevisionsRequest
-- 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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSetRevisionsPaginator
default ListDataSetRevisionsPublisher listDataSetRevisionsPaginator(Consumer<ListDataSetRevisionsRequest.Builder> listDataSetRevisionsRequest) This is a variant of
listDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)
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.dataexchange.paginators.ListDataSetRevisionsPublisher publisher = client.listDataSetRevisionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListDataSetRevisionsPublisher publisher = client.listDataSetRevisionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsResponse 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
listDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)
operation.
This is a convenience which creates an instance of the
ListDataSetRevisionsRequest.Builder
avoiding the need to create one manually viaListDataSetRevisionsRequest.builder()
- Parameters:
listDataSetRevisionsRequest
- AConsumer
that will call methods onListDataSetRevisionsRequest.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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSets
default CompletableFuture<ListDataSetsResponse> listDataSets(ListDataSetsRequest listDataSetsRequest) This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order and the maxResults parameter is ignored.
- Parameters:
listDataSetsRequest
-- Returns:
- A Java Future containing the result of the ListDataSets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSets
default CompletableFuture<ListDataSetsResponse> listDataSets(Consumer<ListDataSetsRequest.Builder> listDataSetsRequest) This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order and the maxResults parameter is ignored.
This is a convenience which creates an instance of the
ListDataSetsRequest.Builder
avoiding the need to create one manually viaListDataSetsRequest.builder()
- Parameters:
listDataSetsRequest
- AConsumer
that will call methods onListDataSetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListDataSets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSetsPaginator
This is a variant of
listDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)
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.dataexchange.paginators.ListDataSetsPublisher publisher = client.listDataSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListDataSetsPublisher publisher = client.listDataSetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListDataSetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListDataSetsResponse 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
listDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)
operation.- Parameters:
listDataSetsRequest
-- 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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSetsPaginator
default ListDataSetsPublisher listDataSetsPaginator(Consumer<ListDataSetsRequest.Builder> listDataSetsRequest) This is a variant of
listDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)
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.dataexchange.paginators.ListDataSetsPublisher publisher = client.listDataSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListDataSetsPublisher publisher = client.listDataSetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListDataSetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListDataSetsResponse 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
listDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)
operation.
This is a convenience which creates an instance of the
ListDataSetsRequest.Builder
avoiding the need to create one manually viaListDataSetsRequest.builder()
- Parameters:
listDataSetsRequest
- AConsumer
that will call methods onListDataSetsRequest.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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventActions
default CompletableFuture<ListEventActionsResponse> listEventActions(ListEventActionsRequest listEventActionsRequest) This operation lists your event actions.
- Parameters:
listEventActionsRequest
-- Returns:
- A Java Future containing the result of the ListEventActions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventActions
default CompletableFuture<ListEventActionsResponse> listEventActions(Consumer<ListEventActionsRequest.Builder> listEventActionsRequest) This operation lists your event actions.
This is a convenience which creates an instance of the
ListEventActionsRequest.Builder
avoiding the need to create one manually viaListEventActionsRequest.builder()
- Parameters:
listEventActionsRequest
- AConsumer
that will call methods onListEventActionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListEventActions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventActionsPaginator
default ListEventActionsPublisher listEventActionsPaginator(ListEventActionsRequest listEventActionsRequest) This is a variant of
listEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)
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.dataexchange.paginators.ListEventActionsPublisher publisher = client.listEventActionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListEventActionsPublisher publisher = client.listEventActionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListEventActionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListEventActionsResponse 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
listEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)
operation.- Parameters:
listEventActionsRequest
-- 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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventActionsPaginator
default ListEventActionsPublisher listEventActionsPaginator(Consumer<ListEventActionsRequest.Builder> listEventActionsRequest) This is a variant of
listEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)
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.dataexchange.paginators.ListEventActionsPublisher publisher = client.listEventActionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListEventActionsPublisher publisher = client.listEventActionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListEventActionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListEventActionsResponse 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
listEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)
operation.
This is a convenience which creates an instance of the
ListEventActionsRequest.Builder
avoiding the need to create one manually viaListEventActionsRequest.builder()
- Parameters:
listEventActionsRequest
- AConsumer
that will call methods onListEventActionsRequest.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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listJobs
This operation lists your jobs sorted by CreatedAt in descending order.
- Parameters:
listJobsRequest
-- Returns:
- A Java Future containing the result of the ListJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listJobs
default CompletableFuture<ListJobsResponse> listJobs(Consumer<ListJobsRequest.Builder> listJobsRequest) This operation lists your jobs sorted by CreatedAt in descending order.
This is a convenience which creates an instance of the
ListJobsRequest.Builder
avoiding the need to create one manually viaListJobsRequest.builder()
- Parameters:
listJobsRequest
- AConsumer
that will call methods onListJobsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listJobsPaginator
This is a variant of
listJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)
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.dataexchange.paginators.ListJobsPublisher publisher = client.listJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListJobsPublisher publisher = client.listJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListJobsResponse 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
listJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)
operation.- Parameters:
listJobsRequest
-- 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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listJobsPaginator
This is a variant of
listJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)
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.dataexchange.paginators.ListJobsPublisher publisher = client.listJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListJobsPublisher publisher = client.listJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListJobsResponse 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
listJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)
operation.
This is a convenience which creates an instance of the
ListJobsRequest.Builder
avoiding the need to create one manually viaListJobsRequest.builder()
- Parameters:
listJobsRequest
- AConsumer
that will call methods onListJobsRequest.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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevisionAssets
default CompletableFuture<ListRevisionAssetsResponse> listRevisionAssets(ListRevisionAssetsRequest listRevisionAssetsRequest) This operation lists a revision's assets sorted alphabetically in descending order.
- Parameters:
listRevisionAssetsRequest
-- Returns:
- A Java Future containing the result of the ListRevisionAssets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevisionAssets
default CompletableFuture<ListRevisionAssetsResponse> listRevisionAssets(Consumer<ListRevisionAssetsRequest.Builder> listRevisionAssetsRequest) This operation lists a revision's assets sorted alphabetically in descending order.
This is a convenience which creates an instance of the
ListRevisionAssetsRequest.Builder
avoiding the need to create one manually viaListRevisionAssetsRequest.builder()
- Parameters:
listRevisionAssetsRequest
- AConsumer
that will call methods onListRevisionAssetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListRevisionAssets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevisionAssetsPaginator
default ListRevisionAssetsPublisher listRevisionAssetsPaginator(ListRevisionAssetsRequest listRevisionAssetsRequest) This is a variant of
listRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)
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.dataexchange.paginators.ListRevisionAssetsPublisher publisher = client.listRevisionAssetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListRevisionAssetsPublisher publisher = client.listRevisionAssetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsResponse 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
listRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)
operation.- Parameters:
listRevisionAssetsRequest
-- 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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevisionAssetsPaginator
default ListRevisionAssetsPublisher listRevisionAssetsPaginator(Consumer<ListRevisionAssetsRequest.Builder> listRevisionAssetsRequest) This is a variant of
listRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)
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.dataexchange.paginators.ListRevisionAssetsPublisher publisher = client.listRevisionAssetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.dataexchange.paginators.ListRevisionAssetsPublisher publisher = client.listRevisionAssetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsResponse 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
listRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)
operation.
This is a convenience which creates an instance of the
ListRevisionAssetsRequest.Builder
avoiding the need to create one manually viaListRevisionAssetsRequest.builder()
- Parameters:
listRevisionAssetsRequest
- AConsumer
that will call methods onListRevisionAssetsRequest.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.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) This operation lists the tags on the resource.
- 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.- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) This operation lists the tags on the 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:
- 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.- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
revokeRevision
default CompletableFuture<RevokeRevisionResponse> revokeRevision(RevokeRevisionRequest revokeRevisionRequest) This operation revokes subscribers' access to a revision.
- Parameters:
revokeRevisionRequest
-- Returns:
- A Java Future containing the result of the RevokeRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
revokeRevision
default CompletableFuture<RevokeRevisionResponse> revokeRevision(Consumer<RevokeRevisionRequest.Builder> revokeRevisionRequest) This operation revokes subscribers' access to a revision.
This is a convenience which creates an instance of the
RevokeRevisionRequest.Builder
avoiding the need to create one manually viaRevokeRevisionRequest.builder()
- Parameters:
revokeRevisionRequest
- AConsumer
that will call methods onRevokeRevisionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the RevokeRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
sendDataSetNotification
default CompletableFuture<SendDataSetNotificationResponse> sendDataSetNotification(SendDataSetNotificationRequest sendDataSetNotificationRequest) The type of event associated with the data set.
- Parameters:
sendDataSetNotificationRequest
-- Returns:
- A Java Future containing the result of the SendDataSetNotification operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
sendDataSetNotification
default CompletableFuture<SendDataSetNotificationResponse> sendDataSetNotification(Consumer<SendDataSetNotificationRequest.Builder> sendDataSetNotificationRequest) The type of event associated with the data set.
This is a convenience which creates an instance of the
SendDataSetNotificationRequest.Builder
avoiding the need to create one manually viaSendDataSetNotificationRequest.builder()
- Parameters:
sendDataSetNotificationRequest
- AConsumer
that will call methods onSendDataSetNotificationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the SendDataSetNotification operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startJob
This operation starts a job.
- Parameters:
startJobRequest
-- Returns:
- A Java Future containing the result of the StartJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startJob
default CompletableFuture<StartJobResponse> startJob(Consumer<StartJobRequest.Builder> startJobRequest) This operation starts a job.
This is a convenience which creates an instance of the
StartJobRequest.Builder
avoiding the need to create one manually viaStartJobRequest.builder()
- Parameters:
startJobRequest
- AConsumer
that will call methods onStartJobRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
This operation tags a resource.
- 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.- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) This operation tags a 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:
- 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.- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) This operation removes one or more tags from a 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.- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) This operation removes one or more tags from a 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.- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAsset
This operation updates an asset.
- Parameters:
updateAssetRequest
-- Returns:
- A Java Future containing the result of the UpdateAsset operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAsset
default CompletableFuture<UpdateAssetResponse> updateAsset(Consumer<UpdateAssetRequest.Builder> updateAssetRequest) This operation updates an asset.
This is a convenience which creates an instance of the
UpdateAssetRequest.Builder
avoiding the need to create one manually viaUpdateAssetRequest.builder()
- Parameters:
updateAssetRequest
- AConsumer
that will call methods onUpdateAssetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateAsset operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateDataSet
default CompletableFuture<UpdateDataSetResponse> updateDataSet(UpdateDataSetRequest updateDataSetRequest) This operation updates a data set.
- Parameters:
updateDataSetRequest
-- Returns:
- A Java Future containing the result of the UpdateDataSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateDataSet
default CompletableFuture<UpdateDataSetResponse> updateDataSet(Consumer<UpdateDataSetRequest.Builder> updateDataSetRequest) This operation updates a data set.
This is a convenience which creates an instance of the
UpdateDataSetRequest.Builder
avoiding the need to create one manually viaUpdateDataSetRequest.builder()
- Parameters:
updateDataSetRequest
- AConsumer
that will call methods onUpdateDataSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateDataSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateEventAction
default CompletableFuture<UpdateEventActionResponse> updateEventAction(UpdateEventActionRequest updateEventActionRequest) This operation updates the event action.
- Parameters:
updateEventActionRequest
-- Returns:
- A Java Future containing the result of the UpdateEventAction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateEventAction
default CompletableFuture<UpdateEventActionResponse> updateEventAction(Consumer<UpdateEventActionRequest.Builder> updateEventActionRequest) This operation updates the event action.
This is a convenience which creates an instance of the
UpdateEventActionRequest.Builder
avoiding the need to create one manually viaUpdateEventActionRequest.builder()
- Parameters:
updateEventActionRequest
- AConsumer
that will call methods onUpdateEventActionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateEventAction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRevision
default CompletableFuture<UpdateRevisionResponse> updateRevision(UpdateRevisionRequest updateRevisionRequest) This operation updates a revision.
- Parameters:
updateRevisionRequest
-- Returns:
- A Java Future containing the result of the UpdateRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRevision
default CompletableFuture<UpdateRevisionResponse> updateRevision(Consumer<UpdateRevisionRequest.Builder> updateRevisionRequest) This operation updates a revision.
This is a convenience which creates an instance of the
UpdateRevisionRequest.Builder
avoiding the need to create one manually viaUpdateRevisionRequest.builder()
- Parameters:
updateRevisionRequest
- AConsumer
that will call methods onUpdateRevisionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource couldn't be found.
- ThrottlingException The limit on the number of requests per second was exceeded.
- AccessDeniedException Access to the resource is denied.
- ConflictException The request couldn't be completed because it conflicted with the current state of the resource.
- ValidationException The request was invalid.
- InternalServerException An exception occurred with the service.
- 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.
- DataExchangeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- 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 aDataExchangeAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aDataExchangeAsyncClient
.
-