All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.pinpointsmsvoicev2.AmazonPinpointSMSVoiceV2Client Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Pinpoint SMS Voice V2 module holds the client classes that are used for communicating with Amazon Pinpoint SMS Voice V2 Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.pinpointsmsvoicev2;

import org.w3c.dom.*;

import java.net.*;
import java.util.*;

import javax.annotation.Generated;

import org.apache.commons.logging.*;

import com.amazonaws.*;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.auth.*;

import com.amazonaws.handlers.*;
import com.amazonaws.http.*;
import com.amazonaws.internal.*;
import com.amazonaws.internal.auth.*;
import com.amazonaws.metrics.*;
import com.amazonaws.regions.*;
import com.amazonaws.transform.*;
import com.amazonaws.util.*;
import com.amazonaws.protocol.json.*;
import com.amazonaws.util.AWSRequestMetrics.Field;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.client.AwsSyncClientParams;
import com.amazonaws.client.builder.AdvancedConfig;

import com.amazonaws.services.pinpointsmsvoicev2.AmazonPinpointSMSVoiceV2ClientBuilder;

import com.amazonaws.AmazonServiceException;

import com.amazonaws.services.pinpointsmsvoicev2.model.*;

import com.amazonaws.services.pinpointsmsvoicev2.model.transform.*;

