feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,373 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/sms-voice/model/CreateConfigurationSetResult.h>
#include <aws/sms-voice/model/CreateConfigurationSetEventDestinationResult.h>
#include <aws/sms-voice/model/DeleteConfigurationSetResult.h>
#include <aws/sms-voice/model/DeleteConfigurationSetEventDestinationResult.h>
#include <aws/sms-voice/model/GetConfigurationSetEventDestinationsResult.h>
#include <aws/sms-voice/model/ListConfigurationSetsResult.h>
#include <aws/sms-voice/model/SendVoiceMessageResult.h>
#include <aws/sms-voice/model/UpdateConfigurationSetEventDestinationResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
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<CreateConfigurationSetResult, PinpointSMSVoiceError> CreateConfigurationSetOutcome;
typedef Aws::Utils::Outcome<CreateConfigurationSetEventDestinationResult, PinpointSMSVoiceError> CreateConfigurationSetEventDestinationOutcome;
typedef Aws::Utils::Outcome<DeleteConfigurationSetResult, PinpointSMSVoiceError> DeleteConfigurationSetOutcome;
typedef Aws::Utils::Outcome<DeleteConfigurationSetEventDestinationResult, PinpointSMSVoiceError> DeleteConfigurationSetEventDestinationOutcome;
typedef Aws::Utils::Outcome<GetConfigurationSetEventDestinationsResult, PinpointSMSVoiceError> GetConfigurationSetEventDestinationsOutcome;
typedef Aws::Utils::Outcome<ListConfigurationSetsResult, PinpointSMSVoiceError> ListConfigurationSetsOutcome;
typedef Aws::Utils::Outcome<SendVoiceMessageResult, PinpointSMSVoiceError> SendVoiceMessageOutcome;
typedef Aws::Utils::Outcome<UpdateConfigurationSetEventDestinationResult, PinpointSMSVoiceError> UpdateConfigurationSetEventDestinationOutcome;
typedef std::future<CreateConfigurationSetOutcome> CreateConfigurationSetOutcomeCallable;
typedef std::future<CreateConfigurationSetEventDestinationOutcome> CreateConfigurationSetEventDestinationOutcomeCallable;
typedef std::future<DeleteConfigurationSetOutcome> DeleteConfigurationSetOutcomeCallable;
typedef std::future<DeleteConfigurationSetEventDestinationOutcome> DeleteConfigurationSetEventDestinationOutcomeCallable;
typedef std::future<GetConfigurationSetEventDestinationsOutcome> GetConfigurationSetEventDestinationsOutcomeCallable;
typedef std::future<ListConfigurationSetsOutcome> ListConfigurationSetsOutcomeCallable;
typedef std::future<SendVoiceMessageOutcome> SendVoiceMessageOutcomeCallable;
typedef std::future<UpdateConfigurationSetEventDestinationOutcome> UpdateConfigurationSetEventDestinationOutcomeCallable;
} // namespace Model
class PinpointSMSVoiceClient;
typedef std::function<void(const PinpointSMSVoiceClient*, const Model::CreateConfigurationSetRequest&, const Model::CreateConfigurationSetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateConfigurationSetResponseReceivedHandler;
typedef std::function<void(const PinpointSMSVoiceClient*, const Model::CreateConfigurationSetEventDestinationRequest&, const Model::CreateConfigurationSetEventDestinationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateConfigurationSetEventDestinationResponseReceivedHandler;
typedef std::function<void(const PinpointSMSVoiceClient*, const Model::DeleteConfigurationSetRequest&, const Model::DeleteConfigurationSetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteConfigurationSetResponseReceivedHandler;
typedef std::function<void(const PinpointSMSVoiceClient*, const Model::DeleteConfigurationSetEventDestinationRequest&, const Model::DeleteConfigurationSetEventDestinationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteConfigurationSetEventDestinationResponseReceivedHandler;
typedef std::function<void(const PinpointSMSVoiceClient*, const Model::GetConfigurationSetEventDestinationsRequest&, const Model::GetConfigurationSetEventDestinationsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetConfigurationSetEventDestinationsResponseReceivedHandler;
typedef std::function<void(const PinpointSMSVoiceClient*, const Model::ListConfigurationSetsRequest&, const Model::ListConfigurationSetsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListConfigurationSetsResponseReceivedHandler;
typedef std::function<void(const PinpointSMSVoiceClient*, const Model::SendVoiceMessageRequest&, const Model::SendVoiceMessageOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > SendVoiceMessageResponseReceivedHandler;
typedef std::function<void(const PinpointSMSVoiceClient*, const Model::UpdateConfigurationSetEventDestinationRequest&, const Model::UpdateConfigurationSetEventDestinationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > 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<Aws::Auth::AWSCredentialsProvider>& 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSet">AWS
* API Reference</a></p>
*/
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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSet">AWS
* API Reference</a></p>
*
* 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSet">AWS
* API Reference</a></p>
*
* 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<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Create a new event destination in a configuration set.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestination">AWS
* API Reference</a></p>
*/
virtual Model::CreateConfigurationSetEventDestinationOutcome CreateConfigurationSetEventDestination(const Model::CreateConfigurationSetEventDestinationRequest& request) const;
/**
* Create a new event destination in a configuration set.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestination">AWS
* API Reference</a></p>
*
* 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestination">AWS
* API Reference</a></p>
*
* 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<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Deletes an existing configuration set.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSet">AWS
* API Reference</a></p>
*/
virtual Model::DeleteConfigurationSetOutcome DeleteConfigurationSet(const Model::DeleteConfigurationSetRequest& request) const;
/**
* Deletes an existing configuration set.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSet">AWS
* API Reference</a></p>
*
* 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSet">AWS
* API Reference</a></p>
*
* 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<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Deletes an event destination in a configuration set.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetEventDestination">AWS
* API Reference</a></p>
*/
virtual Model::DeleteConfigurationSetEventDestinationOutcome DeleteConfigurationSetEventDestination(const Model::DeleteConfigurationSetEventDestinationRequest& request) const;
/**
* Deletes an event destination in a configuration set.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetEventDestination">AWS
* API Reference</a></p>
*
* 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetEventDestination">AWS
* API Reference</a></p>
*
* 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<const Aws::Client::AsyncCallerContext>& 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/GetConfigurationSetEventDestinations">AWS
* API Reference</a></p>
*/
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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/GetConfigurationSetEventDestinations">AWS
* API Reference</a></p>
*
* 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/GetConfigurationSetEventDestinations">AWS
* API Reference</a></p>
*
* 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<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* List all of the configuration sets associated with your Amazon Pinpoint account
* in the current region.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/ListConfigurationSets">AWS
* API Reference</a></p>
*/
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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/ListConfigurationSets">AWS
* API Reference</a></p>
*
* 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/ListConfigurationSets">AWS
* API Reference</a></p>
*
* 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<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Create a new voice message and send it to a recipient's phone number.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessage">AWS
* API Reference</a></p>
*/
virtual Model::SendVoiceMessageOutcome SendVoiceMessage(const Model::SendVoiceMessageRequest& request) const;
/**
* Create a new voice message and send it to a recipient's phone number.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessage">AWS
* API Reference</a></p>
*
* 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.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessage">AWS
* API Reference</a></p>
*
* 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<const Aws::Client::AsyncCallerContext>& 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestination">AWS
* API Reference</a></p>
*/
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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestination">AWS
* API Reference</a></p>
*
* 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.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestination">AWS
* API Reference</a></p>
*
* 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<const Aws::Client::AsyncCallerContext>& 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<const Aws::Client::AsyncCallerContext>& context) const;
void CreateConfigurationSetEventDestinationAsyncHelper(const Model::CreateConfigurationSetEventDestinationRequest& request, const CreateConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteConfigurationSetAsyncHelper(const Model::DeleteConfigurationSetRequest& request, const DeleteConfigurationSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteConfigurationSetEventDestinationAsyncHelper(const Model::DeleteConfigurationSetEventDestinationRequest& request, const DeleteConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetConfigurationSetEventDestinationsAsyncHelper(const Model::GetConfigurationSetEventDestinationsRequest& request, const GetConfigurationSetEventDestinationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListConfigurationSetsAsyncHelper(const Model::ListConfigurationSetsRequest& request, const ListConfigurationSetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void SendVoiceMessageAsyncHelper(const Model::SendVoiceMessageRequest& request, const SendVoiceMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UpdateConfigurationSetEventDestinationAsyncHelper(const Model::UpdateConfigurationSetEventDestinationRequest& request, const UpdateConfigurationSetEventDestinationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace PinpointSMSVoiceEndpoint
{
AWS_PINPOINTSMSVOICE_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace PinpointSMSVoiceEndpoint
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_PINPOINTSMSVOICE_API PinpointSMSVoiceErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
namespace Aws
{
namespace PinpointSMSVoice
{
enum class PinpointSMSVoiceErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
ALREADY_EXISTS= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
BAD_REQUEST,
INTERNAL_SERVICE_ERROR,
LIMIT_EXCEEDED,
NOT_FOUND,
TOO_MANY_REQUESTS
};
class AWS_PINPOINTSMSVOICE_API PinpointSMSVoiceError : public Aws::Client::AWSError<PinpointSMSVoiceErrors>
{
public:
PinpointSMSVoiceError() {}
PinpointSMSVoiceError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<PinpointSMSVoiceErrors>(rhs) {}
PinpointSMSVoiceError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<PinpointSMSVoiceErrors>(rhs) {}
PinpointSMSVoiceError(const Aws::Client::AWSError<PinpointSMSVoiceErrors>& rhs) : Aws::Client::AWSError<PinpointSMSVoiceErrors>(rhs) {}
PinpointSMSVoiceError(Aws::Client::AWSError<PinpointSMSVoiceErrors>&& rhs) : Aws::Client::AWSError<PinpointSMSVoiceErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace PinpointSMSVoiceErrorMapper
{
AWS_PINPOINTSMSVOICE_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace PinpointSMSVoice
{
class AWS_PINPOINTSMSVOICE_API PinpointSMSVoiceRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~PinpointSMSVoiceRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-09-05"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_PINPOINTSMSVOICE_EXPORTS
#define AWS_PINPOINTSMSVOICE_API __declspec(dllexport)
#else
#define AWS_PINPOINTSMSVOICE_API __declspec(dllimport)
#endif /* AWS_PINPOINTSMSVOICE_EXPORTS */
#else
#define AWS_PINPOINTSMSVOICE_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_PINPOINTSMSVOICE_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that defines a message that contains text formatted using Amazon
* Pinpoint Voice Instructions markup.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CallInstructionsMessageType">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API CallInstructionsMessageType
{
public:
CallInstructionsMessageType();
CallInstructionsMessageType(Aws::Utils::Json::JsonView jsonValue);
CallInstructionsMessageType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline CallInstructionsMessageType& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline CallInstructionsMessageType& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline CallInstructionsMessageType& WithText(const char* value) { SetText(value); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that contains information about an event destination that sends data
* to Amazon CloudWatch Logs.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CloudWatchLogsDestination">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API CloudWatchLogsDestination
{
public:
CloudWatchLogsDestination();
CloudWatchLogsDestination(Aws::Utils::Json::JsonView jsonValue);
CloudWatchLogsDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM)
* role that is able to write event data to an Amazon CloudWatch destination.
*/
inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM)
* role that is able to write event data to an Amazon CloudWatch destination.
*/
inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM)
* role that is able to write event data to an Amazon CloudWatch destination.
*/
inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM)
* role that is able to write event data to an Amazon CloudWatch destination.
*/
inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM)
* role that is able to write event data to an Amazon CloudWatch destination.
*/
inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM)
* role that is able to write event data to an Amazon CloudWatch destination.
*/
inline CloudWatchLogsDestination& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM)
* role that is able to write event data to an Amazon CloudWatch destination.
*/
inline CloudWatchLogsDestination& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM)
* role that is able to write event data to an Amazon CloudWatch destination.
*/
inline CloudWatchLogsDestination& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; }
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; }
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); }
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); }
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
inline CloudWatchLogsDestination& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;}
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
inline CloudWatchLogsDestination& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;}
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
inline CloudWatchLogsDestination& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;}
private:
Aws::String m_iamRoleArn;
bool m_iamRoleArnHasBeenSet;
Aws::String m_logGroupArn;
bool m_logGroupArnHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,153 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms-voice/model/EventDestinationDefinition.h>
#include <utility>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace Model
{
/**
* Create a new event destination in a configuration set.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestinationRequest">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API CreateConfigurationSetEventDestinationRequest : public PinpointSMSVoiceRequest
{
public:
CreateConfigurationSetEventDestinationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateConfigurationSetEventDestination"; }
Aws::String SerializePayload() const override;
/**
* ConfigurationSetName
*/
inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
/**
* ConfigurationSetName
*/
inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
/**
* ConfigurationSetName
*/
inline CreateConfigurationSetEventDestinationRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
/**
* ConfigurationSetName
*/
inline CreateConfigurationSetEventDestinationRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
/**
* ConfigurationSetName
*/
inline CreateConfigurationSetEventDestinationRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
inline const EventDestinationDefinition& GetEventDestination() const{ return m_eventDestination; }
inline bool EventDestinationHasBeenSet() const { return m_eventDestinationHasBeenSet; }
inline void SetEventDestination(const EventDestinationDefinition& value) { m_eventDestinationHasBeenSet = true; m_eventDestination = value; }
inline void SetEventDestination(EventDestinationDefinition&& value) { m_eventDestinationHasBeenSet = true; m_eventDestination = std::move(value); }
inline CreateConfigurationSetEventDestinationRequest& WithEventDestination(const EventDestinationDefinition& value) { SetEventDestination(value); return *this;}
inline CreateConfigurationSetEventDestinationRequest& WithEventDestination(EventDestinationDefinition&& value) { SetEventDestination(std::move(value)); return *this;}
/**
* A name that identifies the event destination.
*/
inline const Aws::String& GetEventDestinationName() const{ return m_eventDestinationName; }
/**
* A name that identifies the event destination.
*/
inline bool EventDestinationNameHasBeenSet() const { return m_eventDestinationNameHasBeenSet; }
/**
* A name that identifies the event destination.
*/
inline void SetEventDestinationName(const Aws::String& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = value; }
/**
* A name that identifies the event destination.
*/
inline void SetEventDestinationName(Aws::String&& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = std::move(value); }
/**
* A name that identifies the event destination.
*/
inline void SetEventDestinationName(const char* value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName.assign(value); }
/**
* A name that identifies the event destination.
*/
inline CreateConfigurationSetEventDestinationRequest& WithEventDestinationName(const Aws::String& value) { SetEventDestinationName(value); return *this;}
/**
* A name that identifies the event destination.
*/
inline CreateConfigurationSetEventDestinationRequest& WithEventDestinationName(Aws::String&& value) { SetEventDestinationName(std::move(value)); return *this;}
/**
* A name that identifies the event destination.
*/
inline CreateConfigurationSetEventDestinationRequest& WithEventDestinationName(const char* value) { SetEventDestinationName(value); return *this;}
private:
Aws::String m_configurationSetName;
bool m_configurationSetNameHasBeenSet;
EventDestinationDefinition m_eventDestination;
bool m_eventDestinationHasBeenSet;
Aws::String m_eventDestinationName;
bool m_eventDestinationNameHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An empty object that indicates that the event destination was created
* successfully.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestinationResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API CreateConfigurationSetEventDestinationResult
{
public:
CreateConfigurationSetEventDestinationResult();
CreateConfigurationSetEventDestinationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateConfigurationSetEventDestinationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace Model
{
/**
* A request to create a new configuration set.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetRequest">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API CreateConfigurationSetRequest : public PinpointSMSVoiceRequest
{
public:
CreateConfigurationSetRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateConfigurationSet"; }
Aws::String SerializePayload() const override;
/**
* The name that you want to give the configuration set.
*/
inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
/**
* The name that you want to give the configuration set.
*/
inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
/**
* The name that you want to give the configuration set.
*/
inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
/**
* The name that you want to give the configuration set.
*/
inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
/**
* The name that you want to give the configuration set.
*/
inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
/**
* The name that you want to give the configuration set.
*/
inline CreateConfigurationSetRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
/**
* The name that you want to give the configuration set.
*/
inline CreateConfigurationSetRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
/**
* The name that you want to give the configuration set.
*/
inline CreateConfigurationSetRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
private:
Aws::String m_configurationSetName;
bool m_configurationSetNameHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An empty object that indicates that the configuration set was successfully
* created.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API CreateConfigurationSetResult
{
public:
CreateConfigurationSetResult();
CreateConfigurationSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateConfigurationSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace Model
{
/**
*/
class AWS_PINPOINTSMSVOICE_API DeleteConfigurationSetEventDestinationRequest : public PinpointSMSVoiceRequest
{
public:
DeleteConfigurationSetEventDestinationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteConfigurationSetEventDestination"; }
Aws::String SerializePayload() const override;
/**
* ConfigurationSetName
*/
inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
/**
* ConfigurationSetName
*/
inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
/**
* ConfigurationSetName
*/
inline DeleteConfigurationSetEventDestinationRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
/**
* ConfigurationSetName
*/
inline DeleteConfigurationSetEventDestinationRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
/**
* ConfigurationSetName
*/
inline DeleteConfigurationSetEventDestinationRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
/**
* EventDestinationName
*/
inline const Aws::String& GetEventDestinationName() const{ return m_eventDestinationName; }
/**
* EventDestinationName
*/
inline bool EventDestinationNameHasBeenSet() const { return m_eventDestinationNameHasBeenSet; }
/**
* EventDestinationName
*/
inline void SetEventDestinationName(const Aws::String& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = value; }
/**
* EventDestinationName
*/
inline void SetEventDestinationName(Aws::String&& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = std::move(value); }
/**
* EventDestinationName
*/
inline void SetEventDestinationName(const char* value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName.assign(value); }
/**
* EventDestinationName
*/
inline DeleteConfigurationSetEventDestinationRequest& WithEventDestinationName(const Aws::String& value) { SetEventDestinationName(value); return *this;}
/**
* EventDestinationName
*/
inline DeleteConfigurationSetEventDestinationRequest& WithEventDestinationName(Aws::String&& value) { SetEventDestinationName(std::move(value)); return *this;}
/**
* EventDestinationName
*/
inline DeleteConfigurationSetEventDestinationRequest& WithEventDestinationName(const char* value) { SetEventDestinationName(value); return *this;}
private:
Aws::String m_configurationSetName;
bool m_configurationSetNameHasBeenSet;
Aws::String m_eventDestinationName;
bool m_eventDestinationNameHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An empty object that indicates that the event destination was deleted
* successfully.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetEventDestinationResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API DeleteConfigurationSetEventDestinationResult
{
public:
DeleteConfigurationSetEventDestinationResult();
DeleteConfigurationSetEventDestinationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteConfigurationSetEventDestinationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace Model
{
/**
*/
class AWS_PINPOINTSMSVOICE_API DeleteConfigurationSetRequest : public PinpointSMSVoiceRequest
{
public:
DeleteConfigurationSetRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteConfigurationSet"; }
Aws::String SerializePayload() const override;
/**
* ConfigurationSetName
*/
inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
/**
* ConfigurationSetName
*/
inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
/**
* ConfigurationSetName
*/
inline DeleteConfigurationSetRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
/**
* ConfigurationSetName
*/
inline DeleteConfigurationSetRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
/**
* ConfigurationSetName
*/
inline DeleteConfigurationSetRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
private:
Aws::String m_configurationSetName;
bool m_configurationSetNameHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An empty object that indicates that the configuration set was deleted
* successfully.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API DeleteConfigurationSetResult
{
public:
DeleteConfigurationSetResult();
DeleteConfigurationSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteConfigurationSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,219 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/model/CloudWatchLogsDestination.h>
#include <aws/sms-voice/model/KinesisFirehoseDestination.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms-voice/model/SnsDestination.h>
#include <aws/sms-voice/model/EventType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that defines an event destination.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/EventDestination">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API EventDestination
{
public:
EventDestination();
EventDestination(Aws::Utils::Json::JsonView jsonValue);
EventDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const CloudWatchLogsDestination& GetCloudWatchLogsDestination() const{ return m_cloudWatchLogsDestination; }
inline bool CloudWatchLogsDestinationHasBeenSet() const { return m_cloudWatchLogsDestinationHasBeenSet; }
inline void SetCloudWatchLogsDestination(const CloudWatchLogsDestination& value) { m_cloudWatchLogsDestinationHasBeenSet = true; m_cloudWatchLogsDestination = value; }
inline void SetCloudWatchLogsDestination(CloudWatchLogsDestination&& value) { m_cloudWatchLogsDestinationHasBeenSet = true; m_cloudWatchLogsDestination = std::move(value); }
inline EventDestination& WithCloudWatchLogsDestination(const CloudWatchLogsDestination& value) { SetCloudWatchLogsDestination(value); return *this;}
inline EventDestination& WithCloudWatchLogsDestination(CloudWatchLogsDestination&& value) { SetCloudWatchLogsDestination(std::move(value)); return *this;}
/**
* Indicates whether or not the event destination is enabled. If the event
* destination is enabled, then Amazon Pinpoint sends response data to the
* specified event destination.
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* Indicates whether or not the event destination is enabled. If the event
* destination is enabled, then Amazon Pinpoint sends response data to the
* specified event destination.
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* Indicates whether or not the event destination is enabled. If the event
* destination is enabled, then Amazon Pinpoint sends response data to the
* specified event destination.
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* Indicates whether or not the event destination is enabled. If the event
* destination is enabled, then Amazon Pinpoint sends response data to the
* specified event destination.
*/
inline EventDestination& WithEnabled(bool value) { SetEnabled(value); return *this;}
inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
inline EventDestination& WithKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { SetKinesisFirehoseDestination(value); return *this;}
inline EventDestination& WithKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { SetKinesisFirehoseDestination(std::move(value)); return *this;}
inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
inline EventDestination& WithMatchingEventTypes(const Aws::Vector<EventType>& value) { SetMatchingEventTypes(value); return *this;}
inline EventDestination& WithMatchingEventTypes(Aws::Vector<EventType>&& value) { SetMatchingEventTypes(std::move(value)); return *this;}
inline EventDestination& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
inline EventDestination& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
/**
* A name that identifies the event destination configuration.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* A name that identifies the event destination configuration.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* A name that identifies the event destination configuration.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* A name that identifies the event destination configuration.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* A name that identifies the event destination configuration.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* A name that identifies the event destination configuration.
*/
inline EventDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* A name that identifies the event destination configuration.
*/
inline EventDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* A name that identifies the event destination configuration.
*/
inline EventDestination& WithName(const char* value) { SetName(value); return *this;}
inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; }
inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; }
inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; }
inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); }
inline EventDestination& WithSnsDestination(const SnsDestination& value) { SetSnsDestination(value); return *this;}
inline EventDestination& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;}
private:
CloudWatchLogsDestination m_cloudWatchLogsDestination;
bool m_cloudWatchLogsDestinationHasBeenSet;
bool m_enabled;
bool m_enabledHasBeenSet;
KinesisFirehoseDestination m_kinesisFirehoseDestination;
bool m_kinesisFirehoseDestinationHasBeenSet;
Aws::Vector<EventType> m_matchingEventTypes;
bool m_matchingEventTypesHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
SnsDestination m_snsDestination;
bool m_snsDestinationHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,174 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/model/CloudWatchLogsDestination.h>
#include <aws/sms-voice/model/KinesisFirehoseDestination.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms-voice/model/SnsDestination.h>
#include <aws/sms-voice/model/EventType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that defines a single event destination.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/EventDestinationDefinition">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API EventDestinationDefinition
{
public:
EventDestinationDefinition();
EventDestinationDefinition(Aws::Utils::Json::JsonView jsonValue);
EventDestinationDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const CloudWatchLogsDestination& GetCloudWatchLogsDestination() const{ return m_cloudWatchLogsDestination; }
inline bool CloudWatchLogsDestinationHasBeenSet() const { return m_cloudWatchLogsDestinationHasBeenSet; }
inline void SetCloudWatchLogsDestination(const CloudWatchLogsDestination& value) { m_cloudWatchLogsDestinationHasBeenSet = true; m_cloudWatchLogsDestination = value; }
inline void SetCloudWatchLogsDestination(CloudWatchLogsDestination&& value) { m_cloudWatchLogsDestinationHasBeenSet = true; m_cloudWatchLogsDestination = std::move(value); }
inline EventDestinationDefinition& WithCloudWatchLogsDestination(const CloudWatchLogsDestination& value) { SetCloudWatchLogsDestination(value); return *this;}
inline EventDestinationDefinition& WithCloudWatchLogsDestination(CloudWatchLogsDestination&& value) { SetCloudWatchLogsDestination(std::move(value)); return *this;}
/**
* Indicates whether or not the event destination is enabled. If the event
* destination is enabled, then Amazon Pinpoint sends response data to the
* specified event destination.
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* Indicates whether or not the event destination is enabled. If the event
* destination is enabled, then Amazon Pinpoint sends response data to the
* specified event destination.
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* Indicates whether or not the event destination is enabled. If the event
* destination is enabled, then Amazon Pinpoint sends response data to the
* specified event destination.
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* Indicates whether or not the event destination is enabled. If the event
* destination is enabled, then Amazon Pinpoint sends response data to the
* specified event destination.
*/
inline EventDestinationDefinition& WithEnabled(bool value) { SetEnabled(value); return *this;}
inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
inline EventDestinationDefinition& WithKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { SetKinesisFirehoseDestination(value); return *this;}
inline EventDestinationDefinition& WithKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { SetKinesisFirehoseDestination(std::move(value)); return *this;}
inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
inline EventDestinationDefinition& WithMatchingEventTypes(const Aws::Vector<EventType>& value) { SetMatchingEventTypes(value); return *this;}
inline EventDestinationDefinition& WithMatchingEventTypes(Aws::Vector<EventType>&& value) { SetMatchingEventTypes(std::move(value)); return *this;}
inline EventDestinationDefinition& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
inline EventDestinationDefinition& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; }
inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; }
inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; }
inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); }
inline EventDestinationDefinition& WithSnsDestination(const SnsDestination& value) { SetSnsDestination(value); return *this;}
inline EventDestinationDefinition& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;}
private:
CloudWatchLogsDestination m_cloudWatchLogsDestination;
bool m_cloudWatchLogsDestinationHasBeenSet;
bool m_enabled;
bool m_enabledHasBeenSet;
KinesisFirehoseDestination m_kinesisFirehoseDestination;
bool m_kinesisFirehoseDestinationHasBeenSet;
Aws::Vector<EventType> m_matchingEventTypes;
bool m_matchingEventTypesHasBeenSet;
SnsDestination m_snsDestination;
bool m_snsDestinationHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace Model
{
enum class EventType
{
NOT_SET,
INITIATED_CALL,
RINGING,
ANSWERED,
COMPLETED_CALL,
BUSY,
FAILED,
NO_ANSWER
};
namespace EventTypeMapper
{
AWS_PINPOINTSMSVOICE_API EventType GetEventTypeForName(const Aws::String& name);
AWS_PINPOINTSMSVOICE_API Aws::String GetNameForEventType(EventType value);
} // namespace EventTypeMapper
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace Model
{
/**
*/
class AWS_PINPOINTSMSVOICE_API GetConfigurationSetEventDestinationsRequest : public PinpointSMSVoiceRequest
{
public:
GetConfigurationSetEventDestinationsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetConfigurationSetEventDestinations"; }
Aws::String SerializePayload() const override;
/**
* ConfigurationSetName
*/
inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
/**
* ConfigurationSetName
*/
inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
/**
* ConfigurationSetName
*/
inline GetConfigurationSetEventDestinationsRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
/**
* ConfigurationSetName
*/
inline GetConfigurationSetEventDestinationsRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
/**
* ConfigurationSetName
*/
inline GetConfigurationSetEventDestinationsRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
private:
Aws::String m_configurationSetName;
bool m_configurationSetNameHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms-voice/model/EventDestination.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that contains information about an event destination.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/GetConfigurationSetEventDestinationsResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API GetConfigurationSetEventDestinationsResult
{
public:
GetConfigurationSetEventDestinationsResult();
GetConfigurationSetEventDestinationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetConfigurationSetEventDestinationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::Vector<EventDestination>& GetEventDestinations() const{ return m_eventDestinations; }
inline void SetEventDestinations(const Aws::Vector<EventDestination>& value) { m_eventDestinations = value; }
inline void SetEventDestinations(Aws::Vector<EventDestination>&& value) { m_eventDestinations = std::move(value); }
inline GetConfigurationSetEventDestinationsResult& WithEventDestinations(const Aws::Vector<EventDestination>& value) { SetEventDestinations(value); return *this;}
inline GetConfigurationSetEventDestinationsResult& WithEventDestinations(Aws::Vector<EventDestination>&& value) { SetEventDestinations(std::move(value)); return *this;}
inline GetConfigurationSetEventDestinationsResult& AddEventDestinations(const EventDestination& value) { m_eventDestinations.push_back(value); return *this; }
inline GetConfigurationSetEventDestinationsResult& AddEventDestinations(EventDestination&& value) { m_eventDestinations.push_back(std::move(value)); return *this; }
private:
Aws::Vector<EventDestination> m_eventDestinations;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,149 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that contains information about an event destination that sends data
* to Amazon Kinesis Data Firehose.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/KinesisFirehoseDestination">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API KinesisFirehoseDestination
{
public:
KinesisFirehoseDestination();
KinesisFirehoseDestination(Aws::Utils::Json::JsonView jsonValue);
KinesisFirehoseDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
* Kinesis Data Firehose stream.
*/
inline const Aws::String& GetDeliveryStreamArn() const{ return m_deliveryStreamArn; }
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
* Kinesis Data Firehose stream.
*/
inline bool DeliveryStreamArnHasBeenSet() const { return m_deliveryStreamArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
* Kinesis Data Firehose stream.
*/
inline void SetDeliveryStreamArn(const Aws::String& value) { m_deliveryStreamArnHasBeenSet = true; m_deliveryStreamArn = value; }
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
* Kinesis Data Firehose stream.
*/
inline void SetDeliveryStreamArn(Aws::String&& value) { m_deliveryStreamArnHasBeenSet = true; m_deliveryStreamArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
* Kinesis Data Firehose stream.
*/
inline void SetDeliveryStreamArn(const char* value) { m_deliveryStreamArnHasBeenSet = true; m_deliveryStreamArn.assign(value); }
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
* Kinesis Data Firehose stream.
*/
inline KinesisFirehoseDestination& WithDeliveryStreamArn(const Aws::String& value) { SetDeliveryStreamArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
* Kinesis Data Firehose stream.
*/
inline KinesisFirehoseDestination& WithDeliveryStreamArn(Aws::String&& value) { SetDeliveryStreamArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
* Kinesis Data Firehose stream.
*/
inline KinesisFirehoseDestination& WithDeliveryStreamArn(const char* value) { SetDeliveryStreamArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
* that you want to use in the event destination.
*/
inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
* that you want to use in the event destination.
*/
inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
* that you want to use in the event destination.
*/
inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
* that you want to use in the event destination.
*/
inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
* that you want to use in the event destination.
*/
inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
* that you want to use in the event destination.
*/
inline KinesisFirehoseDestination& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
* that you want to use in the event destination.
*/
inline KinesisFirehoseDestination& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
* that you want to use in the event destination.
*/
inline KinesisFirehoseDestination& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
private:
Aws::String m_deliveryStreamArn;
bool m_deliveryStreamArnHasBeenSet;
Aws::String m_iamRoleArn;
bool m_iamRoleArnHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace PinpointSMSVoice
{
namespace Model
{
/**
*/
class AWS_PINPOINTSMSVOICE_API ListConfigurationSetsRequest : public PinpointSMSVoiceRequest
{
public:
ListConfigurationSetsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListConfigurationSets"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* A token returned from a previous call to the API that indicates the position in
* the list of results.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A token returned from a previous call to the API that indicates the position in
* the list of results.
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* A token returned from a previous call to the API that indicates the position in
* the list of results.
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* A token returned from a previous call to the API that indicates the position in
* the list of results.
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* A token returned from a previous call to the API that indicates the position in
* the list of results.
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* A token returned from a previous call to the API that indicates the position in
* the list of results.
*/
inline ListConfigurationSetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A token returned from a previous call to the API that indicates the position in
* the list of results.
*/
inline ListConfigurationSetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A token returned from a previous call to the API that indicates the position in
* the list of results.
*/
inline ListConfigurationSetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* Used to specify the number of items that should be returned in the response.
*/
inline const Aws::String& GetPageSize() const{ return m_pageSize; }
/**
* Used to specify the number of items that should be returned in the response.
*/
inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
/**
* Used to specify the number of items that should be returned in the response.
*/
inline void SetPageSize(const Aws::String& value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
/**
* Used to specify the number of items that should be returned in the response.
*/
inline void SetPageSize(Aws::String&& value) { m_pageSizeHasBeenSet = true; m_pageSize = std::move(value); }
/**
* Used to specify the number of items that should be returned in the response.
*/
inline void SetPageSize(const char* value) { m_pageSizeHasBeenSet = true; m_pageSize.assign(value); }
/**
* Used to specify the number of items that should be returned in the response.
*/
inline ListConfigurationSetsRequest& WithPageSize(const Aws::String& value) { SetPageSize(value); return *this;}
/**
* Used to specify the number of items that should be returned in the response.
*/
inline ListConfigurationSetsRequest& WithPageSize(Aws::String&& value) { SetPageSize(std::move(value)); return *this;}
/**
* Used to specify the number of items that should be returned in the response.
*/
inline ListConfigurationSetsRequest& WithPageSize(const char* value) { SetPageSize(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::String m_pageSize;
bool m_pageSizeHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,142 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that contains information about the configuration sets for your
* account in the current region.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/ListConfigurationSetsResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API ListConfigurationSetsResult
{
public:
ListConfigurationSetsResult();
ListConfigurationSetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListConfigurationSetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* An object that contains a list of configuration sets for your account in the
* current region.
*/
inline const Aws::Vector<Aws::String>& GetConfigurationSets() const{ return m_configurationSets; }
/**
* An object that contains a list of configuration sets for your account in the
* current region.
*/
inline void SetConfigurationSets(const Aws::Vector<Aws::String>& value) { m_configurationSets = value; }
/**
* An object that contains a list of configuration sets for your account in the
* current region.
*/
inline void SetConfigurationSets(Aws::Vector<Aws::String>&& value) { m_configurationSets = std::move(value); }
/**
* An object that contains a list of configuration sets for your account in the
* current region.
*/
inline ListConfigurationSetsResult& WithConfigurationSets(const Aws::Vector<Aws::String>& value) { SetConfigurationSets(value); return *this;}
/**
* An object that contains a list of configuration sets for your account in the
* current region.
*/
inline ListConfigurationSetsResult& WithConfigurationSets(Aws::Vector<Aws::String>&& value) { SetConfigurationSets(std::move(value)); return *this;}
/**
* An object that contains a list of configuration sets for your account in the
* current region.
*/
inline ListConfigurationSetsResult& AddConfigurationSets(const Aws::String& value) { m_configurationSets.push_back(value); return *this; }
/**
* An object that contains a list of configuration sets for your account in the
* current region.
*/
inline ListConfigurationSetsResult& AddConfigurationSets(Aws::String&& value) { m_configurationSets.push_back(std::move(value)); return *this; }
/**
* An object that contains a list of configuration sets for your account in the
* current region.
*/
inline ListConfigurationSetsResult& AddConfigurationSets(const char* value) { m_configurationSets.push_back(value); return *this; }
/**
* A token returned from a previous call to ListConfigurationSets to indicate the
* position in the list of configuration sets.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A token returned from a previous call to ListConfigurationSets to indicate the
* position in the list of configuration sets.
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* A token returned from a previous call to ListConfigurationSets to indicate the
* position in the list of configuration sets.
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* A token returned from a previous call to ListConfigurationSets to indicate the
* position in the list of configuration sets.
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* A token returned from a previous call to ListConfigurationSets to indicate the
* position in the list of configuration sets.
*/
inline ListConfigurationSetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A token returned from a previous call to ListConfigurationSets to indicate the
* position in the list of configuration sets.
*/
inline ListConfigurationSetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A token returned from a previous call to ListConfigurationSets to indicate the
* position in the list of configuration sets.
*/
inline ListConfigurationSetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_configurationSets;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that defines a message that contains unformatted text.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/PlainTextMessageType">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API PlainTextMessageType
{
public:
PlainTextMessageType();
PlainTextMessageType(Aws::Utils::Json::JsonView jsonValue);
PlainTextMessageType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline const Aws::String& GetLanguageCode() const{ return m_languageCode; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline PlainTextMessageType& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;}
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline PlainTextMessageType& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline PlainTextMessageType& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;}
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
inline PlainTextMessageType& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
inline PlainTextMessageType& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
inline PlainTextMessageType& WithText(const char* value) { SetText(value); return *this;}
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline const Aws::String& GetVoiceId() const{ return m_voiceId; }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline void SetVoiceId(const Aws::String& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline void SetVoiceId(Aws::String&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline void SetVoiceId(const char* value) { m_voiceIdHasBeenSet = true; m_voiceId.assign(value); }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline PlainTextMessageType& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;}
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline PlainTextMessageType& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;}
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline PlainTextMessageType& WithVoiceId(const char* value) { SetVoiceId(value); return *this;}
private:
Aws::String m_languageCode;
bool m_languageCodeHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
Aws::String m_voiceId;
bool m_voiceIdHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that defines a message that contains SSML-formatted text.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SSMLMessageType">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API SSMLMessageType
{
public:
SSMLMessageType();
SSMLMessageType(Aws::Utils::Json::JsonView jsonValue);
SSMLMessageType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline const Aws::String& GetLanguageCode() const{ return m_languageCode; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); }
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline SSMLMessageType& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;}
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline SSMLMessageType& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* The language to use when delivering the message. For a complete list of
* supported languages, see the Amazon Polly Developer Guide.
*/
inline SSMLMessageType& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;}
/**
* The SSML-formatted text to deliver to the recipient.
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* The SSML-formatted text to deliver to the recipient.
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* The SSML-formatted text to deliver to the recipient.
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* The SSML-formatted text to deliver to the recipient.
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* The SSML-formatted text to deliver to the recipient.
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* The SSML-formatted text to deliver to the recipient.
*/
inline SSMLMessageType& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* The SSML-formatted text to deliver to the recipient.
*/
inline SSMLMessageType& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* The SSML-formatted text to deliver to the recipient.
*/
inline SSMLMessageType& WithText(const char* value) { SetText(value); return *this;}
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline const Aws::String& GetVoiceId() const{ return m_voiceId; }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline void SetVoiceId(const Aws::String& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline void SetVoiceId(Aws::String&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline void SetVoiceId(const char* value) { m_voiceIdHasBeenSet = true; m_voiceId.assign(value); }
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline SSMLMessageType& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;}
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline SSMLMessageType& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;}
/**
* The name of the voice that you want to use to deliver the message. For a
* complete list of supported voices, see the Amazon Polly Developer Guide.
*/
inline SSMLMessageType& WithVoiceId(const char* value) { SetVoiceId(value); return *this;}
private:
Aws::String m_languageCode;
bool m_languageCodeHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
Aws::String m_voiceId;
bool m_voiceIdHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,273 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms-voice/model/VoiceMessageContent.h>
#include <utility>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace Model
{
/**
* SendVoiceMessageRequest<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessageRequest">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API SendVoiceMessageRequest : public PinpointSMSVoiceRequest
{
public:
SendVoiceMessageRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "SendVoiceMessage"; }
Aws::String SerializePayload() const override;
/**
* The phone number that appears on recipients' devices when they receive the
* message.
*/
inline const Aws::String& GetCallerId() const{ return m_callerId; }
/**
* The phone number that appears on recipients' devices when they receive the
* message.
*/
inline bool CallerIdHasBeenSet() const { return m_callerIdHasBeenSet; }
/**
* The phone number that appears on recipients' devices when they receive the
* message.
*/
inline void SetCallerId(const Aws::String& value) { m_callerIdHasBeenSet = true; m_callerId = value; }
/**
* The phone number that appears on recipients' devices when they receive the
* message.
*/
inline void SetCallerId(Aws::String&& value) { m_callerIdHasBeenSet = true; m_callerId = std::move(value); }
/**
* The phone number that appears on recipients' devices when they receive the
* message.
*/
inline void SetCallerId(const char* value) { m_callerIdHasBeenSet = true; m_callerId.assign(value); }
/**
* The phone number that appears on recipients' devices when they receive the
* message.
*/
inline SendVoiceMessageRequest& WithCallerId(const Aws::String& value) { SetCallerId(value); return *this;}
/**
* The phone number that appears on recipients' devices when they receive the
* message.
*/
inline SendVoiceMessageRequest& WithCallerId(Aws::String&& value) { SetCallerId(std::move(value)); return *this;}
/**
* The phone number that appears on recipients' devices when they receive the
* message.
*/
inline SendVoiceMessageRequest& WithCallerId(const char* value) { SetCallerId(value); return *this;}
/**
* The name of the configuration set that you want to use to send the message.
*/
inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
/**
* The name of the configuration set that you want to use to send the message.
*/
inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
/**
* The name of the configuration set that you want to use to send the message.
*/
inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
/**
* The name of the configuration set that you want to use to send the message.
*/
inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
/**
* The name of the configuration set that you want to use to send the message.
*/
inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
/**
* The name of the configuration set that you want to use to send the message.
*/
inline SendVoiceMessageRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
/**
* The name of the configuration set that you want to use to send the message.
*/
inline SendVoiceMessageRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
/**
* The name of the configuration set that you want to use to send the message.
*/
inline SendVoiceMessageRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
inline const VoiceMessageContent& GetContent() const{ return m_content; }
inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
inline void SetContent(const VoiceMessageContent& value) { m_contentHasBeenSet = true; m_content = value; }
inline void SetContent(VoiceMessageContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
inline SendVoiceMessageRequest& WithContent(const VoiceMessageContent& value) { SetContent(value); return *this;}
inline SendVoiceMessageRequest& WithContent(VoiceMessageContent&& value) { SetContent(std::move(value)); return *this;}
/**
* The phone number that you want to send the voice message to.
*/
inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; }
/**
* The phone number that you want to send the voice message to.
*/
inline bool DestinationPhoneNumberHasBeenSet() const { return m_destinationPhoneNumberHasBeenSet; }
/**
* The phone number that you want to send the voice message to.
*/
inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = value; }
/**
* The phone number that you want to send the voice message to.
*/
inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = std::move(value); }
/**
* The phone number that you want to send the voice message to.
*/
inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber.assign(value); }
/**
* The phone number that you want to send the voice message to.
*/
inline SendVoiceMessageRequest& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;}
/**
* The phone number that you want to send the voice message to.
*/
inline SendVoiceMessageRequest& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;}
/**
* The phone number that you want to send the voice message to.
*/
inline SendVoiceMessageRequest& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;}
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This
* isn't necessarily the phone number that appears on recipients' devices when they
* receive the message, because you can specify a CallerId parameter in the
* request.
*/
inline const Aws::String& GetOriginationPhoneNumber() const{ return m_originationPhoneNumber; }
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This
* isn't necessarily the phone number that appears on recipients' devices when they
* receive the message, because you can specify a CallerId parameter in the
* request.
*/
inline bool OriginationPhoneNumberHasBeenSet() const { return m_originationPhoneNumberHasBeenSet; }
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This
* isn't necessarily the phone number that appears on recipients' devices when they
* receive the message, because you can specify a CallerId parameter in the
* request.
*/
inline void SetOriginationPhoneNumber(const Aws::String& value) { m_originationPhoneNumberHasBeenSet = true; m_originationPhoneNumber = value; }
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This
* isn't necessarily the phone number that appears on recipients' devices when they
* receive the message, because you can specify a CallerId parameter in the
* request.
*/
inline void SetOriginationPhoneNumber(Aws::String&& value) { m_originationPhoneNumberHasBeenSet = true; m_originationPhoneNumber = std::move(value); }
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This
* isn't necessarily the phone number that appears on recipients' devices when they
* receive the message, because you can specify a CallerId parameter in the
* request.
*/
inline void SetOriginationPhoneNumber(const char* value) { m_originationPhoneNumberHasBeenSet = true; m_originationPhoneNumber.assign(value); }
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This
* isn't necessarily the phone number that appears on recipients' devices when they
* receive the message, because you can specify a CallerId parameter in the
* request.
*/
inline SendVoiceMessageRequest& WithOriginationPhoneNumber(const Aws::String& value) { SetOriginationPhoneNumber(value); return *this;}
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This
* isn't necessarily the phone number that appears on recipients' devices when they
* receive the message, because you can specify a CallerId parameter in the
* request.
*/
inline SendVoiceMessageRequest& WithOriginationPhoneNumber(Aws::String&& value) { SetOriginationPhoneNumber(std::move(value)); return *this;}
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This
* isn't necessarily the phone number that appears on recipients' devices when they
* receive the message, because you can specify a CallerId parameter in the
* request.
*/
inline SendVoiceMessageRequest& WithOriginationPhoneNumber(const char* value) { SetOriginationPhoneNumber(value); return *this;}
private:
Aws::String m_callerId;
bool m_callerIdHasBeenSet;
Aws::String m_configurationSetName;
bool m_configurationSetNameHasBeenSet;
VoiceMessageContent m_content;
bool m_contentHasBeenSet;
Aws::String m_destinationPhoneNumber;
bool m_destinationPhoneNumberHasBeenSet;
Aws::String m_originationPhoneNumber;
bool m_originationPhoneNumberHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that that contains the Message ID of a Voice message that was sent
* successfully.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessageResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API SendVoiceMessageResult
{
public:
SendVoiceMessageResult();
SendVoiceMessageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
SendVoiceMessageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* A unique identifier for the voice message.
*/
inline const Aws::String& GetMessageId() const{ return m_messageId; }
/**
* A unique identifier for the voice message.
*/
inline void SetMessageId(const Aws::String& value) { m_messageId = value; }
/**
* A unique identifier for the voice message.
*/
inline void SetMessageId(Aws::String&& value) { m_messageId = std::move(value); }
/**
* A unique identifier for the voice message.
*/
inline void SetMessageId(const char* value) { m_messageId.assign(value); }
/**
* A unique identifier for the voice message.
*/
inline SendVoiceMessageResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
/**
* A unique identifier for the voice message.
*/
inline SendVoiceMessageResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
/**
* A unique identifier for the voice message.
*/
inline SendVoiceMessageResult& WithMessageId(const char* value) { SetMessageId(value); return *this;}
private:
Aws::String m_messageId;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that contains information about an event destination that sends data
* to Amazon SNS.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SnsDestination">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API SnsDestination
{
public:
SnsDestination();
SnsDestination(Aws::Utils::Json::JsonView jsonValue);
SnsDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
* events to.
*/
inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
* events to.
*/
inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
* events to.
*/
inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
* events to.
*/
inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
* events to.
*/
inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
* events to.
*/
inline SnsDestination& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
* events to.
*/
inline SnsDestination& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
* events to.
*/
inline SnsDestination& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
private:
Aws::String m_topicArn;
bool m_topicArnHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,153 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/PinpointSMSVoiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms-voice/model/EventDestinationDefinition.h>
#include <utility>
namespace Aws
{
namespace PinpointSMSVoice
{
namespace Model
{
/**
* UpdateConfigurationSetEventDestinationRequest<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestinationRequest">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API UpdateConfigurationSetEventDestinationRequest : public PinpointSMSVoiceRequest
{
public:
UpdateConfigurationSetEventDestinationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateConfigurationSetEventDestination"; }
Aws::String SerializePayload() const override;
/**
* ConfigurationSetName
*/
inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
/**
* ConfigurationSetName
*/
inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
/**
* ConfigurationSetName
*/
inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
/**
* ConfigurationSetName
*/
inline UpdateConfigurationSetEventDestinationRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
/**
* ConfigurationSetName
*/
inline UpdateConfigurationSetEventDestinationRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
/**
* ConfigurationSetName
*/
inline UpdateConfigurationSetEventDestinationRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
inline const EventDestinationDefinition& GetEventDestination() const{ return m_eventDestination; }
inline bool EventDestinationHasBeenSet() const { return m_eventDestinationHasBeenSet; }
inline void SetEventDestination(const EventDestinationDefinition& value) { m_eventDestinationHasBeenSet = true; m_eventDestination = value; }
inline void SetEventDestination(EventDestinationDefinition&& value) { m_eventDestinationHasBeenSet = true; m_eventDestination = std::move(value); }
inline UpdateConfigurationSetEventDestinationRequest& WithEventDestination(const EventDestinationDefinition& value) { SetEventDestination(value); return *this;}
inline UpdateConfigurationSetEventDestinationRequest& WithEventDestination(EventDestinationDefinition&& value) { SetEventDestination(std::move(value)); return *this;}
/**
* EventDestinationName
*/
inline const Aws::String& GetEventDestinationName() const{ return m_eventDestinationName; }
/**
* EventDestinationName
*/
inline bool EventDestinationNameHasBeenSet() const { return m_eventDestinationNameHasBeenSet; }
/**
* EventDestinationName
*/
inline void SetEventDestinationName(const Aws::String& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = value; }
/**
* EventDestinationName
*/
inline void SetEventDestinationName(Aws::String&& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = std::move(value); }
/**
* EventDestinationName
*/
inline void SetEventDestinationName(const char* value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName.assign(value); }
/**
* EventDestinationName
*/
inline UpdateConfigurationSetEventDestinationRequest& WithEventDestinationName(const Aws::String& value) { SetEventDestinationName(value); return *this;}
/**
* EventDestinationName
*/
inline UpdateConfigurationSetEventDestinationRequest& WithEventDestinationName(Aws::String&& value) { SetEventDestinationName(std::move(value)); return *this;}
/**
* EventDestinationName
*/
inline UpdateConfigurationSetEventDestinationRequest& WithEventDestinationName(const char* value) { SetEventDestinationName(value); return *this;}
private:
Aws::String m_configurationSetName;
bool m_configurationSetNameHasBeenSet;
EventDestinationDefinition m_eventDestination;
bool m_eventDestinationHasBeenSet;
Aws::String m_eventDestinationName;
bool m_eventDestinationNameHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An empty object that indicates that the event destination was updated
* successfully.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestinationResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API UpdateConfigurationSetEventDestinationResult
{
public:
UpdateConfigurationSetEventDestinationResult();
UpdateConfigurationSetEventDestinationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateConfigurationSetEventDestinationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms-voice/PinpointSMSVoice_EXPORTS.h>
#include <aws/sms-voice/model/CallInstructionsMessageType.h>
#include <aws/sms-voice/model/PlainTextMessageType.h>
#include <aws/sms-voice/model/SSMLMessageType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace PinpointSMSVoice
{
namespace Model
{
/**
* An object that contains a voice message and information about the recipient that
* you want to send it to.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/VoiceMessageContent">AWS
* API Reference</a></p>
*/
class AWS_PINPOINTSMSVOICE_API VoiceMessageContent
{
public:
VoiceMessageContent();
VoiceMessageContent(Aws::Utils::Json::JsonView jsonValue);
VoiceMessageContent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const CallInstructionsMessageType& GetCallInstructionsMessage() const{ return m_callInstructionsMessage; }
inline bool CallInstructionsMessageHasBeenSet() const { return m_callInstructionsMessageHasBeenSet; }
inline void SetCallInstructionsMessage(const CallInstructionsMessageType& value) { m_callInstructionsMessageHasBeenSet = true; m_callInstructionsMessage = value; }
inline void SetCallInstructionsMessage(CallInstructionsMessageType&& value) { m_callInstructionsMessageHasBeenSet = true; m_callInstructionsMessage = std::move(value); }
inline VoiceMessageContent& WithCallInstructionsMessage(const CallInstructionsMessageType& value) { SetCallInstructionsMessage(value); return *this;}
inline VoiceMessageContent& WithCallInstructionsMessage(CallInstructionsMessageType&& value) { SetCallInstructionsMessage(std::move(value)); return *this;}
inline const PlainTextMessageType& GetPlainTextMessage() const{ return m_plainTextMessage; }
inline bool PlainTextMessageHasBeenSet() const { return m_plainTextMessageHasBeenSet; }
inline void SetPlainTextMessage(const PlainTextMessageType& value) { m_plainTextMessageHasBeenSet = true; m_plainTextMessage = value; }
inline void SetPlainTextMessage(PlainTextMessageType&& value) { m_plainTextMessageHasBeenSet = true; m_plainTextMessage = std::move(value); }
inline VoiceMessageContent& WithPlainTextMessage(const PlainTextMessageType& value) { SetPlainTextMessage(value); return *this;}
inline VoiceMessageContent& WithPlainTextMessage(PlainTextMessageType&& value) { SetPlainTextMessage(std::move(value)); return *this;}
inline const SSMLMessageType& GetSSMLMessage() const{ return m_sSMLMessage; }
inline bool SSMLMessageHasBeenSet() const { return m_sSMLMessageHasBeenSet; }
inline void SetSSMLMessage(const SSMLMessageType& value) { m_sSMLMessageHasBeenSet = true; m_sSMLMessage = value; }
inline void SetSSMLMessage(SSMLMessageType&& value) { m_sSMLMessageHasBeenSet = true; m_sSMLMessage = std::move(value); }
inline VoiceMessageContent& WithSSMLMessage(const SSMLMessageType& value) { SetSSMLMessage(value); return *this;}
inline VoiceMessageContent& WithSSMLMessage(SSMLMessageType&& value) { SetSSMLMessage(std::move(value)); return *this;}
private:
CallInstructionsMessageType m_callInstructionsMessage;
bool m_callInstructionsMessageHasBeenSet;
PlainTextMessageType m_plainTextMessage;
bool m_plainTextMessageHasBeenSet;
SSMLMessageType m_sSMLMessage;
bool m_sSMLMessageHasBeenSet;
};
} // namespace Model
} // namespace PinpointSMSVoice
} // namespace Aws