/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Http { class HttpClient; class HttpClientFactory; } // namespace Http namespace Utils { template< typename R, typename E> class Outcome; namespace Threading { class Executor; } // namespace Threading } // namespace Utils namespace Auth { class AWSCredentials; class AWSCredentialsProvider; } // namespace Auth namespace Client { class RetryStrategy; } // namespace Client namespace PinpointSMSVoice { namespace Model { class CreateConfigurationSetRequest; class CreateConfigurationSetEventDestinationRequest; class DeleteConfigurationSetRequest; class DeleteConfigurationSetEventDestinationRequest; class GetConfigurationSetEventDestinationsRequest; class ListConfigurationSetsRequest; class SendVoiceMessageRequest; class UpdateConfigurationSetEventDestinationRequest; typedef Aws::Utils::Outcome CreateConfigurationSetOutcome; typedef Aws::Utils::Outcome CreateConfigurationSetEventDestinationOutcome; typedef Aws::Utils::Outcome DeleteConfigurationSetOutcome; typedef Aws::Utils::Outcome DeleteConfigurationSetEventDestinationOutcome; typedef Aws::Utils::Outcome GetConfigurationSetEventDestinationsOutcome; typedef Aws::Utils::Outcome ListConfigurationSetsOutcome; typedef Aws::Utils::Outcome SendVoiceMessageOutcome; typedef Aws::Utils::Outcome UpdateConfigurationSetEventDestinationOutcome; typedef std::future CreateConfigurationSetOutcomeCallable; typedef std::future CreateConfigurationSetEventDestinationOutcomeCallable; typedef std::future DeleteConfigurationSetOutcomeCallable; typedef std::future DeleteConfigurationSetEventDestinationOutcomeCallable; typedef std::future GetConfigurationSetEventDestinationsOutcomeCallable; typedef std::future ListConfigurationSetsOutcomeCallable; typedef std::future SendVoiceMessageOutcomeCallable; typedef std::future UpdateConfigurationSetEventDestinationOutcomeCallable; } // namespace Model class PinpointSMSVoiceClient; typedef std::function&) > CreateConfigurationSetResponseReceivedHandler; typedef std::function&) > CreateConfigurationSetEventDestinationResponseReceivedHandler; typedef std::function&) > DeleteConfigurationSetResponseReceivedHandler; typedef std::function&) > DeleteConfigurationSetEventDestinationResponseReceivedHandler; typedef std::function&) > GetConfigurationSetEventDestinationsResponseReceivedHandler; typedef std::function&) > ListConfigurationSetsResponseReceivedHandler; typedef std::function&) > SendVoiceMessageResponseReceivedHandler; typedef std::function&) > UpdateConfigurationSetEventDestinationResponseReceivedHandler; /** * Pinpoint SMS and Voice Messaging public facing APIs */ class AWS_PINPOINTSMSVOICE_API PinpointSMSVoiceClient : public Aws::Client::AWSJsonClient { public: typedef Aws::Client::AWSJsonClient BASECLASS; /** * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config * is not specified, it will be initialized to default values. */ PinpointSMSVoiceClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); /** * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config * is not specified, it will be initialized to default values. */ PinpointSMSVoiceClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); /** * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, * the default http client factory will be used */ PinpointSMSVoiceClient(const std::shared_ptr& credentialsProvider, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); virtual ~PinpointSMSVoiceClient(); /** * Create a new configuration set. After you create the configuration set, you can * add one or more event destinations to it.

See Also:

AWS * API Reference