/**
 * Client for accessing Amazon Pinpoint SMS Voice V2. All service calls made using this client are blocking, and will
 * not return until the service call completes.
 * 

*

* Welcome to the AWS End User Messaging SMS and Voice, version 2 API Reference. This guide provides information * about AWS End User Messaging SMS and Voice, version 2 API resources, including supported HTTP methods, parameters, * and schemas. *

*

* Amazon Pinpoint is an Amazon Web Services service that you can use to engage with your recipients across multiple * messaging channels. The AWS End User Messaging SMS and Voice, version 2 API provides programmatic access to options * that are unique to the SMS and voice channels. AWS End User Messaging SMS and Voice, version 2 resources such as * phone numbers, sender IDs, and opt-out lists can be used by the Amazon Pinpoint API. *

*

* If you're new to AWS End User Messaging SMS and Voice, it's also helpful to review the AWS End User Messaging SMS User * Guide. The AWS End User Messaging SMS User Guide provides tutorials, code samples, and procedures that * demonstrate how to use AWS End User Messaging SMS and Voice features programmatically and how to integrate * functionality into mobile apps and other types of applications. The guide also provides key information, such as AWS * End User Messaging SMS and Voice integration with other Amazon Web Services services, and the quotas that apply to * use of the service. *

*

* Regional availability *

*

* The AWS End User Messaging SMS and Voice version 2 API Reference is available in several Amazon Web Services * Regions and it provides an endpoint for each of these Regions. For a list of all the Regions and endpoints where the * API is currently available, see Amazon Web Services Service * Endpoints and Amazon Pinpoint endpoints and * quotas in the Amazon Web Services General Reference. To learn more about Amazon Web Services Regions, see Managing Amazon Web Services Regions in * the Amazon Web Services General Reference. *

*

* In each Region, Amazon Web Services maintains multiple Availability Zones. These Availability Zones are physically * isolated from each other, but are united by private, low-latency, high-throughput, and highly redundant network * connections. These Availability Zones enable us to provide very high levels of availability and redundancy, while * also minimizing latency. To learn more about the number of Availability Zones that are available in each Region, see * Amazon Web Services Global Infrastructure. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonPinpointSMSVoiceV2Client extends AmazonWebServiceClient implements AmazonPinpointSMSVoiceV2 { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AmazonPinpointSMSVoiceV2.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "sms-voice"; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.0") .withSupportsCbor(false) .withSupportsIon(false) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServiceQuotaExceededException").withExceptionUnmarshaller( com.amazonaws.services.pinpointsmsvoicev2.model.transform.ServiceQuotaExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalServerException").withExceptionUnmarshaller( com.amazonaws.services.pinpointsmsvoicev2.model.transform.InternalServerExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.pinpointsmsvoicev2.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.pinpointsmsvoicev2.model.transform.ValidationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ThrottlingException").withExceptionUnmarshaller( com.amazonaws.services.pinpointsmsvoicev2.model.transform.ThrottlingExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.pinpointsmsvoicev2.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.pinpointsmsvoicev2.model.transform.ConflictExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.pinpointsmsvoicev2.model.AmazonPinpointSMSVoiceV2Exception.class)); public static AmazonPinpointSMSVoiceV2ClientBuilder builder() { return AmazonPinpointSMSVoiceV2ClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Amazon Pinpoint SMS Voice V2 using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonPinpointSMSVoiceV2Client(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Amazon Pinpoint SMS Voice V2 using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonPinpointSMSVoiceV2Client(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("sms-voice.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/pinpointsmsvoicev2/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/pinpointsmsvoicev2/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *

* Associates the specified origination identity with a pool. *

*

* If the origination identity is a phone number and is already associated with another pool, an error is returned. * A sender ID can be associated with multiple pools. *

*

* If the origination identity configuration doesn't match the pool's configuration, an error is returned. *

* * @param associateOriginationIdentityRequest * @return Result of the AssociateOriginationIdentity operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.AssociateOriginationIdentity * @see AWS API Documentation */ @Override public AssociateOriginationIdentityResult associateOriginationIdentity(AssociateOriginationIdentityRequest request) { request = beforeClientExecution(request); return executeAssociateOriginationIdentity(request); } @SdkInternalApi final AssociateOriginationIdentityResult executeAssociateOriginationIdentity(AssociateOriginationIdentityRequest associateOriginationIdentityRequest) { ExecutionContext executionContext = createExecutionContext(associateOriginationIdentityRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateOriginationIdentityRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(associateOriginationIdentityRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateOriginationIdentity"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AssociateOriginationIdentityResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Associate a protect configuration with a configuration set. This replaces the configuration sets current protect * configuration. A configuration set can only be associated with one protect configuration at a time. A protect * configuration can be associated with multiple configuration sets. *

* * @param associateProtectConfigurationRequest * @return Result of the AssociateProtectConfiguration operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.AssociateProtectConfiguration * @see AWS API Documentation */ @Override public AssociateProtectConfigurationResult associateProtectConfiguration(AssociateProtectConfigurationRequest request) { request = beforeClientExecution(request); return executeAssociateProtectConfiguration(request); } @SdkInternalApi final AssociateProtectConfigurationResult executeAssociateProtectConfiguration(AssociateProtectConfigurationRequest associateProtectConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(associateProtectConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateProtectConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(associateProtectConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateProtectConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AssociateProtectConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new configuration set. After you create the configuration set, you can add one or more event * destinations to it. *

*

* A configuration set is a set of rules that you apply to the SMS and voice messages that you send. *

*

* When you send a message, you can optionally specify a single configuration set. *

* * @param createConfigurationSetRequest * @return Result of the CreateConfigurationSet operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateConfigurationSet * @see AWS API Documentation */ @Override public CreateConfigurationSetResult createConfigurationSet(CreateConfigurationSetRequest request) { request = beforeClientExecution(request); return executeCreateConfigurationSet(request); } @SdkInternalApi final CreateConfigurationSetResult executeCreateConfigurationSet(CreateConfigurationSetRequest createConfigurationSetRequest) { ExecutionContext executionContext = createExecutionContext(createConfigurationSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateConfigurationSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createConfigurationSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateConfigurationSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateConfigurationSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new event destination in a configuration set. *

*

* An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon * Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information * about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS * topic. *

*

* Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a * reference to a single destination, such as a CloudWatch or Firehose destination. *

* * @param createEventDestinationRequest * @return Result of the CreateEventDestination operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateEventDestination * @see AWS API Documentation */ @Override public CreateEventDestinationResult createEventDestination(CreateEventDestinationRequest request) { request = beforeClientExecution(request); return executeCreateEventDestination(request); } @SdkInternalApi final CreateEventDestinationResult executeCreateEventDestination(CreateEventDestinationRequest createEventDestinationRequest) { ExecutionContext executionContext = createExecutionContext(createEventDestinationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEventDestinationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createEventDestinationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEventDestination"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEventDestinationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new opt-out list. *

*

* If the opt-out list name already exists, an error is returned. *

*

* An opt-out list is a list of phone numbers that are opted out, meaning you can't send SMS or voice messages to * them. If end user replies with the keyword "STOP," an entry for the phone number is added to the opt-out list. In * addition to STOP, your recipients can use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of * supported opt-out keywords, see SMS * opt out in the AWS End User Messaging SMS User Guide. *

* * @param createOptOutListRequest * @return Result of the CreateOptOutList operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateOptOutList * @see AWS API Documentation */ @Override public CreateOptOutListResult createOptOutList(CreateOptOutListRequest request) { request = beforeClientExecution(request); return executeCreateOptOutList(request); } @SdkInternalApi final CreateOptOutListResult executeCreateOptOutList(CreateOptOutListRequest createOptOutListRequest) { ExecutionContext executionContext = createExecutionContext(createOptOutListRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateOptOutListRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createOptOutListRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateOptOutList"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateOptOutListResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new pool and associates the specified origination identity to the pool. A pool can include one or more * phone numbers and SenderIds that are associated with your Amazon Web Services account. *

*

* The new pool inherits its configuration from the specified origination identity. This includes keywords, message * type, opt-out list, two-way configuration, and self-managed opt-out configuration. Deletion protection isn't * inherited from the origination identity and defaults to false. *

*

* If the origination identity is a phone number and is already associated with another pool, an error is returned. * A sender ID can be associated with multiple pools. *

* * @param createPoolRequest * @return Result of the CreatePool operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreatePool * @see AWS API Documentation */ @Override public CreatePoolResult createPool(CreatePoolRequest request) { request = beforeClientExecution(request); return executeCreatePool(request); } @SdkInternalApi final CreatePoolResult executeCreatePool(CreatePoolRequest createPoolRequest) { ExecutionContext executionContext = createExecutionContext(createPoolRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreatePoolRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createPoolRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePool"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreatePoolResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create a new protect configuration. By default all country rule sets for each capability are set to * ALLOW. Update the country rule sets using UpdateProtectConfigurationCountryRuleSet. A * protect configurations name is stored as a Tag with the key set to Name and value as the name of the * protect configuration. *

* * @param createProtectConfigurationRequest * @return Result of the CreateProtectConfiguration operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateProtectConfiguration * @see AWS API Documentation */ @Override public CreateProtectConfigurationResult createProtectConfiguration(CreateProtectConfigurationRequest request) { request = beforeClientExecution(request); return executeCreateProtectConfiguration(request); } @SdkInternalApi final CreateProtectConfigurationResult executeCreateProtectConfiguration(CreateProtectConfigurationRequest createProtectConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(createProtectConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateProtectConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createProtectConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateProtectConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateProtectConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new registration based on the RegistrationType field. *

* * @param createRegistrationRequest * @return Result of the CreateRegistration operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateRegistration * @see AWS API Documentation */ @Override public CreateRegistrationResult createRegistration(CreateRegistrationRequest request) { request = beforeClientExecution(request); return executeCreateRegistration(request); } @SdkInternalApi final CreateRegistrationResult executeCreateRegistration(CreateRegistrationRequest createRegistrationRequest) { ExecutionContext executionContext = createExecutionContext(createRegistrationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateRegistrationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createRegistrationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateRegistration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateRegistrationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Associate the registration with an origination identity such as a phone number or sender ID. *

* * @param createRegistrationAssociationRequest * @return Result of the CreateRegistrationAssociation operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateRegistrationAssociation * @see AWS API Documentation */ @Override public CreateRegistrationAssociationResult createRegistrationAssociation(CreateRegistrationAssociationRequest request) { request = beforeClientExecution(request); return executeCreateRegistrationAssociation(request); } @SdkInternalApi final CreateRegistrationAssociationResult executeCreateRegistrationAssociation(CreateRegistrationAssociationRequest createRegistrationAssociationRequest) { ExecutionContext executionContext = createExecutionContext(createRegistrationAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateRegistrationAssociationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createRegistrationAssociationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateRegistrationAssociation"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateRegistrationAssociationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is * 1MiB and valid file extensions are PDF, JPEG and PNG. For example, many sender ID registrations require a signed * “letter of authorization” (LOA) to be submitted. *

* * @param createRegistrationAttachmentRequest * @return Result of the CreateRegistrationAttachment operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateRegistrationAttachment * @see AWS API Documentation */ @Override public CreateRegistrationAttachmentResult createRegistrationAttachment(CreateRegistrationAttachmentRequest request) { request = beforeClientExecution(request); return executeCreateRegistrationAttachment(request); } @SdkInternalApi final CreateRegistrationAttachmentResult executeCreateRegistrationAttachment(CreateRegistrationAttachmentRequest createRegistrationAttachmentRequest) { ExecutionContext executionContext = createExecutionContext(createRegistrationAttachmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateRegistrationAttachmentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createRegistrationAttachmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateRegistrationAttachment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateRegistrationAttachmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create a new version of the registration and increase the VersionNumber. The previous version of the * registration becomes read-only. *

* * @param createRegistrationVersionRequest * @return Result of the CreateRegistrationVersion operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateRegistrationVersion * @see AWS API Documentation */ @Override public CreateRegistrationVersionResult createRegistrationVersion(CreateRegistrationVersionRequest request) { request = beforeClientExecution(request); return executeCreateRegistrationVersion(request); } @SdkInternalApi final CreateRegistrationVersionResult executeCreateRegistrationVersion(CreateRegistrationVersionRequest createRegistrationVersionRequest) { ExecutionContext executionContext = createExecutionContext(createRegistrationVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateRegistrationVersionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createRegistrationVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateRegistrationVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateRegistrationVersionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* You can only send messages to verified destination numbers when your account is in the sandbox. You can add up to * 10 verified destination numbers. *

* * @param createVerifiedDestinationNumberRequest * @return Result of the CreateVerifiedDestinationNumber operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.CreateVerifiedDestinationNumber * @see AWS API Documentation */ @Override public CreateVerifiedDestinationNumberResult createVerifiedDestinationNumber(CreateVerifiedDestinationNumberRequest request) { request = beforeClientExecution(request); return executeCreateVerifiedDestinationNumber(request); } @SdkInternalApi final CreateVerifiedDestinationNumberResult executeCreateVerifiedDestinationNumber( CreateVerifiedDestinationNumberRequest createVerifiedDestinationNumberRequest) { ExecutionContext executionContext = createExecutionContext(createVerifiedDestinationNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateVerifiedDestinationNumberRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createVerifiedDestinationNumberRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateVerifiedDestinationNumber"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateVerifiedDestinationNumberResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Removes the current account default protect configuration. *

* * @param deleteAccountDefaultProtectConfigurationRequest * @return Result of the DeleteAccountDefaultProtectConfiguration operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteAccountDefaultProtectConfiguration * @see AWS API Documentation */ @Override public DeleteAccountDefaultProtectConfigurationResult deleteAccountDefaultProtectConfiguration(DeleteAccountDefaultProtectConfigurationRequest request) { request = beforeClientExecution(request); return executeDeleteAccountDefaultProtectConfiguration(request); } @SdkInternalApi final DeleteAccountDefaultProtectConfigurationResult executeDeleteAccountDefaultProtectConfiguration( DeleteAccountDefaultProtectConfigurationRequest deleteAccountDefaultProtectConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(deleteAccountDefaultProtectConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAccountDefaultProtectConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteAccountDefaultProtectConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAccountDefaultProtectConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAccountDefaultProtectConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing configuration set. *

*

* A configuration set is a set of rules that you apply to voice and SMS messages that you send. In a configuration * set, you can specify a destination for specific types of events related to voice and SMS messages. *

* * @param deleteConfigurationSetRequest * @return Result of the DeleteConfigurationSet operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteConfigurationSet * @see AWS API Documentation */ @Override public DeleteConfigurationSetResult deleteConfigurationSet(DeleteConfigurationSetRequest request) { request = beforeClientExecution(request); return executeDeleteConfigurationSet(request); } @SdkInternalApi final DeleteConfigurationSetResult executeDeleteConfigurationSet(DeleteConfigurationSetRequest deleteConfigurationSetRequest) { ExecutionContext executionContext = createExecutionContext(deleteConfigurationSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteConfigurationSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteConfigurationSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteConfigurationSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteConfigurationSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing default message type on a configuration set. *

*

* A message type is a type of messages that you plan to send. If you send account-related messages or * time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages * that contain marketing material or other promotional content, choose Promotional. This setting applies to * your entire Amazon Web Services account. *

* * @param deleteDefaultMessageTypeRequest * @return Result of the DeleteDefaultMessageType operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteDefaultMessageType * @see AWS API Documentation */ @Override public DeleteDefaultMessageTypeResult deleteDefaultMessageType(DeleteDefaultMessageTypeRequest request) { request = beforeClientExecution(request); return executeDeleteDefaultMessageType(request); } @SdkInternalApi final DeleteDefaultMessageTypeResult executeDeleteDefaultMessageType(DeleteDefaultMessageTypeRequest deleteDefaultMessageTypeRequest) { ExecutionContext executionContext = createExecutionContext(deleteDefaultMessageTypeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDefaultMessageTypeRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteDefaultMessageTypeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDefaultMessageType"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDefaultMessageTypeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing default sender ID on a configuration set. *

*

* A default sender ID is the identity that appears on recipients' devices when they receive SMS messages. Support * for sender ID capabilities varies by country or region. *

* * @param deleteDefaultSenderIdRequest * @return Result of the DeleteDefaultSenderId operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteDefaultSenderId * @see AWS API Documentation */ @Override public DeleteDefaultSenderIdResult deleteDefaultSenderId(DeleteDefaultSenderIdRequest request) { request = beforeClientExecution(request); return executeDeleteDefaultSenderId(request); } @SdkInternalApi final DeleteDefaultSenderIdResult executeDeleteDefaultSenderId(DeleteDefaultSenderIdRequest deleteDefaultSenderIdRequest) { ExecutionContext executionContext = createExecutionContext(deleteDefaultSenderIdRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDefaultSenderIdRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDefaultSenderIdRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDefaultSenderId"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDefaultSenderIdResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing event destination. *

*

* An event destination is a location where you send response information about the messages that you send. For * example, when a message is delivered successfully, you can send information about that event to an Amazon * CloudWatch destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic. *

* * @param deleteEventDestinationRequest * @return Result of the DeleteEventDestination operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteEventDestination * @see AWS API Documentation */ @Override public DeleteEventDestinationResult deleteEventDestination(DeleteEventDestinationRequest request) { request = beforeClientExecution(request); return executeDeleteEventDestination(request); } @SdkInternalApi final DeleteEventDestinationResult executeDeleteEventDestination(DeleteEventDestinationRequest deleteEventDestinationRequest) { ExecutionContext executionContext = createExecutionContext(deleteEventDestinationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEventDestinationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteEventDestinationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEventDestination"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEventDestinationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing keyword from an origination phone number or pool. *

*

* A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or * phrase that an end user can send to your number to elicit a response, such as an informational message or a * special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and * Voice responds with a customizable message. *

*

* Keywords "HELP" and "STOP" can't be deleted or modified. *

* * @param deleteKeywordRequest * @return Result of the DeleteKeyword operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteKeyword * @see AWS API Documentation */ @Override public DeleteKeywordResult deleteKeyword(DeleteKeywordRequest request) { request = beforeClientExecution(request); return executeDeleteKeyword(request); } @SdkInternalApi final DeleteKeywordResult executeDeleteKeyword(DeleteKeywordRequest deleteKeywordRequest) { ExecutionContext executionContext = createExecutionContext(deleteKeywordRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteKeywordRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteKeywordRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteKeyword"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteKeywordResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an account-level monthly spending limit override for sending multimedia messages (MMS). Deleting a spend * limit override will set the EnforcedLimit to equal the MaxLimit, which is controlled by * Amazon Web Services. For more information on spend limits (quotas) see Quotas for Server Migration Service * in the Server Migration Service User Guide. *

* * @param deleteMediaMessageSpendLimitOverrideRequest * @return Result of the DeleteMediaMessageSpendLimitOverride operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteMediaMessageSpendLimitOverride * @see AWS API Documentation */ @Override public DeleteMediaMessageSpendLimitOverrideResult deleteMediaMessageSpendLimitOverride(DeleteMediaMessageSpendLimitOverrideRequest request) { request = beforeClientExecution(request); return executeDeleteMediaMessageSpendLimitOverride(request); } @SdkInternalApi final DeleteMediaMessageSpendLimitOverrideResult executeDeleteMediaMessageSpendLimitOverride( DeleteMediaMessageSpendLimitOverrideRequest deleteMediaMessageSpendLimitOverrideRequest) { ExecutionContext executionContext = createExecutionContext(deleteMediaMessageSpendLimitOverrideRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteMediaMessageSpendLimitOverrideRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteMediaMessageSpendLimitOverrideRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteMediaMessageSpendLimitOverride"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteMediaMessageSpendLimitOverrideResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are deleted. *

*

* If the specified opt-out list name doesn't exist or is in-use by an origination phone number or pool, an error is * returned. *

* * @param deleteOptOutListRequest * @return Result of the DeleteOptOutList operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteOptOutList * @see AWS API Documentation */ @Override public DeleteOptOutListResult deleteOptOutList(DeleteOptOutListRequest request) { request = beforeClientExecution(request); return executeDeleteOptOutList(request); } @SdkInternalApi final DeleteOptOutListResult executeDeleteOptOutList(DeleteOptOutListRequest deleteOptOutListRequest) { ExecutionContext executionContext = createExecutionContext(deleteOptOutListRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteOptOutListRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteOptOutListRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteOptOutList"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteOptOutListResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing opted out destination phone number from the specified opt-out list. *

*

* Each destination phone number can only be deleted once every 30 days. *

*

* If the specified destination phone number doesn't exist or if the opt-out list doesn't exist, an error is * returned. *

* * @param deleteOptedOutNumberRequest * @return Result of the DeleteOptedOutNumber operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteOptedOutNumber * @see AWS API Documentation */ @Override public DeleteOptedOutNumberResult deleteOptedOutNumber(DeleteOptedOutNumberRequest request) { request = beforeClientExecution(request); return executeDeleteOptedOutNumber(request); } @SdkInternalApi final DeleteOptedOutNumberResult executeDeleteOptedOutNumber(DeleteOptedOutNumberRequest deleteOptedOutNumberRequest) { ExecutionContext executionContext = createExecutionContext(deleteOptedOutNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteOptedOutNumberRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteOptedOutNumberRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteOptedOutNumber"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteOptedOutNumberResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing pool. Deleting a pool disassociates all origination identities from that pool. *

*

* If the pool status isn't active or if deletion protection is enabled, an error is returned. *

*

* A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds * that are associated with your Amazon Web Services account. *

* * @param deletePoolRequest * @return Result of the DeletePool operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeletePool * @see AWS API Documentation */ @Override public DeletePoolResult deletePool(DeletePoolRequest request) { request = beforeClientExecution(request); return executeDeletePool(request); } @SdkInternalApi final DeletePoolResult executeDeletePool(DeletePoolRequest deletePoolRequest) { ExecutionContext executionContext = createExecutionContext(deletePoolRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeletePoolRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deletePoolRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeletePool"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeletePoolResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Permanently delete the protect configuration. The protect configuration must have deletion protection disabled * and must not be associated as the account default protect configuration or associated with a configuration set. *

* * @param deleteProtectConfigurationRequest * @return Result of the DeleteProtectConfiguration operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteProtectConfiguration * @see AWS API Documentation */ @Override public DeleteProtectConfigurationResult deleteProtectConfiguration(DeleteProtectConfigurationRequest request) { request = beforeClientExecution(request); return executeDeleteProtectConfiguration(request); } @SdkInternalApi final DeleteProtectConfigurationResult executeDeleteProtectConfiguration(DeleteProtectConfigurationRequest deleteProtectConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(deleteProtectConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteProtectConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteProtectConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteProtectConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteProtectConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Permanently delete an existing registration from your account. *

* * @param deleteRegistrationRequest * @return Result of the DeleteRegistration operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteRegistration * @see AWS API Documentation */ @Override public DeleteRegistrationResult deleteRegistration(DeleteRegistrationRequest request) { request = beforeClientExecution(request); return executeDeleteRegistration(request); } @SdkInternalApi final DeleteRegistrationResult executeDeleteRegistration(DeleteRegistrationRequest deleteRegistrationRequest) { ExecutionContext executionContext = createExecutionContext(deleteRegistrationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteRegistrationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteRegistrationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteRegistration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteRegistrationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Permanently delete the specified registration attachment. *

* * @param deleteRegistrationAttachmentRequest * @return Result of the DeleteRegistrationAttachment operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteRegistrationAttachment * @see AWS API Documentation */ @Override public DeleteRegistrationAttachmentResult deleteRegistrationAttachment(DeleteRegistrationAttachmentRequest request) { request = beforeClientExecution(request); return executeDeleteRegistrationAttachment(request); } @SdkInternalApi final DeleteRegistrationAttachmentResult executeDeleteRegistrationAttachment(DeleteRegistrationAttachmentRequest deleteRegistrationAttachmentRequest) { ExecutionContext executionContext = createExecutionContext(deleteRegistrationAttachmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteRegistrationAttachmentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteRegistrationAttachmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteRegistrationAttachment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteRegistrationAttachmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete the value in a registration form field. *

* * @param deleteRegistrationFieldValueRequest * @return Result of the DeleteRegistrationFieldValue operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteRegistrationFieldValue * @see AWS API Documentation */ @Override public DeleteRegistrationFieldValueResult deleteRegistrationFieldValue(DeleteRegistrationFieldValueRequest request) { request = beforeClientExecution(request); return executeDeleteRegistrationFieldValue(request); } @SdkInternalApi final DeleteRegistrationFieldValueResult executeDeleteRegistrationFieldValue(DeleteRegistrationFieldValueRequest deleteRegistrationFieldValueRequest) { ExecutionContext executionContext = createExecutionContext(deleteRegistrationFieldValueRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteRegistrationFieldValueRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteRegistrationFieldValueRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteRegistrationFieldValue"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteRegistrationFieldValueResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an account-level monthly spending limit override for sending text messages. Deleting a spend limit * override will set the EnforcedLimit to equal the MaxLimit, which is controlled by * Amazon Web Services. For more information on spend limits (quotas) see Quotas in the AWS End User * Messaging SMS User Guide. *

* * @param deleteTextMessageSpendLimitOverrideRequest * @return Result of the DeleteTextMessageSpendLimitOverride operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteTextMessageSpendLimitOverride * @see AWS API Documentation */ @Override public DeleteTextMessageSpendLimitOverrideResult deleteTextMessageSpendLimitOverride(DeleteTextMessageSpendLimitOverrideRequest request) { request = beforeClientExecution(request); return executeDeleteTextMessageSpendLimitOverride(request); } @SdkInternalApi final DeleteTextMessageSpendLimitOverrideResult executeDeleteTextMessageSpendLimitOverride( DeleteTextMessageSpendLimitOverrideRequest deleteTextMessageSpendLimitOverrideRequest) { ExecutionContext executionContext = createExecutionContext(deleteTextMessageSpendLimitOverrideRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTextMessageSpendLimitOverrideRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteTextMessageSpendLimitOverrideRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTextMessageSpendLimitOverride"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteTextMessageSpendLimitOverrideResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete a verified destination phone number. *

* * @param deleteVerifiedDestinationNumberRequest * @return Result of the DeleteVerifiedDestinationNumber operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteVerifiedDestinationNumber * @see AWS API Documentation */ @Override public DeleteVerifiedDestinationNumberResult deleteVerifiedDestinationNumber(DeleteVerifiedDestinationNumberRequest request) { request = beforeClientExecution(request); return executeDeleteVerifiedDestinationNumber(request); } @SdkInternalApi final DeleteVerifiedDestinationNumberResult executeDeleteVerifiedDestinationNumber( DeleteVerifiedDestinationNumberRequest deleteVerifiedDestinationNumberRequest) { ExecutionContext executionContext = createExecutionContext(deleteVerifiedDestinationNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteVerifiedDestinationNumberRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteVerifiedDestinationNumberRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteVerifiedDestinationNumber"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteVerifiedDestinationNumberResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an account level monthly spend limit override for sending voice messages. Deleting a spend limit override * sets the EnforcedLimit equal to the MaxLimit, which is controlled by Amazon Web * Services. For more information on spending limits (quotas) see Quotas in the AWS End User * Messaging SMS User Guide. *

* * @param deleteVoiceMessageSpendLimitOverrideRequest * @return Result of the DeleteVoiceMessageSpendLimitOverride operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DeleteVoiceMessageSpendLimitOverride * @see AWS API Documentation */ @Override public DeleteVoiceMessageSpendLimitOverrideResult deleteVoiceMessageSpendLimitOverride(DeleteVoiceMessageSpendLimitOverrideRequest request) { request = beforeClientExecution(request); return executeDeleteVoiceMessageSpendLimitOverride(request); } @SdkInternalApi final DeleteVoiceMessageSpendLimitOverrideResult executeDeleteVoiceMessageSpendLimitOverride( DeleteVoiceMessageSpendLimitOverrideRequest deleteVoiceMessageSpendLimitOverrideRequest) { ExecutionContext executionContext = createExecutionContext(deleteVoiceMessageSpendLimitOverrideRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteVoiceMessageSpendLimitOverrideRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteVoiceMessageSpendLimitOverrideRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteVoiceMessageSpendLimitOverride"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteVoiceMessageSpendLimitOverrideResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes attributes of your Amazon Web Services account. The supported account attributes include account tier, * which indicates whether your account is in the sandbox or production environment. When you're ready to move your * account out of the sandbox, create an Amazon Web Services Support case for a service limit increase request. *

*

* New accounts are placed into an SMS or voice sandbox. The sandbox protects both Amazon Web Services end * recipients and SMS or voice recipients from fraud and abuse. *

* * @param describeAccountAttributesRequest * @return Result of the DescribeAccountAttributes operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeAccountAttributes * @see AWS API Documentation */ @Override public DescribeAccountAttributesResult describeAccountAttributes(DescribeAccountAttributesRequest request) { request = beforeClientExecution(request); return executeDescribeAccountAttributes(request); } @SdkInternalApi final DescribeAccountAttributesResult executeDescribeAccountAttributes(DescribeAccountAttributesRequest describeAccountAttributesRequest) { ExecutionContext executionContext = createExecutionContext(describeAccountAttributesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAccountAttributesRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeAccountAttributesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAccountAttributes"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAccountAttributesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the current AWS End User Messaging SMS and Voice SMS Voice V2 resource quotas for your account. The * description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value. *

*

* When you establish an Amazon Web Services account, the account has initial quotas on the maximum number of * configuration sets, opt-out lists, phone numbers, and pools that you can create in a given Region. For more * information see Quotas in the * AWS End User Messaging SMS User Guide. *

* * @param describeAccountLimitsRequest * @return Result of the DescribeAccountLimits operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeAccountLimits * @see AWS API Documentation */ @Override public DescribeAccountLimitsResult describeAccountLimits(DescribeAccountLimitsRequest request) { request = beforeClientExecution(request); return executeDescribeAccountLimits(request); } @SdkInternalApi final DescribeAccountLimitsResult executeDescribeAccountLimits(DescribeAccountLimitsRequest describeAccountLimitsRequest) { ExecutionContext executionContext = createExecutionContext(describeAccountLimitsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAccountLimitsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeAccountLimitsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAccountLimits"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAccountLimitsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the specified configuration sets or all in your account. *

*

* If you specify configuration set names, the output includes information for only the specified configuration * sets. If you specify filters, the output includes information for only those configuration sets that meet the * filter criteria. If you don't specify configuration set names or filters, the output includes information for all * configuration sets. *

*

* If you specify a configuration set name that isn't valid, an error is returned. *

* * @param describeConfigurationSetsRequest * @return Result of the DescribeConfigurationSets operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeConfigurationSets * @see AWS API Documentation */ @Override public DescribeConfigurationSetsResult describeConfigurationSets(DescribeConfigurationSetsRequest request) { request = beforeClientExecution(request); return executeDescribeConfigurationSets(request); } @SdkInternalApi final DescribeConfigurationSetsResult executeDescribeConfigurationSets(DescribeConfigurationSetsRequest describeConfigurationSetsRequest) { ExecutionContext executionContext = createExecutionContext(describeConfigurationSetsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeConfigurationSetsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeConfigurationSetsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeConfigurationSets"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeConfigurationSetsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the specified keywords or all keywords on your origination phone number or pool. *

*

* A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or * phrase that an end user can send to your number to elicit a response, such as an informational message or a * special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and * Voice responds with a customizable message. *

*

* If you specify a keyword that isn't valid, an error is returned. *

* * @param describeKeywordsRequest * @return Result of the DescribeKeywords operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeKeywords * @see AWS API Documentation */ @Override public DescribeKeywordsResult describeKeywords(DescribeKeywordsRequest request) { request = beforeClientExecution(request); return executeDescribeKeywords(request); } @SdkInternalApi final DescribeKeywordsResult executeDescribeKeywords(DescribeKeywordsRequest describeKeywordsRequest) { ExecutionContext executionContext = createExecutionContext(describeKeywordsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeKeywordsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeKeywordsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeKeywords"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeKeywordsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the specified opt-out list or all opt-out lists in your account. *

*

* If you specify opt-out list names, the output includes information for only the specified opt-out lists. Opt-out * lists include only those that meet the filter criteria. If you don't specify opt-out list names or filters, the * output includes information for all opt-out lists. *

*

* If you specify an opt-out list name that isn't valid, an error is returned. *

* * @param describeOptOutListsRequest * @return Result of the DescribeOptOutLists operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeOptOutLists * @see AWS API Documentation */ @Override public DescribeOptOutListsResult describeOptOutLists(DescribeOptOutListsRequest request) { request = beforeClientExecution(request); return executeDescribeOptOutLists(request); } @SdkInternalApi final DescribeOptOutListsResult executeDescribeOptOutLists(DescribeOptOutListsRequest describeOptOutListsRequest) { ExecutionContext executionContext = createExecutionContext(describeOptOutListsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeOptOutListsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeOptOutListsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeOptOutLists"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeOptOutListsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the specified opted out destination numbers or all opted out destination numbers in an opt-out list. *

*

* If you specify opted out numbers, the output includes information for only the specified opted out numbers. If * you specify filters, the output includes information for only those opted out numbers that meet the filter * criteria. If you don't specify opted out numbers or filters, the output includes information for all opted out * destination numbers in your opt-out list. *

*

* If you specify an opted out number that isn't valid, an error is returned. *

* * @param describeOptedOutNumbersRequest * @return Result of the DescribeOptedOutNumbers operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeOptedOutNumbers * @see AWS API Documentation */ @Override public DescribeOptedOutNumbersResult describeOptedOutNumbers(DescribeOptedOutNumbersRequest request) { request = beforeClientExecution(request); return executeDescribeOptedOutNumbers(request); } @SdkInternalApi final DescribeOptedOutNumbersResult executeDescribeOptedOutNumbers(DescribeOptedOutNumbersRequest describeOptedOutNumbersRequest) { ExecutionContext executionContext = createExecutionContext(describeOptedOutNumbersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeOptedOutNumbersRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeOptedOutNumbersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeOptedOutNumbers"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeOptedOutNumbersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the specified origination phone number, or all the phone numbers in your account. *

*

* If you specify phone number IDs, the output includes information for only the specified phone numbers. If you * specify filters, the output includes information for only those phone numbers that meet the filter criteria. If * you don't specify phone number IDs or filters, the output includes information for all phone numbers. *

*

* If you specify a phone number ID that isn't valid, an error is returned. *

* * @param describePhoneNumbersRequest * @return Result of the DescribePhoneNumbers operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribePhoneNumbers * @see AWS API Documentation */ @Override public DescribePhoneNumbersResult describePhoneNumbers(DescribePhoneNumbersRequest request) { request = beforeClientExecution(request); return executeDescribePhoneNumbers(request); } @SdkInternalApi final DescribePhoneNumbersResult executeDescribePhoneNumbers(DescribePhoneNumbersRequest describePhoneNumbersRequest) { ExecutionContext executionContext = createExecutionContext(describePhoneNumbersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribePhoneNumbersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describePhoneNumbersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePhoneNumbers"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribePhoneNumbersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified pools or all pools associated with your Amazon Web Services account. *

*

* If you specify pool IDs, the output includes information for only the specified pools. If you specify filters, * the output includes information for only those pools that meet the filter criteria. If you don't specify pool IDs * or filters, the output includes information for all pools. *

*

* If you specify a pool ID that isn't valid, an error is returned. *

*

* A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds * that are associated with your Amazon Web Services account. *

* * @param describePoolsRequest * @return Result of the DescribePools operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribePools * @see AWS API Documentation */ @Override public DescribePoolsResult describePools(DescribePoolsRequest request) { request = beforeClientExecution(request); return executeDescribePools(request); } @SdkInternalApi final DescribePoolsResult executeDescribePools(DescribePoolsRequest describePoolsRequest) { ExecutionContext executionContext = createExecutionContext(describePoolsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribePoolsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describePoolsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePools"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribePoolsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the protect configurations that match any of filters. If a filter isn’t provided then all protect * configurations are returned. *

* * @param describeProtectConfigurationsRequest * @return Result of the DescribeProtectConfigurations operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeProtectConfigurations * @see AWS API Documentation */ @Override public DescribeProtectConfigurationsResult describeProtectConfigurations(DescribeProtectConfigurationsRequest request) { request = beforeClientExecution(request); return executeDescribeProtectConfigurations(request); } @SdkInternalApi final DescribeProtectConfigurationsResult executeDescribeProtectConfigurations(DescribeProtectConfigurationsRequest describeProtectConfigurationsRequest) { ExecutionContext executionContext = createExecutionContext(describeProtectConfigurationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeProtectConfigurationsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeProtectConfigurationsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeProtectConfigurations"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeProtectConfigurationsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified registration attachments or all registration attachments associated with your Amazon Web * Services account. *

* * @param describeRegistrationAttachmentsRequest * @return Result of the DescribeRegistrationAttachments operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeRegistrationAttachments * @see AWS API Documentation */ @Override public DescribeRegistrationAttachmentsResult describeRegistrationAttachments(DescribeRegistrationAttachmentsRequest request) { request = beforeClientExecution(request); return executeDescribeRegistrationAttachments(request); } @SdkInternalApi final DescribeRegistrationAttachmentsResult executeDescribeRegistrationAttachments( DescribeRegistrationAttachmentsRequest describeRegistrationAttachmentsRequest) { ExecutionContext executionContext = createExecutionContext(describeRegistrationAttachmentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRegistrationAttachmentsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeRegistrationAttachmentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRegistrationAttachments"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeRegistrationAttachmentsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified registration type field definitions. You can use DescribeRegistrationFieldDefinitions to * view the requirements for creating, filling out, and submitting each registration type. *

* * @param describeRegistrationFieldDefinitionsRequest * @return Result of the DescribeRegistrationFieldDefinitions operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeRegistrationFieldDefinitions * @see AWS API Documentation */ @Override public DescribeRegistrationFieldDefinitionsResult describeRegistrationFieldDefinitions(DescribeRegistrationFieldDefinitionsRequest request) { request = beforeClientExecution(request); return executeDescribeRegistrationFieldDefinitions(request); } @SdkInternalApi final DescribeRegistrationFieldDefinitionsResult executeDescribeRegistrationFieldDefinitions( DescribeRegistrationFieldDefinitionsRequest describeRegistrationFieldDefinitionsRequest) { ExecutionContext executionContext = createExecutionContext(describeRegistrationFieldDefinitionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRegistrationFieldDefinitionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeRegistrationFieldDefinitionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRegistrationFieldDefinitions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeRegistrationFieldDefinitionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified registration field values. *

* * @param describeRegistrationFieldValuesRequest * @return Result of the DescribeRegistrationFieldValues operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeRegistrationFieldValues * @see AWS API Documentation */ @Override public DescribeRegistrationFieldValuesResult describeRegistrationFieldValues(DescribeRegistrationFieldValuesRequest request) { request = beforeClientExecution(request); return executeDescribeRegistrationFieldValues(request); } @SdkInternalApi final DescribeRegistrationFieldValuesResult executeDescribeRegistrationFieldValues( DescribeRegistrationFieldValuesRequest describeRegistrationFieldValuesRequest) { ExecutionContext executionContext = createExecutionContext(describeRegistrationFieldValuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRegistrationFieldValuesRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeRegistrationFieldValuesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRegistrationFieldValues"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeRegistrationFieldValuesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified registration section definitions. You can use DescribeRegistrationSectionDefinitions to * view the requirements for creating, filling out, and submitting each registration type. *

* * @param describeRegistrationSectionDefinitionsRequest * @return Result of the DescribeRegistrationSectionDefinitions operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeRegistrationSectionDefinitions * @see AWS API Documentation */ @Override public DescribeRegistrationSectionDefinitionsResult describeRegistrationSectionDefinitions(DescribeRegistrationSectionDefinitionsRequest request) { request = beforeClientExecution(request); return executeDescribeRegistrationSectionDefinitions(request); } @SdkInternalApi final DescribeRegistrationSectionDefinitionsResult executeDescribeRegistrationSectionDefinitions( DescribeRegistrationSectionDefinitionsRequest describeRegistrationSectionDefinitionsRequest) { ExecutionContext executionContext = createExecutionContext(describeRegistrationSectionDefinitionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRegistrationSectionDefinitionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeRegistrationSectionDefinitionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRegistrationSectionDefinitions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeRegistrationSectionDefinitionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified registration type definitions. You can use DescribeRegistrationTypeDefinitions to view * the requirements for creating, filling out, and submitting each registration type. *

* * @param describeRegistrationTypeDefinitionsRequest * @return Result of the DescribeRegistrationTypeDefinitions operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeRegistrationTypeDefinitions * @see AWS API Documentation */ @Override public DescribeRegistrationTypeDefinitionsResult describeRegistrationTypeDefinitions(DescribeRegistrationTypeDefinitionsRequest request) { request = beforeClientExecution(request); return executeDescribeRegistrationTypeDefinitions(request); } @SdkInternalApi final DescribeRegistrationTypeDefinitionsResult executeDescribeRegistrationTypeDefinitions( DescribeRegistrationTypeDefinitionsRequest describeRegistrationTypeDefinitionsRequest) { ExecutionContext executionContext = createExecutionContext(describeRegistrationTypeDefinitionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRegistrationTypeDefinitionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeRegistrationTypeDefinitionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRegistrationTypeDefinitions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeRegistrationTypeDefinitionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified registration version. *

* * @param describeRegistrationVersionsRequest * @return Result of the DescribeRegistrationVersions operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeRegistrationVersions * @see AWS API Documentation */ @Override public DescribeRegistrationVersionsResult describeRegistrationVersions(DescribeRegistrationVersionsRequest request) { request = beforeClientExecution(request); return executeDescribeRegistrationVersions(request); } @SdkInternalApi final DescribeRegistrationVersionsResult executeDescribeRegistrationVersions(DescribeRegistrationVersionsRequest describeRegistrationVersionsRequest) { ExecutionContext executionContext = createExecutionContext(describeRegistrationVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRegistrationVersionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeRegistrationVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRegistrationVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeRegistrationVersionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified registrations. *

* * @param describeRegistrationsRequest * @return Result of the DescribeRegistrations operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeRegistrations * @see AWS API Documentation */ @Override public DescribeRegistrationsResult describeRegistrations(DescribeRegistrationsRequest request) { request = beforeClientExecution(request); return executeDescribeRegistrations(request); } @SdkInternalApi final DescribeRegistrationsResult executeDescribeRegistrations(DescribeRegistrationsRequest describeRegistrationsRequest) { ExecutionContext executionContext = createExecutionContext(describeRegistrationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeRegistrationsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeRegistrationsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRegistrations"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeRegistrationsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the specified SenderIds or all SenderIds associated with your Amazon Web Services account. *

*

* If you specify SenderIds, the output includes information for only the specified SenderIds. If you specify * filters, the output includes information for only those SenderIds that meet the filter criteria. If you don't * specify SenderIds or filters, the output includes information for all SenderIds. *

*

* f you specify a sender ID that isn't valid, an error is returned. *

* * @param describeSenderIdsRequest * @return Result of the DescribeSenderIds operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeSenderIds * @see AWS API Documentation */ @Override public DescribeSenderIdsResult describeSenderIds(DescribeSenderIdsRequest request) { request = beforeClientExecution(request); return executeDescribeSenderIds(request); } @SdkInternalApi final DescribeSenderIdsResult executeDescribeSenderIds(DescribeSenderIdsRequest describeSenderIdsRequest) { ExecutionContext executionContext = createExecutionContext(describeSenderIdsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeSenderIdsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeSenderIdsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeSenderIds"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeSenderIdsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the current monthly spend limits for sending voice and text messages. *

*

* When you establish an Amazon Web Services account, the account has initial monthly spend limit in a given Region. * For more information on increasing your monthly spend limit, see Requesting * increases to your monthly SMS, MMS, or Voice spending quota in the AWS End User Messaging SMS User * Guide. *

* * @param describeSpendLimitsRequest * @return Result of the DescribeSpendLimits operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeSpendLimits * @see AWS API Documentation */ @Override public DescribeSpendLimitsResult describeSpendLimits(DescribeSpendLimitsRequest request) { request = beforeClientExecution(request); return executeDescribeSpendLimits(request); } @SdkInternalApi final DescribeSpendLimitsResult executeDescribeSpendLimits(DescribeSpendLimitsRequest describeSpendLimitsRequest) { ExecutionContext executionContext = createExecutionContext(describeSpendLimitsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeSpendLimitsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeSpendLimitsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeSpendLimits"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeSpendLimitsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the specified verified destiona numbers. *

* * @param describeVerifiedDestinationNumbersRequest * @return Result of the DescribeVerifiedDestinationNumbers operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DescribeVerifiedDestinationNumbers * @see AWS API Documentation */ @Override public DescribeVerifiedDestinationNumbersResult describeVerifiedDestinationNumbers(DescribeVerifiedDestinationNumbersRequest request) { request = beforeClientExecution(request); return executeDescribeVerifiedDestinationNumbers(request); } @SdkInternalApi final DescribeVerifiedDestinationNumbersResult executeDescribeVerifiedDestinationNumbers( DescribeVerifiedDestinationNumbersRequest describeVerifiedDestinationNumbersRequest) { ExecutionContext executionContext = createExecutionContext(describeVerifiedDestinationNumbersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeVerifiedDestinationNumbersRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeVerifiedDestinationNumbersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeVerifiedDestinationNumbers"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeVerifiedDestinationNumbersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Removes the specified origination identity from an existing pool. *

*

* If the origination identity isn't associated with the specified pool, an error is returned. *

* * @param disassociateOriginationIdentityRequest * @return Result of the DisassociateOriginationIdentity operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DisassociateOriginationIdentity * @see AWS API Documentation */ @Override public DisassociateOriginationIdentityResult disassociateOriginationIdentity(DisassociateOriginationIdentityRequest request) { request = beforeClientExecution(request); return executeDisassociateOriginationIdentity(request); } @SdkInternalApi final DisassociateOriginationIdentityResult executeDisassociateOriginationIdentity( DisassociateOriginationIdentityRequest disassociateOriginationIdentityRequest) { ExecutionContext executionContext = createExecutionContext(disassociateOriginationIdentityRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateOriginationIdentityRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(disassociateOriginationIdentityRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateOriginationIdentity"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DisassociateOriginationIdentityResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Disassociate a protect configuration from a configuration set. *

* * @param disassociateProtectConfigurationRequest * @return Result of the DisassociateProtectConfiguration operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DisassociateProtectConfiguration * @see AWS API Documentation */ @Override public DisassociateProtectConfigurationResult disassociateProtectConfiguration(DisassociateProtectConfigurationRequest request) { request = beforeClientExecution(request); return executeDisassociateProtectConfiguration(request); } @SdkInternalApi final DisassociateProtectConfigurationResult executeDisassociateProtectConfiguration( DisassociateProtectConfigurationRequest disassociateProtectConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(disassociateProtectConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateProtectConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(disassociateProtectConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateProtectConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DisassociateProtectConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Discard the current version of the registration. *

* * @param discardRegistrationVersionRequest * @return Result of the DiscardRegistrationVersion operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.DiscardRegistrationVersion * @see AWS API Documentation */ @Override public DiscardRegistrationVersionResult discardRegistrationVersion(DiscardRegistrationVersionRequest request) { request = beforeClientExecution(request); return executeDiscardRegistrationVersion(request); } @SdkInternalApi final DiscardRegistrationVersionResult executeDiscardRegistrationVersion(DiscardRegistrationVersionRequest discardRegistrationVersionRequest) { ExecutionContext executionContext = createExecutionContext(discardRegistrationVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DiscardRegistrationVersionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(discardRegistrationVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DiscardRegistrationVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DiscardRegistrationVersionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieve the CountryRuleSet for the specified NumberCapability from a protect configuration. *

* * @param getProtectConfigurationCountryRuleSetRequest * @return Result of the GetProtectConfigurationCountryRuleSet operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.GetProtectConfigurationCountryRuleSet * @see AWS API Documentation */ @Override public GetProtectConfigurationCountryRuleSetResult getProtectConfigurationCountryRuleSet(GetProtectConfigurationCountryRuleSetRequest request) { request = beforeClientExecution(request); return executeGetProtectConfigurationCountryRuleSet(request); } @SdkInternalApi final GetProtectConfigurationCountryRuleSetResult executeGetProtectConfigurationCountryRuleSet( GetProtectConfigurationCountryRuleSetRequest getProtectConfigurationCountryRuleSetRequest) { ExecutionContext executionContext = createExecutionContext(getProtectConfigurationCountryRuleSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetProtectConfigurationCountryRuleSetRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getProtectConfigurationCountryRuleSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetProtectConfigurationCountryRuleSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetProtectConfigurationCountryRuleSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all associated origination identities in your pool. *

*

* If you specify filters, the output includes information for only those origination identities that meet the * filter criteria. *

* * @param listPoolOriginationIdentitiesRequest * @return Result of the ListPoolOriginationIdentities operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.ListPoolOriginationIdentities * @see AWS API Documentation */ @Override public ListPoolOriginationIdentitiesResult listPoolOriginationIdentities(ListPoolOriginationIdentitiesRequest request) { request = beforeClientExecution(request); return executeListPoolOriginationIdentities(request); } @SdkInternalApi final ListPoolOriginationIdentitiesResult executeListPoolOriginationIdentities(ListPoolOriginationIdentitiesRequest listPoolOriginationIdentitiesRequest) { ExecutionContext executionContext = createExecutionContext(listPoolOriginationIdentitiesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPoolOriginationIdentitiesRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listPoolOriginationIdentitiesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPoolOriginationIdentities"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListPoolOriginationIdentitiesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retreive all of the origination identies that are associated with a registration. *

* * @param listRegistrationAssociationsRequest * @return Result of the ListRegistrationAssociations operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.ListRegistrationAssociations * @see AWS API Documentation */ @Override public ListRegistrationAssociationsResult listRegistrationAssociations(ListRegistrationAssociationsRequest request) { request = beforeClientExecution(request); return executeListRegistrationAssociations(request); } @SdkInternalApi final ListRegistrationAssociationsResult executeListRegistrationAssociations(ListRegistrationAssociationsRequest listRegistrationAssociationsRequest) { ExecutionContext executionContext = createExecutionContext(listRegistrationAssociationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListRegistrationAssociationsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listRegistrationAssociationsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListRegistrationAssociations"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListRegistrationAssociationsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List all tags associated with a resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.ListTagsForResource * @see AWS API Documentation */ @Override public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { request = beforeClientExecution(request); return executeListTagsForResource(request); } @SdkInternalApi final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates or updates a keyword configuration on an origination phone number or pool. *

*

* A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or * phrase that an end user can send to your number to elicit a response, such as an informational message or a * special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and * Voice responds with a customizable message. *

*

* If you specify a keyword that isn't valid, an error is returned. *

* * @param putKeywordRequest * @return Result of the PutKeyword operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.PutKeyword * @see AWS API Documentation */ @Override public PutKeywordResult putKeyword(PutKeywordRequest request) { request = beforeClientExecution(request); return executePutKeyword(request); } @SdkInternalApi final PutKeywordResult executePutKeyword(PutKeywordRequest putKeywordRequest) { ExecutionContext executionContext = createExecutionContext(putKeywordRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new PutKeywordRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putKeywordRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutKeyword"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutKeywordResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an opted out destination phone number in the opt-out list. *

*

* If the destination phone number isn't valid or if the specified opt-out list doesn't exist, an error is returned. *

* * @param putOptedOutNumberRequest * @return Result of the PutOptedOutNumber operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.PutOptedOutNumber * @see AWS API Documentation */ @Override public PutOptedOutNumberResult putOptedOutNumber(PutOptedOutNumberRequest request) { request = beforeClientExecution(request); return executePutOptedOutNumber(request); } @SdkInternalApi final PutOptedOutNumberResult executePutOptedOutNumber(PutOptedOutNumberRequest putOptedOutNumberRequest) { ExecutionContext executionContext = createExecutionContext(putOptedOutNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new PutOptedOutNumberRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putOptedOutNumberRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutOptedOutNumber"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutOptedOutNumberResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates or updates a field value for a registration. *

* * @param putRegistrationFieldValueRequest * @return Result of the PutRegistrationFieldValue operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.PutRegistrationFieldValue * @see AWS API Documentation */ @Override public PutRegistrationFieldValueResult putRegistrationFieldValue(PutRegistrationFieldValueRequest request) { request = beforeClientExecution(request); return executePutRegistrationFieldValue(request); } @SdkInternalApi final PutRegistrationFieldValueResult executePutRegistrationFieldValue(PutRegistrationFieldValueRequest putRegistrationFieldValueRequest) { ExecutionContext executionContext = createExecutionContext(putRegistrationFieldValueRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new PutRegistrationFieldValueRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(putRegistrationFieldValueRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutRegistrationFieldValue"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutRegistrationFieldValueResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Releases an existing origination phone number in your account. Once released, a phone number is no longer * available for sending messages. *

*

* If the origination phone number has deletion protection enabled or is associated with a pool, an error is * returned. *

* * @param releasePhoneNumberRequest * @return Result of the ReleasePhoneNumber operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.ReleasePhoneNumber * @see AWS API Documentation */ @Override public ReleasePhoneNumberResult releasePhoneNumber(ReleasePhoneNumberRequest request) { request = beforeClientExecution(request); return executeReleasePhoneNumber(request); } @SdkInternalApi final ReleasePhoneNumberResult executeReleasePhoneNumber(ReleasePhoneNumberRequest releasePhoneNumberRequest) { ExecutionContext executionContext = createExecutionContext(releasePhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ReleasePhoneNumberRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(releasePhoneNumberRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ReleasePhoneNumber"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ReleasePhoneNumberResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Releases an existing sender ID in your account. *

* * @param releaseSenderIdRequest * @return Result of the ReleaseSenderId operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.ReleaseSenderId * @see AWS API Documentation */ @Override public ReleaseSenderIdResult releaseSenderId(ReleaseSenderIdRequest request) { request = beforeClientExecution(request); return executeReleaseSenderId(request); } @SdkInternalApi final ReleaseSenderIdResult executeReleaseSenderId(ReleaseSenderIdRequest releaseSenderIdRequest) { ExecutionContext executionContext = createExecutionContext(releaseSenderIdRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ReleaseSenderIdRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(releaseSenderIdRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ReleaseSenderId"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ReleaseSenderIdResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Request an origination phone number for use in your account. For more information on phone number request see Request a phone * number in the AWS End User Messaging SMS User Guide. *

* * @param requestPhoneNumberRequest * @return Result of the RequestPhoneNumber operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.RequestPhoneNumber * @see AWS API Documentation */ @Override public RequestPhoneNumberResult requestPhoneNumber(RequestPhoneNumberRequest request) { request = beforeClientExecution(request); return executeRequestPhoneNumber(request); } @SdkInternalApi final RequestPhoneNumberResult executeRequestPhoneNumber(RequestPhoneNumberRequest requestPhoneNumberRequest) { ExecutionContext executionContext = createExecutionContext(requestPhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RequestPhoneNumberRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(requestPhoneNumberRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RequestPhoneNumber"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RequestPhoneNumberResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Request a new sender ID that doesn't require registration. *

* * @param requestSenderIdRequest * @return Result of the RequestSenderId operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.RequestSenderId * @see AWS API Documentation */ @Override public RequestSenderIdResult requestSenderId(RequestSenderIdRequest request) { request = beforeClientExecution(request); return executeRequestSenderId(request); } @SdkInternalApi final RequestSenderIdResult executeRequestSenderId(RequestSenderIdRequest requestSenderIdRequest) { ExecutionContext executionContext = createExecutionContext(requestSenderIdRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RequestSenderIdRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(requestSenderIdRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RequestSenderId"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RequestSenderIdResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Before you can send test messages to a verified destination phone number you need to opt-in the verified * destination phone number. Creates a new text message with a verification code and send it to a verified * destination phone number. Once you have the verification code use VerifyDestinationNumber to opt-in the * verified destination phone number to receive messages. *

* * @param sendDestinationNumberVerificationCodeRequest * @return Result of the SendDestinationNumberVerificationCode operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SendDestinationNumberVerificationCode * @see AWS API Documentation */ @Override public SendDestinationNumberVerificationCodeResult sendDestinationNumberVerificationCode(SendDestinationNumberVerificationCodeRequest request) { request = beforeClientExecution(request); return executeSendDestinationNumberVerificationCode(request); } @SdkInternalApi final SendDestinationNumberVerificationCodeResult executeSendDestinationNumberVerificationCode( SendDestinationNumberVerificationCodeRequest sendDestinationNumberVerificationCodeRequest) { ExecutionContext executionContext = createExecutionContext(sendDestinationNumberVerificationCodeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SendDestinationNumberVerificationCodeRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(sendDestinationNumberVerificationCodeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendDestinationNumberVerificationCode"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SendDestinationNumberVerificationCodeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new multimedia message (MMS) and sends it to a recipient's phone number. *

* * @param sendMediaMessageRequest * @return Result of the SendMediaMessage operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SendMediaMessage * @see AWS API Documentation */ @Override public SendMediaMessageResult sendMediaMessage(SendMediaMessageRequest request) { request = beforeClientExecution(request); return executeSendMediaMessage(request); } @SdkInternalApi final SendMediaMessageResult executeSendMediaMessage(SendMediaMessageRequest sendMediaMessageRequest) { ExecutionContext executionContext = createExecutionContext(sendMediaMessageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SendMediaMessageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(sendMediaMessageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendMediaMessage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SendMediaMessageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new text message and sends it to a recipient's phone number. SendTextMessage only sends an SMS message * to one recipient each time it is invoked. *

*

* SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit depends on the destination * country of your messages, as well as the type of phone number (origination number) that you use to send the * message. For more information about MPS, see Message Parts per Second * (MPS) limits in the AWS End User Messaging SMS User Guide. *

* * @param sendTextMessageRequest * @return Result of the SendTextMessage operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SendTextMessage * @see AWS API Documentation */ @Override public SendTextMessageResult sendTextMessage(SendTextMessageRequest request) { request = beforeClientExecution(request); return executeSendTextMessage(request); } @SdkInternalApi final SendTextMessageResult executeSendTextMessage(SendTextMessageRequest sendTextMessageRequest) { ExecutionContext executionContext = createExecutionContext(sendTextMessageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SendTextMessageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(sendTextMessageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendTextMessage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SendTextMessageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Allows you to send a request that sends a voice message. This operation uses Amazon Polly to convert a text script into a voice message. *

* * @param sendVoiceMessageRequest * @return Result of the SendVoiceMessage operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SendVoiceMessage * @see AWS API Documentation */ @Override public SendVoiceMessageResult sendVoiceMessage(SendVoiceMessageRequest request) { request = beforeClientExecution(request); return executeSendVoiceMessage(request); } @SdkInternalApi final SendVoiceMessageResult executeSendVoiceMessage(SendVoiceMessageRequest sendVoiceMessageRequest) { ExecutionContext executionContext = createExecutionContext(sendVoiceMessageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SendVoiceMessageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(sendVoiceMessageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendVoiceMessage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SendVoiceMessageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Set a protect configuration as your account default. You can only have one account default protect configuration * at a time. The current account default protect configuration is replaced with the provided protect configuration. *

* * @param setAccountDefaultProtectConfigurationRequest * @return Result of the SetAccountDefaultProtectConfiguration operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SetAccountDefaultProtectConfiguration * @see AWS API Documentation */ @Override public SetAccountDefaultProtectConfigurationResult setAccountDefaultProtectConfiguration(SetAccountDefaultProtectConfigurationRequest request) { request = beforeClientExecution(request); return executeSetAccountDefaultProtectConfiguration(request); } @SdkInternalApi final SetAccountDefaultProtectConfigurationResult executeSetAccountDefaultProtectConfiguration( SetAccountDefaultProtectConfigurationRequest setAccountDefaultProtectConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(setAccountDefaultProtectConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SetAccountDefaultProtectConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(setAccountDefaultProtectConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetAccountDefaultProtectConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SetAccountDefaultProtectConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Sets the default message type on a configuration set. *

*

* Choose the category of SMS messages that you plan to send from this account. If you send account-related messages * or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages * that contain marketing material or other promotional content, choose Promotional. This setting applies to * your entire Amazon Web Services account. *

* * @param setDefaultMessageTypeRequest * @return Result of the SetDefaultMessageType operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SetDefaultMessageType * @see AWS API Documentation */ @Override public SetDefaultMessageTypeResult setDefaultMessageType(SetDefaultMessageTypeRequest request) { request = beforeClientExecution(request); return executeSetDefaultMessageType(request); } @SdkInternalApi final SetDefaultMessageTypeResult executeSetDefaultMessageType(SetDefaultMessageTypeRequest setDefaultMessageTypeRequest) { ExecutionContext executionContext = createExecutionContext(setDefaultMessageTypeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SetDefaultMessageTypeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(setDefaultMessageTypeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetDefaultMessageType"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SetDefaultMessageTypeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Sets default sender ID on a configuration set. *

*

* When sending a text message to a destination country that supports sender IDs, the default sender ID on the * configuration set specified will be used if no dedicated origination phone numbers or registered sender IDs are * available in your account. *

* * @param setDefaultSenderIdRequest * @return Result of the SetDefaultSenderId operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SetDefaultSenderId * @see AWS API Documentation */ @Override public SetDefaultSenderIdResult setDefaultSenderId(SetDefaultSenderIdRequest request) { request = beforeClientExecution(request); return executeSetDefaultSenderId(request); } @SdkInternalApi final SetDefaultSenderIdResult executeSetDefaultSenderId(SetDefaultSenderIdRequest setDefaultSenderIdRequest) { ExecutionContext executionContext = createExecutionContext(setDefaultSenderIdRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SetDefaultSenderIdRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(setDefaultSenderIdRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetDefaultSenderId"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SetDefaultSenderIdResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Sets an account level monthly spend limit override for sending MMS messages. The requested spend limit must be * less than or equal to the MaxLimit, which is set by Amazon Web Services. *

* * @param setMediaMessageSpendLimitOverrideRequest * @return Result of the SetMediaMessageSpendLimitOverride operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SetMediaMessageSpendLimitOverride * @see AWS API Documentation */ @Override public SetMediaMessageSpendLimitOverrideResult setMediaMessageSpendLimitOverride(SetMediaMessageSpendLimitOverrideRequest request) { request = beforeClientExecution(request); return executeSetMediaMessageSpendLimitOverride(request); } @SdkInternalApi final SetMediaMessageSpendLimitOverrideResult executeSetMediaMessageSpendLimitOverride( SetMediaMessageSpendLimitOverrideRequest setMediaMessageSpendLimitOverrideRequest) { ExecutionContext executionContext = createExecutionContext(setMediaMessageSpendLimitOverrideRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SetMediaMessageSpendLimitOverrideRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(setMediaMessageSpendLimitOverrideRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetMediaMessageSpendLimitOverride"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SetMediaMessageSpendLimitOverrideResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Sets an account level monthly spend limit override for sending text messages. The requested spend limit must be * less than or equal to the MaxLimit, which is set by Amazon Web Services. *

* * @param setTextMessageSpendLimitOverrideRequest * @return Result of the SetTextMessageSpendLimitOverride operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SetTextMessageSpendLimitOverride * @see AWS API Documentation */ @Override public SetTextMessageSpendLimitOverrideResult setTextMessageSpendLimitOverride(SetTextMessageSpendLimitOverrideRequest request) { request = beforeClientExecution(request); return executeSetTextMessageSpendLimitOverride(request); } @SdkInternalApi final SetTextMessageSpendLimitOverrideResult executeSetTextMessageSpendLimitOverride( SetTextMessageSpendLimitOverrideRequest setTextMessageSpendLimitOverrideRequest) { ExecutionContext executionContext = createExecutionContext(setTextMessageSpendLimitOverrideRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SetTextMessageSpendLimitOverrideRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(setTextMessageSpendLimitOverrideRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetTextMessageSpendLimitOverride"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SetTextMessageSpendLimitOverrideResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Sets an account level monthly spend limit override for sending voice messages. The requested spend limit must be * less than or equal to the MaxLimit, which is set by Amazon Web Services. *

* * @param setVoiceMessageSpendLimitOverrideRequest * @return Result of the SetVoiceMessageSpendLimitOverride operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SetVoiceMessageSpendLimitOverride * @see AWS API Documentation */ @Override public SetVoiceMessageSpendLimitOverrideResult setVoiceMessageSpendLimitOverride(SetVoiceMessageSpendLimitOverrideRequest request) { request = beforeClientExecution(request); return executeSetVoiceMessageSpendLimitOverride(request); } @SdkInternalApi final SetVoiceMessageSpendLimitOverrideResult executeSetVoiceMessageSpendLimitOverride( SetVoiceMessageSpendLimitOverrideRequest setVoiceMessageSpendLimitOverrideRequest) { ExecutionContext executionContext = createExecutionContext(setVoiceMessageSpendLimitOverrideRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SetVoiceMessageSpendLimitOverrideRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(setVoiceMessageSpendLimitOverrideRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetVoiceMessageSpendLimitOverride"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SetVoiceMessageSpendLimitOverrideResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Submit the specified registration for review and approval. *

* * @param submitRegistrationVersionRequest * @return Result of the SubmitRegistrationVersion operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.SubmitRegistrationVersion * @see AWS API Documentation */ @Override public SubmitRegistrationVersionResult submitRegistrationVersion(SubmitRegistrationVersionRequest request) { request = beforeClientExecution(request); return executeSubmitRegistrationVersion(request); } @SdkInternalApi final SubmitRegistrationVersionResult executeSubmitRegistrationVersion(SubmitRegistrationVersionRequest submitRegistrationVersionRequest) { ExecutionContext executionContext = createExecutionContext(submitRegistrationVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SubmitRegistrationVersionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(submitRegistrationVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SubmitRegistrationVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SubmitRegistrationVersionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the * value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key * and an optional value. Tag keys must be unique per resource. For more information about tags, see Tags in the AWS End * User Messaging SMS User Guide. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws ServiceQuotaExceededException * The request would cause a service quota to be exceeded. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.TagResource * @see AWS API Documentation */ @Override public TagResourceResult tagResource(TagResourceRequest request) { request = beforeClientExecution(request); return executeTagResource(request); } @SdkInternalApi final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { ExecutionContext executionContext = createExecutionContext(tagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Removes the association of the specified tags from a resource. For more information on tags see Tags in the AWS End * User Messaging SMS User Guide. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.UntagResource * @see AWS API Documentation */ @Override public UntagResourceResult untagResource(UntagResourceRequest request) { request = beforeClientExecution(request); return executeUntagResource(request); } @SdkInternalApi final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { ExecutionContext executionContext = createExecutionContext(untagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an existing event destination in a configuration set. You can update the IAM role ARN for CloudWatch Logs * and Firehose. You can also enable or disable the event destination. *

*

* You may want to update an event destination to change its matching event types or updating the destination * resource ARN. You can't change an event destination's type between CloudWatch Logs, Firehose, and Amazon SNS. *

* * @param updateEventDestinationRequest * @return Result of the UpdateEventDestination operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.UpdateEventDestination * @see AWS API Documentation */ @Override public UpdateEventDestinationResult updateEventDestination(UpdateEventDestinationRequest request) { request = beforeClientExecution(request); return executeUpdateEventDestination(request); } @SdkInternalApi final UpdateEventDestinationResult executeUpdateEventDestination(UpdateEventDestinationRequest updateEventDestinationRequest) { ExecutionContext executionContext = createExecutionContext(updateEventDestinationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateEventDestinationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateEventDestinationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateEventDestination"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateEventDestinationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the configuration of an existing origination phone number. You can update the opt-out list, enable or * disable two-way messaging, change the TwoWayChannelArn, enable or disable self-managed opt-outs, and enable or * disable deletion protection. *

*

* If the origination phone number is associated with a pool, an error is returned. *

* * @param updatePhoneNumberRequest * @return Result of the UpdatePhoneNumber operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.UpdatePhoneNumber * @see AWS API Documentation */ @Override public UpdatePhoneNumberResult updatePhoneNumber(UpdatePhoneNumberRequest request) { request = beforeClientExecution(request); return executeUpdatePhoneNumber(request); } @SdkInternalApi final UpdatePhoneNumberResult executeUpdatePhoneNumber(UpdatePhoneNumberRequest updatePhoneNumberRequest) { ExecutionContext executionContext = createExecutionContext(updatePhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdatePhoneNumberRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updatePhoneNumberRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdatePhoneNumber"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdatePhoneNumberResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the configuration of an existing pool. You can update the opt-out list, enable or disable two-way * messaging, change the TwoWayChannelArn, enable or disable self-managed opt-outs, enable or disable * deletion protection, and enable or disable shared routes. *

* * @param updatePoolRequest * @return Result of the UpdatePool operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.UpdatePool * @see AWS API Documentation */ @Override public UpdatePoolResult updatePool(UpdatePoolRequest request) { request = beforeClientExecution(request); return executeUpdatePool(request); } @SdkInternalApi final UpdatePoolResult executeUpdatePool(UpdatePoolRequest updatePoolRequest) { ExecutionContext executionContext = createExecutionContext(updatePoolRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdatePoolRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updatePoolRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdatePool"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdatePoolResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Update the setting for an existing protect configuration. *

* * @param updateProtectConfigurationRequest * @return Result of the UpdateProtectConfiguration operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.UpdateProtectConfiguration * @see AWS API Documentation */ @Override public UpdateProtectConfigurationResult updateProtectConfiguration(UpdateProtectConfigurationRequest request) { request = beforeClientExecution(request); return executeUpdateProtectConfiguration(request); } @SdkInternalApi final UpdateProtectConfigurationResult executeUpdateProtectConfiguration(UpdateProtectConfigurationRequest updateProtectConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(updateProtectConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateProtectConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateProtectConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateProtectConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateProtectConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Update a country rule set to ALLOW or BLOCK messages to be sent to the specified * destination counties. You can update one or multiple countries at a time. The updates are only applied to the * specified NumberCapability type. *

* * @param updateProtectConfigurationCountryRuleSetRequest * @return Result of the UpdateProtectConfigurationCountryRuleSet operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.UpdateProtectConfigurationCountryRuleSet * @see AWS API Documentation */ @Override public UpdateProtectConfigurationCountryRuleSetResult updateProtectConfigurationCountryRuleSet(UpdateProtectConfigurationCountryRuleSetRequest request) { request = beforeClientExecution(request); return executeUpdateProtectConfigurationCountryRuleSet(request); } @SdkInternalApi final UpdateProtectConfigurationCountryRuleSetResult executeUpdateProtectConfigurationCountryRuleSet( UpdateProtectConfigurationCountryRuleSetRequest updateProtectConfigurationCountryRuleSetRequest) { ExecutionContext executionContext = createExecutionContext(updateProtectConfigurationCountryRuleSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateProtectConfigurationCountryRuleSetRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateProtectConfigurationCountryRuleSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateProtectConfigurationCountryRuleSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateProtectConfigurationCountryRuleSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the configuration of an existing sender ID. *

* * @param updateSenderIdRequest * @return Result of the UpdateSenderId operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.UpdateSenderId * @see AWS API Documentation */ @Override public UpdateSenderIdResult updateSenderId(UpdateSenderIdRequest request) { request = beforeClientExecution(request); return executeUpdateSenderId(request); } @SdkInternalApi final UpdateSenderIdResult executeUpdateSenderId(UpdateSenderIdRequest updateSenderIdRequest) { ExecutionContext executionContext = createExecutionContext(updateSenderIdRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateSenderIdRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateSenderIdRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateSenderId"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateSenderIdResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the verification code that was received by the verified destination phone number to opt-in the verified * destination phone number to receive more messages. *

* * @param verifyDestinationNumberRequest * @return Result of the VerifyDestinationNumber operation returned by the service. * @throws ThrottlingException * An error that occurred because too many requests were sent during a certain amount of time. * @throws AccessDeniedException * The request was denied because you don't have sufficient permissions to access the resource. * @throws ResourceNotFoundException * A requested resource couldn't be found. * @throws ValidationException * A validation exception for a field. * @throws ConflictException * Your request has conflicting operations. This can occur if you're trying to perform more than one * operation on the same resource at the same time or it could be that the requested action isn't valid for * the current state or configuration of the resource. * @throws InternalServerException * The API encountered an unexpected error and couldn't complete the request. You might be able to * successfully issue the request again in the future. * @sample AmazonPinpointSMSVoiceV2.VerifyDestinationNumber * @see AWS API Documentation */ @Override public VerifyDestinationNumberResult verifyDestinationNumber(VerifyDestinationNumberRequest request) { request = beforeClientExecution(request); return executeVerifyDestinationNumber(request); } @SdkInternalApi final VerifyDestinationNumberResult executeVerifyDestinationNumber(VerifyDestinationNumberRequest verifyDestinationNumberRequest) { ExecutionContext executionContext = createExecutionContext(verifyDestinationNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new VerifyDestinationNumberRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(verifyDestinationNumberRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "VerifyDestinationNumber"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new VerifyDestinationNumberResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** * Returns additional metadata for a previously executed successful, request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing the request. * * @param request * The originally executed request * * @return The response metadata for the specified request, or null if none is available. */ public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) { return client.getResponseMetadataForRequest(request); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return invoke(request, responseHandler, executionContext, null, null); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI cachedEndpoint, URI uriFromEndpointTrait) { executionContext.setCredentialsProvider(CredentialUtils.getCredentialsProvider(request.getOriginalRequest(), awsCredentialsProvider)); return doInvoke(request, responseHandler, executionContext, cachedEndpoint, uriFromEndpointTrait); } /** * Invoke with no authentication. Credentials are not required and any credentials set on the client or request will * be ignored for this operation. **/ private Response anonymousInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return doInvoke(request, responseHandler, executionContext, null, null); } /** * Invoke the request using the http client. Assumes credentials (or lack thereof) have been configured in the * ExecutionContext beforehand. **/ private Response doInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) { if (discoveredEndpoint != null) { request.setEndpoint(discoveredEndpoint); request.getOriginalRequest().getRequestClientOptions().appendUserAgent("endpoint-discovery"); } else if (uriFromEndpointTrait != null) { request.setEndpoint(uriFromEndpointTrait); } else { request.setEndpoint(endpoint); } request.setTimeOffset(timeOffset); HttpResponseHandler errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata()); return client.execute(request, responseHandler, errorResponseHandler, executionContext); } @com.amazonaws.annotation.SdkInternalApi static com.amazonaws.protocol.json.SdkJsonProtocolFactory getProtocolFactory() { return protocolFactory; } @Override public void shutdown() { super.shutdown(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy