jsonErrorUnmarshallers;
/**
* Constructs a new client to invoke service methods on AmazonPinpoint. A
* credentials provider chain will be used that searches for credentials in
* this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Instance profile credentials delivered through the Amazon EC2
* metadata service
*
*
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
*
* @see DefaultAWSCredentialsProviderChain
*/
@Deprecated
public AmazonPinpointClient() {
this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());
}
/**
* Constructs a new client to invoke service methods on AmazonPinpoint. A
* credentials provider chain will be used that searches for credentials in
* this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Instance profile credentials delivered through the Amazon EC2
* metadata service
*
*
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
*
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonPinpoint (ex: proxy
* settings, retry counts, etc.).
* @see DefaultAWSCredentialsProviderChain
*/
@Deprecated
public AmazonPinpointClient(ClientConfiguration clientConfiguration) {
this(new DefaultAWSCredentialsProviderChain(), clientConfiguration);
}
/**
* Constructs a new client to invoke service methods on AmazonPinpoint using
* the specified AWS account credentials.
*
* The client requests are authenticated using the {@link AWSCredentials}
* provided in this constructor. Static AWSCredentials can be passed for
* quick testing. However, it is strongly recommended to use Amazon Cognito
* vended temporary credentials for use in production. This can be achieved
* by using {@link AWSMobileClient}. Please see
* https://aws-amplify.github.io/docs/android/authentication for
* instructions on how to enable {@link AWSMobileClient}.
*
*
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
* @Override
* public void onResult(final UserStateDetails details) {
* AmazonPinpointClient client = new AmazonPinpointClient(AWSMobileClient.getInstance());
* }
*
* @Override
* public void onError(final Exception e) {
* e.printStackTrace();
* }
* });
*
*
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
*
* @param awsCredentials The AWS credentials (access key ID and secret key)
* to use when authenticating with AWS services.
*/
public AmazonPinpointClient(AWSCredentials awsCredentials) {
this(awsCredentials, new ClientConfiguration());
}
/**
* Constructs a new client to invoke service methods on AmazonPinpoint using
* the specified AWS account credentials and client configuration options.
*
* The client requests are authenticated using the {@link AWSCredentials}
* provided in this constructor. Static AWSCredentials can be passed for
* quick testing. However, it is strongly recommended to use Amazon Cognito
* vended temporary credentials for use in production. This can be achieved
* by using {@link AWSMobileClient}. Please see
* https://aws-amplify.github.io/docs/android/authentication for
* instructions on how to enable {@link AWSMobileClient}.
*
*
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
* @Override
* public void onResult(final UserStateDetails details) {
* AmazonPinpointClient client = new AmazonPinpointClient(AWSMobileClient.getInstance());
* }
*
* @Override
* public void onError(final Exception e) {
* e.printStackTrace();
* }
* });
*
*
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
*
* @param awsCredentials The AWS credentials (access key ID and secret key)
* to use when authenticating with AWS services.
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonPinpoint (ex: proxy
* settings, retry counts, etc.).
*/
public AmazonPinpointClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration) {
this(new StaticCredentialsProvider(awsCredentials), clientConfiguration);
}
/**
* Constructs a new client to invoke service methods on AmazonPinpoint using
* the specified AWS account credentials provider.
*
* The client requests are authenticated using the {@link AWSCredentials}
* provided in this constructor. Static AWSCredentials can be passed for
* quick testing. However, it is strongly recommended to use Amazon Cognito
* vended temporary credentials for use in production. This can be achieved
* by using {@link AWSMobileClient}. Please see
* https://aws-amplify.github.io/docs/android/authentication for
* instructions on how to enable {@link AWSMobileClient}.
*
*
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
* @Override
* public void onResult(final UserStateDetails details) {
* AmazonPinpointClient client = new AmazonPinpointClient(AWSMobileClient.getInstance());
* }
*
* @Override
* public void onError(final Exception e) {
* e.printStackTrace();
* }
* });
*
*
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
*
* @param awsCredentialsProvider The AWS credentials provider which will
* provide credentials to authenticate requests with AWS
* services.
*/
public AmazonPinpointClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, new ClientConfiguration());
}
/**
* Constructs a new client to invoke service methods on AmazonPinpoint using
* the specified AWS account credentials provider and client configuration
* options.
*
* The client requests are authenticated using the {@link AWSCredentials}
* provided in this constructor. Static AWSCredentials can be passed for
* quick testing. However, it is strongly recommended to use Amazon Cognito
* vended temporary credentials for use in production. This can be achieved
* by using {@link AWSMobileClient}. Please see
* https://aws-amplify.github.io/docs/android/authentication for
* instructions on how to enable {@link AWSMobileClient}.
*
*
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
* @Override
* public void onResult(final UserStateDetails details) {
* AmazonPinpointClient client = new AmazonPinpointClient(AWSMobileClient.getInstance());
* }
*
* @Override
* public void onError(final Exception e) {
* e.printStackTrace();
* }
* });
*
*
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
*
* @param awsCredentialsProvider The AWS credentials provider which will
* provide credentials to authenticate requests with AWS
* services.
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonPinpoint (ex: proxy
* settings, retry counts, etc.).
*/
public AmazonPinpointClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, new UrlHttpClient(clientConfiguration));
}
/**
* Constructs a new client to invoke service methods on AmazonPinpoint using
* the specified AWS account credentials provider, client configuration
* options and request metric collector.
*
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
*
* @param awsCredentialsProvider The AWS credentials provider which will
* provide credentials to authenticate requests with AWS
* services.
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonPinpoint (ex: proxy
* settings, retry counts, etc.).
* @param requestMetricCollector optional request metric collector
*/
@Deprecated
public AmazonPinpointClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector) {
super(adjustClientConfiguration(clientConfiguration), requestMetricCollector);
this.awsCredentialsProvider = awsCredentialsProvider;
init();
}
/**
* Constructs a new client to invoke service methods on AmazonPinpoint using
* the specified AWS account credentials provider, client configuration
* options and request metric collector.
*
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
*
* @param awsCredentialsProvider The AWS credentials provider which will
* provide credentials to authenticate requests with AWS
* services.
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonPinpoint (ex: proxy
* settings, retry counts, etc.).
* @param httpClient A http client
*/
public AmazonPinpointClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration, HttpClient httpClient) {
super(adjustClientConfiguration(clientConfiguration), httpClient);
this.awsCredentialsProvider = awsCredentialsProvider;
init();
}
private void init() {
jsonErrorUnmarshallers = new ArrayList();
jsonErrorUnmarshallers.add(new BadRequestExceptionUnmarshaller());
jsonErrorUnmarshallers.add(new ForbiddenExceptionUnmarshaller());
jsonErrorUnmarshallers.add(new InternalServerErrorExceptionUnmarshaller());
jsonErrorUnmarshallers.add(new MethodNotAllowedExceptionUnmarshaller());
jsonErrorUnmarshallers.add(new NotFoundExceptionUnmarshaller());
jsonErrorUnmarshallers.add(new TooManyRequestsExceptionUnmarshaller());
jsonErrorUnmarshallers.add(new JsonErrorUnmarshaller());
// calling this.setEndPoint(...) will also modify the signer accordingly
this.setEndpoint("pinpoint.us-east-1.amazonaws.com");
this.endpointPrefix = "pinpoint";
HandlerChainFactory chainFactory = new HandlerChainFactory();
requestHandler2s.addAll(chainFactory.newRequestHandlerChain(
"/com/amazonaws/services/pinpoint/request.handlers"));
requestHandler2s.addAll(chainFactory.newRequestHandler2Chain(
"/com/amazonaws/services/pinpoint/request.handler2s"));
}
private static ClientConfiguration adjustClientConfiguration(ClientConfiguration orig) {
ClientConfiguration config = orig;
return config;
}
/**
* Creates or updates an app.
*
* @param createAppRequest
* @return createAppResult The response from the CreateApp service method,
* as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public CreateAppResult createApp(CreateAppRequest createAppRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(createAppRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateAppRequestMarshaller().marshall(createAppRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new CreateAppResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Creates or updates a campaign.
*
* @param createCampaignRequest
* @return createCampaignResult The response from the CreateCampaign service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public CreateCampaignResult createCampaign(CreateCampaignRequest createCampaignRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(createCampaignRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateCampaignRequestMarshaller().marshall(createCampaignRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new CreateCampaignResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Creates an export job.
*
* @param createExportJobRequest
* @return createExportJobResult The response from the CreateExportJob
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public CreateExportJobResult createExportJob(CreateExportJobRequest createExportJobRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(createExportJobRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateExportJobRequestMarshaller().marshall(createExportJobRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new CreateExportJobResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Creates or updates an import job.
*
* @param createImportJobRequest
* @return createImportJobResult The response from the CreateImportJob
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public CreateImportJobResult createImportJob(CreateImportJobRequest createImportJobRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(createImportJobRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateImportJobRequestMarshaller().marshall(createImportJobRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new CreateImportJobResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Used to create or update a segment.
*
* @param createSegmentRequest
* @return createSegmentResult The response from the CreateSegment service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public CreateSegmentResult createSegment(CreateSegmentRequest createSegmentRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(createSegmentRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateSegmentRequestMarshaller().marshall(createSegmentRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new CreateSegmentResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Delete an ADM channel.
*
* @param deleteAdmChannelRequest
* @return deleteAdmChannelResult The response from the DeleteAdmChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteAdmChannelResult deleteAdmChannel(DeleteAdmChannelRequest deleteAdmChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteAdmChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteAdmChannelRequestMarshaller().marshall(deleteAdmChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteAdmChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Deletes the APNs channel for an app.
*
* @param deleteApnsChannelRequest
* @return deleteApnsChannelResult The response from the DeleteApnsChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteApnsChannelResult deleteApnsChannel(
DeleteApnsChannelRequest deleteApnsChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteApnsChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteApnsChannelRequestMarshaller()
.marshall(deleteApnsChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteApnsChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Delete an APNS sandbox channel.
*
* @param deleteApnsSandboxChannelRequest
* @return deleteApnsSandboxChannelResult The response from the
* DeleteApnsSandboxChannel service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteApnsSandboxChannelResult deleteApnsSandboxChannel(
DeleteApnsSandboxChannelRequest deleteApnsSandboxChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteApnsSandboxChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteApnsSandboxChannelRequestMarshaller()
.marshall(deleteApnsSandboxChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteApnsSandboxChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Delete an APNS VoIP channel
*
* @param deleteApnsVoipChannelRequest
* @return deleteApnsVoipChannelResult The response from the
* DeleteApnsVoipChannel service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteApnsVoipChannelResult deleteApnsVoipChannel(
DeleteApnsVoipChannelRequest deleteApnsVoipChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteApnsVoipChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteApnsVoipChannelRequestMarshaller()
.marshall(deleteApnsVoipChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteApnsVoipChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Delete an APNS VoIP sandbox channel
*
* @param deleteApnsVoipSandboxChannelRequest
* @return deleteApnsVoipSandboxChannelResult The response from the
* DeleteApnsVoipSandboxChannel service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteApnsVoipSandboxChannelResult deleteApnsVoipSandboxChannel(
DeleteApnsVoipSandboxChannelRequest deleteApnsVoipSandboxChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteApnsVoipSandboxChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteApnsVoipSandboxChannelRequestMarshaller()
.marshall(deleteApnsVoipSandboxChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteApnsVoipSandboxChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Deletes an app.
*
* @param deleteAppRequest
* @return deleteAppResult The response from the DeleteApp service method,
* as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteAppResult deleteApp(DeleteAppRequest deleteAppRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteAppRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteAppRequestMarshaller().marshall(deleteAppRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteAppResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Delete a BAIDU GCM channel
*
* @param deleteBaiduChannelRequest
* @return deleteBaiduChannelResult The response from the DeleteBaiduChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteBaiduChannelResult deleteBaiduChannel(
DeleteBaiduChannelRequest deleteBaiduChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteBaiduChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteBaiduChannelRequestMarshaller()
.marshall(deleteBaiduChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteBaiduChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Deletes a campaign.
*
* @param deleteCampaignRequest
* @return deleteCampaignResult The response from the DeleteCampaign service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteCampaignResult deleteCampaign(DeleteCampaignRequest deleteCampaignRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteCampaignRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteCampaignRequestMarshaller().marshall(deleteCampaignRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteCampaignResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Delete an email channel.
*
* @param deleteEmailChannelRequest
* @return deleteEmailChannelResult The response from the DeleteEmailChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteEmailChannelResult deleteEmailChannel(
DeleteEmailChannelRequest deleteEmailChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteEmailChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteEmailChannelRequestMarshaller()
.marshall(deleteEmailChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteEmailChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Deletes an endpoint.
*
* @param deleteEndpointRequest
* @return deleteEndpointResult The response from the DeleteEndpoint service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest deleteEndpointRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteEndpointRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteEndpointRequestMarshaller().marshall(deleteEndpointRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteEndpointResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Deletes the event stream for an app.
*
* @param deleteEventStreamRequest
* @return deleteEventStreamResult The response from the DeleteEventStream
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteEventStreamResult deleteEventStream(
DeleteEventStreamRequest deleteEventStreamRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteEventStreamRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteEventStreamRequestMarshaller()
.marshall(deleteEventStreamRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteEventStreamResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Deletes the GCM channel for an app.
*
* @param deleteGcmChannelRequest
* @return deleteGcmChannelResult The response from the DeleteGcmChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteGcmChannelResult deleteGcmChannel(DeleteGcmChannelRequest deleteGcmChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteGcmChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteGcmChannelRequestMarshaller().marshall(deleteGcmChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteGcmChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Deletes a segment.
*
* @param deleteSegmentRequest
* @return deleteSegmentResult The response from the DeleteSegment service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteSegmentResult deleteSegment(DeleteSegmentRequest deleteSegmentRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteSegmentRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteSegmentRequestMarshaller().marshall(deleteSegmentRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteSegmentResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Delete an SMS channel.
*
* @param deleteSmsChannelRequest
* @return deleteSmsChannelResult The response from the DeleteSmsChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteSmsChannelResult deleteSmsChannel(DeleteSmsChannelRequest deleteSmsChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteSmsChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteSmsChannelRequestMarshaller().marshall(deleteSmsChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteSmsChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Deletes endpoints that are associated with a User ID.
*
* @param deleteUserEndpointsRequest
* @return deleteUserEndpointsResult The response from the
* DeleteUserEndpoints service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteUserEndpointsResult deleteUserEndpoints(
DeleteUserEndpointsRequest deleteUserEndpointsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteUserEndpointsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteUserEndpointsRequestMarshaller()
.marshall(deleteUserEndpointsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteUserEndpointsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Delete an Voice channel
*
* @param deleteVoiceChannelRequest
* @return deleteVoiceChannelResult The response from the DeleteVoiceChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public DeleteVoiceChannelResult deleteVoiceChannel(
DeleteVoiceChannelRequest deleteVoiceChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(deleteVoiceChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteVoiceChannelRequestMarshaller()
.marshall(deleteVoiceChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new DeleteVoiceChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Get an ADM channel.
*
* @param getAdmChannelRequest
* @return getAdmChannelResult The response from the GetAdmChannel service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetAdmChannelResult getAdmChannel(GetAdmChannelRequest getAdmChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getAdmChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetAdmChannelRequestMarshaller().marshall(getAdmChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetAdmChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about the APNs channel for an app.
*
* @param getApnsChannelRequest
* @return getApnsChannelResult The response from the GetApnsChannel service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetApnsChannelResult getApnsChannel(GetApnsChannelRequest getApnsChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getApnsChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetApnsChannelRequestMarshaller().marshall(getApnsChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetApnsChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Get an APNS sandbox channel.
*
* @param getApnsSandboxChannelRequest
* @return getApnsSandboxChannelResult The response from the
* GetApnsSandboxChannel service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetApnsSandboxChannelResult getApnsSandboxChannel(
GetApnsSandboxChannelRequest getApnsSandboxChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getApnsSandboxChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetApnsSandboxChannelRequestMarshaller()
.marshall(getApnsSandboxChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetApnsSandboxChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Get an APNS VoIP channel
*
* @param getApnsVoipChannelRequest
* @return getApnsVoipChannelResult The response from the GetApnsVoipChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetApnsVoipChannelResult getApnsVoipChannel(
GetApnsVoipChannelRequest getApnsVoipChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getApnsVoipChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetApnsVoipChannelRequestMarshaller()
.marshall(getApnsVoipChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetApnsVoipChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Get an APNS VoIPSandbox channel
*
* @param getApnsVoipSandboxChannelRequest
* @return getApnsVoipSandboxChannelResult The response from the
* GetApnsVoipSandboxChannel service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetApnsVoipSandboxChannelResult getApnsVoipSandboxChannel(
GetApnsVoipSandboxChannelRequest getApnsVoipSandboxChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getApnsVoipSandboxChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetApnsVoipSandboxChannelRequestMarshaller()
.marshall(getApnsVoipSandboxChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetApnsVoipSandboxChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about an app.
*
* @param getAppRequest
* @return getAppResult The response from the GetApp service method, as
* returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetAppResult getApp(GetAppRequest getAppRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getAppRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetAppRequestMarshaller().marshall(getAppRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetAppResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Used to request the settings for an app.
*
* @param getApplicationSettingsRequest
* @return getApplicationSettingsResult The response from the
* GetApplicationSettings service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetApplicationSettingsResult getApplicationSettings(
GetApplicationSettingsRequest getApplicationSettingsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getApplicationSettingsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetApplicationSettingsRequestMarshaller()
.marshall(getApplicationSettingsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetApplicationSettingsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about your apps.
*
* @param getAppsRequest
* @return getAppsResult The response from the GetApps service method, as
* returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetAppsResult getApps(GetAppsRequest getAppsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getAppsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetAppsRequestMarshaller().marshall(getAppsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetAppsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Get a BAIDU GCM channel
*
* @param getBaiduChannelRequest
* @return getBaiduChannelResult The response from the GetBaiduChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetBaiduChannelResult getBaiduChannel(GetBaiduChannelRequest getBaiduChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getBaiduChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetBaiduChannelRequestMarshaller().marshall(getBaiduChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetBaiduChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about a campaign.
*
* @param getCampaignRequest
* @return getCampaignResult The response from the GetCampaign service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetCampaignResult getCampaign(GetCampaignRequest getCampaignRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getCampaignRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetCampaignRequestMarshaller().marshall(getCampaignRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetCampaignResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about the activity performed by a campaign.
*
* @param getCampaignActivitiesRequest
* @return getCampaignActivitiesResult The response from the
* GetCampaignActivities service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetCampaignActivitiesResult getCampaignActivities(
GetCampaignActivitiesRequest getCampaignActivitiesRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getCampaignActivitiesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetCampaignActivitiesRequestMarshaller()
.marshall(getCampaignActivitiesRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetCampaignActivitiesResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about a specific version of a campaign.
*
* @param getCampaignVersionRequest
* @return getCampaignVersionResult The response from the GetCampaignVersion
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetCampaignVersionResult getCampaignVersion(
GetCampaignVersionRequest getCampaignVersionRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getCampaignVersionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetCampaignVersionRequestMarshaller()
.marshall(getCampaignVersionRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetCampaignVersionResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about your campaign versions.
*
* @param getCampaignVersionsRequest
* @return getCampaignVersionsResult The response from the
* GetCampaignVersions service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetCampaignVersionsResult getCampaignVersions(
GetCampaignVersionsRequest getCampaignVersionsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getCampaignVersionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetCampaignVersionsRequestMarshaller()
.marshall(getCampaignVersionsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetCampaignVersionsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about your campaigns.
*
* @param getCampaignsRequest
* @return getCampaignsResult The response from the GetCampaigns service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetCampaignsResult getCampaigns(GetCampaignsRequest getCampaignsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getCampaignsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetCampaignsRequestMarshaller().marshall(getCampaignsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetCampaignsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Get all channels.
*
* @param getChannelsRequest
* @return getChannelsResult The response from the GetChannels service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetChannelsResult getChannels(GetChannelsRequest getChannelsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getChannelsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetChannelsRequestMarshaller().marshall(getChannelsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetChannelsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Get an email channel.
*
* @param getEmailChannelRequest
* @return getEmailChannelResult The response from the GetEmailChannel
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetEmailChannelResult getEmailChannel(GetEmailChannelRequest getEmailChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getEmailChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetEmailChannelRequestMarshaller().marshall(getEmailChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetEmailChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about an endpoint.
*
* @param getEndpointRequest
* @return getEndpointResult The response from the GetEndpoint service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetEndpointResult getEndpoint(GetEndpointRequest getEndpointRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getEndpointRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetEndpointRequestMarshaller().marshall(getEndpointRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetEndpointResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns the event stream for an app.
*
* @param getEventStreamRequest
* @return getEventStreamResult The response from the GetEventStream service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetEventStreamResult getEventStream(GetEventStreamRequest getEventStreamRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getEventStreamRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetEventStreamRequestMarshaller().marshall(getEventStreamRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetEventStreamResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about an export job.
*
* @param getExportJobRequest
* @return getExportJobResult The response from the GetExportJob service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetExportJobResult getExportJob(GetExportJobRequest getExportJobRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getExportJobRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetExportJobRequestMarshaller().marshall(getExportJobRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetExportJobResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about your export jobs.
*
* @param getExportJobsRequest
* @return getExportJobsResult The response from the GetExportJobs service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetExportJobsResult getExportJobs(GetExportJobsRequest getExportJobsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getExportJobsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetExportJobsRequestMarshaller().marshall(getExportJobsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetExportJobsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about the GCM channel for an app.
*
* @param getGcmChannelRequest
* @return getGcmChannelResult The response from the GetGcmChannel service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetGcmChannelResult getGcmChannel(GetGcmChannelRequest getGcmChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getGcmChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetGcmChannelRequestMarshaller().marshall(getGcmChannelRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetGcmChannelResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about an import job.
*
* @param getImportJobRequest
* @return getImportJobResult The response from the GetImportJob service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetImportJobResult getImportJob(GetImportJobRequest getImportJobRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getImportJobRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetImportJobRequestMarshaller().marshall(getImportJobRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetImportJobResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about your import jobs.
*
* @param getImportJobsRequest
* @return getImportJobsResult The response from the GetImportJobs service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetImportJobsResult getImportJobs(GetImportJobsRequest getImportJobsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getImportJobsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetImportJobsRequestMarshaller().marshall(getImportJobsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetImportJobsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about a segment.
*
* @param getSegmentRequest
* @return getSegmentResult The response from the GetSegment service method,
* as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetSegmentResult getSegment(GetSegmentRequest getSegmentRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getSegmentRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetSegmentRequestMarshaller().marshall(getSegmentRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetSegmentResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns a list of export jobs for a specific segment.
*
* @param getSegmentExportJobsRequest
* @return getSegmentExportJobsResult The response from the
* GetSegmentExportJobs service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetSegmentExportJobsResult getSegmentExportJobs(
GetSegmentExportJobsRequest getSegmentExportJobsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getSegmentExportJobsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetSegmentExportJobsRequestMarshaller()
.marshall(getSegmentExportJobsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetSegmentExportJobsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns a list of import jobs for a specific segment.
*
* @param getSegmentImportJobsRequest
* @return getSegmentImportJobsResult The response from the
* GetSegmentImportJobs service method, as returned by
* AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetSegmentImportJobsResult getSegmentImportJobs(
GetSegmentImportJobsRequest getSegmentImportJobsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getSegmentImportJobsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetSegmentImportJobsRequestMarshaller()
.marshall(getSegmentImportJobsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetSegmentImportJobsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about a segment version.
*
* @param getSegmentVersionRequest
* @return getSegmentVersionResult The response from the GetSegmentVersion
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetSegmentVersionResult getSegmentVersion(
GetSegmentVersionRequest getSegmentVersionRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getSegmentVersionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetSegmentVersionRequestMarshaller()
.marshall(getSegmentVersionRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetSegmentVersionResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Returns information about your segment versions.
*
* @param getSegmentVersionsRequest
* @return getSegmentVersionsResult The response from the GetSegmentVersions
* service method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetSegmentVersionsResult getSegmentVersions(
GetSegmentVersionsRequest getSegmentVersionsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getSegmentVersionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetSegmentVersionsRequestMarshaller()
.marshall(getSegmentVersionsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetSegmentVersionsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Used to get information about your segments.
*
* @param getSegmentsRequest
* @return getSegmentsResult The response from the GetSegments service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetSegmentsResult getSegments(GetSegmentsRequest getSegmentsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getSegmentsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetSegmentsRequestMarshaller().marshall(getSegmentsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller unmarshaller = new GetSegmentsResultJsonUnmarshaller();
JsonResponseHandler responseHandler = new JsonResponseHandler(
unmarshaller);
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}
/**
* Get an SMS channel.
*
* @param getSmsChannelRequest
* @return getSmsChannelResult The response from the GetSmsChannel service
* method, as returned by AmazonPinpoint.
* @throws BadRequestException 400 response
* @throws InternalServerErrorException 500 response
* @throws ForbiddenException 403 response
* @throws NotFoundException 404 response
* @throws MethodNotAllowedException 405 response
* @throws TooManyRequestsException 429 response
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by
* AmazonPinpoint indicating either a problem with the data in
* the request, or a server side issue.
*/
public GetSmsChannelResult getSmsChannel(GetSmsChannelRequest getSmsChannelRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getSmsChannelRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response