*/ virtual Model::CreateConfigurationSetOutcome CreateConfigurationSet(const Model::CreateConfigurationSetRequest& request) const; /** * Create a new configuration set. After you create the configuration set, you can * add one or more event destinations to it.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::CreateConfigurationSetOutcomeCallable CreateConfigurationSetCallable(const Model::CreateConfigurationSetRequest& request) const; /** * Create a new configuration set. After you create the configuration set, you can * add one or more event destinations to it.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void CreateConfigurationSetAsync(const Model::CreateConfigurationSetRequest& request, const CreateConfigurationSetResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** * Create a new event destination in a configuration set.

See Also:

AWS * API Reference

*/ virtual Model::CreateConfigurationSetEventDestinationOutcome CreateConfigurationSetEventDestination(const Model::CreateConfigurationSetEventDestinationRequest& request) const; /** * Create a new event destination in a configuration set.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::CreateConfigurationSetEventDestinationOutcomeCallable CreateConfigurationSetEventDestinationCallable(const Model::CreateConfigurationSetEventDestinationRequest& request) const; /** * Create a new event destination in a configuration set.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void CreateConfigurationSetEventDestinationAsync(const Model::CreateConfigurationSetEventDestinationRequest& request, const CreateConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** * Deletes an existing configuration set.

See Also:

AWS * API Reference

*/ virtual Model::DeleteConfigurationSetOutcome DeleteConfigurationSet(const Model::DeleteConfigurationSetRequest& request) const; /** * Deletes an existing configuration set.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::DeleteConfigurationSetOutcomeCallable DeleteConfigurationSetCallable(const Model::DeleteConfigurationSetRequest& request) const; /** * Deletes an existing configuration set.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void DeleteConfigurationSetAsync(const Model::DeleteConfigurationSetRequest& request, const DeleteConfigurationSetResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** * Deletes an event destination in a configuration set.

See Also:

AWS * API Reference

*/ virtual Model::DeleteConfigurationSetEventDestinationOutcome DeleteConfigurationSetEventDestination(const Model::DeleteConfigurationSetEventDestinationRequest& request) const; /** * Deletes an event destination in a configuration set.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::DeleteConfigurationSetEventDestinationOutcomeCallable DeleteConfigurationSetEventDestinationCallable(const Model::DeleteConfigurationSetEventDestinationRequest& request) const; /** * Deletes an event destination in a configuration set.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void DeleteConfigurationSetEventDestinationAsync(const Model::DeleteConfigurationSetEventDestinationRequest& request, const DeleteConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** * Obtain information about an event destination, including the types of events it * reports, the Amazon Resource Name (ARN) of the destination, and the name of the * event destination.

See Also:

AWS * API Reference

*/ virtual Model::GetConfigurationSetEventDestinationsOutcome GetConfigurationSetEventDestinations(const Model::GetConfigurationSetEventDestinationsRequest& request) const; /** * Obtain information about an event destination, including the types of events it * reports, the Amazon Resource Name (ARN) of the destination, and the name of the * event destination.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::GetConfigurationSetEventDestinationsOutcomeCallable GetConfigurationSetEventDestinationsCallable(const Model::GetConfigurationSetEventDestinationsRequest& request) const; /** * Obtain information about an event destination, including the types of events it * reports, the Amazon Resource Name (ARN) of the destination, and the name of the * event destination.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void GetConfigurationSetEventDestinationsAsync(const Model::GetConfigurationSetEventDestinationsRequest& request, const GetConfigurationSetEventDestinationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** * List all of the configuration sets associated with your Amazon Pinpoint account * in the current region.

See Also:

AWS * API Reference

*/ virtual Model::ListConfigurationSetsOutcome ListConfigurationSets(const Model::ListConfigurationSetsRequest& request) const; /** * List all of the configuration sets associated with your Amazon Pinpoint account * in the current region.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::ListConfigurationSetsOutcomeCallable ListConfigurationSetsCallable(const Model::ListConfigurationSetsRequest& request) const; /** * List all of the configuration sets associated with your Amazon Pinpoint account * in the current region.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void ListConfigurationSetsAsync(const Model::ListConfigurationSetsRequest& request, const ListConfigurationSetsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** * Create a new voice message and send it to a recipient's phone number.

See * Also:

AWS * API Reference

*/ virtual Model::SendVoiceMessageOutcome SendVoiceMessage(const Model::SendVoiceMessageRequest& request) const; /** * Create a new voice message and send it to a recipient's phone number.

See * Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::SendVoiceMessageOutcomeCallable SendVoiceMessageCallable(const Model::SendVoiceMessageRequest& request) const; /** * Create a new voice message and send it to a recipient's phone number.

See * Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void SendVoiceMessageAsync(const Model::SendVoiceMessageRequest& request, const SendVoiceMessageResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** * Update an event destination in a configuration set. An event destination is a * location that you publish information about your voice calls to. For example, * you can log an event to an Amazon CloudWatch destination when a call * fails.

See Also:

AWS * API Reference

*/ virtual Model::UpdateConfigurationSetEventDestinationOutcome UpdateConfigurationSetEventDestination(const Model::UpdateConfigurationSetEventDestinationRequest& request) const; /** * Update an event destination in a configuration set. An event destination is a * location that you publish information about your voice calls to. For example, * you can log an event to an Amazon CloudWatch destination when a call * fails.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::UpdateConfigurationSetEventDestinationOutcomeCallable UpdateConfigurationSetEventDestinationCallable(const Model::UpdateConfigurationSetEventDestinationRequest& request) const; /** * Update an event destination in a configuration set. An event destination is a * location that you publish information about your voice calls to. For example, * you can log an event to an Amazon CloudWatch destination when a call * fails.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void UpdateConfigurationSetEventDestinationAsync(const Model::UpdateConfigurationSetEventDestinationRequest& request, const UpdateConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; void OverrideEndpoint(const Aws::String& endpoint); private: void init(const Aws::Client::ClientConfiguration& clientConfiguration); void CreateConfigurationSetAsyncHelper(const Model::CreateConfigurationSetRequest& request, const CreateConfigurationSetResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CreateConfigurationSetEventDestinationAsyncHelper(const Model::CreateConfigurationSetEventDestinationRequest& request, const CreateConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteConfigurationSetAsyncHelper(const Model::DeleteConfigurationSetRequest& request, const DeleteConfigurationSetResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteConfigurationSetEventDestinationAsyncHelper(const Model::DeleteConfigurationSetEventDestinationRequest& request, const DeleteConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetConfigurationSetEventDestinationsAsyncHelper(const Model::GetConfigurationSetEventDestinationsRequest& request, const GetConfigurationSetEventDestinationsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListConfigurationSetsAsyncHelper(const Model::ListConfigurationSetsRequest& request, const ListConfigurationSetsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void SendVoiceMessageAsyncHelper(const Model::SendVoiceMessageRequest& request, const SendVoiceMessageResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateConfigurationSetEventDestinationAsyncHelper(const Model::UpdateConfigurationSetEventDestinationRequest& request, const UpdateConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const; Aws::String m_uri; Aws::String m_configScheme; std::shared_ptr m_executor; }; } // namespace PinpointSMSVoice } // namespace Aws