Class AbstractAWSMarketplaceCommerceAnalyticsAsync
java.lang.Object
com.amazonaws.services.marketplacecommerceanalytics.AbstractAWSMarketplaceCommerceAnalytics
com.amazonaws.services.marketplacecommerceanalytics.AbstractAWSMarketplaceCommerceAnalyticsAsync
- All Implemented Interfaces:
AWSMarketplaceCommerceAnalytics
,AWSMarketplaceCommerceAnalyticsAsync
public class AbstractAWSMarketplaceCommerceAnalyticsAsync
extends AbstractAWSMarketplaceCommerceAnalytics
implements AWSMarketplaceCommerceAnalyticsAsync
Abstract implementation of
AWSMarketplaceCommerceAnalyticsAsync
.
Convenient method forms pass through to the corresponding overload that takes
a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGiven a data set type and data set publication date, asynchronously publishes the requested data set to the specified S3 bucket and notifies the specified SNS topic once the data is available.generateDataSetAsync
(GenerateDataSetRequest request, AsyncHandler<GenerateDataSetRequest, GenerateDataSetResult> asyncHandler) Given a data set type and data set publication date, asynchronously publishes the requested data set to the specified S3 bucket and notifies the specified SNS topic once the data is available.Methods inherited from class com.amazonaws.services.marketplacecommerceanalytics.AbstractAWSMarketplaceCommerceAnalytics
generateDataSet, getCachedResponseMetadata, setEndpoint, setRegion, shutdown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amazonaws.services.marketplacecommerceanalytics.AWSMarketplaceCommerceAnalytics
generateDataSet, getCachedResponseMetadata, setEndpoint, setRegion, shutdown
-
Constructor Details
-
AbstractAWSMarketplaceCommerceAnalyticsAsync
protected AbstractAWSMarketplaceCommerceAnalyticsAsync()
-
-
Method Details
-
generateDataSetAsync
Description copied from interface:AWSMarketplaceCommerceAnalyticsAsync
Given a data set type and data set publication date, asynchronously publishes the requested data set to the specified S3 bucket and notifies the specified SNS topic once the data is available. Returns a unique request identifier that can be used to correlate requests with notifications from the SNS topic. Data sets will be published in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv. If a file with the same name already exists (e.g. if the same data set is requested twice), the original file will be overwritten by the new file. Requires a Role with an attached permissions policy providing Allow permissions for the following actions: s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.- Specified by:
generateDataSetAsync
in interfaceAWSMarketplaceCommerceAnalyticsAsync
- Parameters:
request
- Container for the parameters to the GenerateDataSet operation.- Returns:
- A Java Future containing the result of the GenerateDataSet operation returned by the service.
-
generateDataSetAsync
public Future<GenerateDataSetResult> generateDataSetAsync(GenerateDataSetRequest request, AsyncHandler<GenerateDataSetRequest, GenerateDataSetResult> asyncHandler) Description copied from interface:AWSMarketplaceCommerceAnalyticsAsync
Given a data set type and data set publication date, asynchronously publishes the requested data set to the specified S3 bucket and notifies the specified SNS topic once the data is available. Returns a unique request identifier that can be used to correlate requests with notifications from the SNS topic. Data sets will be published in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv. If a file with the same name already exists (e.g. if the same data set is requested twice), the original file will be overwritten by the new file. Requires a Role with an attached permissions policy providing Allow permissions for the following actions: s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.- Specified by:
generateDataSetAsync
in interfaceAWSMarketplaceCommerceAnalyticsAsync
- Parameters:
request
- Container for the parameters to the GenerateDataSet operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GenerateDataSet operation returned by the service.
-