@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProductAdvertisingAPIClient extends AmazonWebServiceClient implements ProductAdvertisingAPI
The Product Advertising API provides programmatic access to Amazon’s product selection and discovery functionality so that developers like you can advertise Amazon products to monetize your website. The Product Advertising API helps you advertise Amazon products using product search and look up capability, product information and features such as Customer Reviews, Similar Products, Wish Lists and New and Used listings.
| Modifier and Type | Field and Description |
|---|---|
protected static ClientConfigurationFactory |
configFactory
Client configuration factory providing ClientConfigurations tailored to this client
|
ENDPOINT_PREFIX| Constructor and Description |
|---|
ProductAdvertisingAPIClient()
Deprecated.
|
ProductAdvertisingAPIClient(AWSCredentials awsCredentials)
Deprecated.
use
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) for example:
ProductAdvertisingAPIClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
ProductAdvertisingAPIClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Deprecated.
use
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIClientBuilder#withClientConfiguration(ClientConfiguration) |
ProductAdvertisingAPIClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
use
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) |
ProductAdvertisingAPIClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Deprecated.
use
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIClientBuilder#withClientConfiguration(ClientConfiguration) |
ProductAdvertisingAPIClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Deprecated.
use
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIClientBuilder#withClientConfiguration(ClientConfiguration) and
ProductAdvertisingAPIClientBuilder#withMetricsCollector(RequestMetricCollector) |
ProductAdvertisingAPIClient(ClientConfiguration clientConfiguration)
Deprecated.
use
ProductAdvertisingAPIClientBuilder#withClientConfiguration(ClientConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
static ProductAdvertisingAPIClientBuilder |
builder() |
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetRecommendationsResult |
getRecommendations(GetRecommendationsRequest request)
GetRecommendations operation allows associates to retrieve a set of product recommendations from Amazon catalog
complementary to the input content in JSON format.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion, shutdownprotected static final ClientConfigurationFactory configFactory
@Deprecated public ProductAdvertisingAPIClient()
ProductAdvertisingAPIClientBuilder.defaultClient()All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain@Deprecated public ProductAdvertisingAPIClient(ClientConfiguration clientConfiguration)
ProductAdvertisingAPIClientBuilder#withClientConfiguration(ClientConfiguration)All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling how this client connects to ProductAdvertisingAPI (ex: proxy
settings, retry counts, etc.).DefaultAWSCredentialsProviderChain@Deprecated public ProductAdvertisingAPIClient(AWSCredentials awsCredentials)
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) for example:
ProductAdvertisingAPIClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.@Deprecated
public ProductAdvertisingAPIClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIClientBuilder#withClientConfiguration(ClientConfiguration)All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration - The client configuration options controlling how this client connects to ProductAdvertisingAPI (ex: proxy
settings, retry counts, etc.).@Deprecated public ProductAdvertisingAPIClient(AWSCredentialsProvider awsCredentialsProvider)
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider)All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.@Deprecated
public ProductAdvertisingAPIClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIClientBuilder#withClientConfiguration(ClientConfiguration)All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this client connects to ProductAdvertisingAPI (ex: proxy
settings, retry counts, etc.).@Deprecated
public ProductAdvertisingAPIClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
ProductAdvertisingAPIClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIClientBuilder#withClientConfiguration(ClientConfiguration) and
ProductAdvertisingAPIClientBuilder#withMetricsCollector(RequestMetricCollector)All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this client connects to ProductAdvertisingAPI (ex: proxy
settings, retry counts, etc.).requestMetricCollector - optional request metric collectorpublic static ProductAdvertisingAPIClientBuilder builder()
public GetRecommendationsResult getRecommendations(GetRecommendationsRequest request)
getRecommendations in interface ProductAdvertisingAPIgetRecommendationsRequest - It contains request parameters for the GetRecommendations operation. You can specify up to X number of
parameters for each request. Specify the parameters in JSON as part of the body of the request.AccessDeniedException - Model for AccessDeniedExceptionIncompleteSignatureException - Model for IncompleteSignatureExceptionInvalidSignatureException - Model for InvalidSignatureExceptionRequestExpiredException - Model for RequestExpiredExceptionTooManyRequestsException - Model for ThrottlingExceptionUnrecognizedClientException - Model for UnrecognizedClientExceptionUnknownOperationException - Model for UnknownOperationExceptionValidationException - Model for ValidationExceptionpublic ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface ProductAdvertisingAPIrequest - The originally executed request