/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SES { namespace Model { /** *

Contains the topic ARN associated with an Amazon Simple Notification Service * (Amazon SNS) event destination.

Event destinations, such as Amazon SNS, * are associated with configuration sets, which enable you to publish email * sending events. For information about using configuration sets, see the Amazon * SES Developer Guide.

See Also:

AWS * API Reference

*/ class SNSDestination { public: AWS_SES_API SNSDestination(); AWS_SES_API SNSDestination(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API SNSDestination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ARN of the Amazon SNS topic that email sending events will be published * to. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline const Aws::String& GetTopicARN() const{ return m_topicARN; } /** *

The ARN of the Amazon SNS topic that email sending events will be published * to. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline bool TopicARNHasBeenSet() const { return m_topicARNHasBeenSet; } /** *

The ARN of the Amazon SNS topic that email sending events will be published * to. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline void SetTopicARN(const Aws::String& value) { m_topicARNHasBeenSet = true; m_topicARN = value; } /** *

The ARN of the Amazon SNS topic that email sending events will be published * to. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline void SetTopicARN(Aws::String&& value) { m_topicARNHasBeenSet = true; m_topicARN = std::move(value); } /** *

The ARN of the Amazon SNS topic that email sending events will be published * to. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline void SetTopicARN(const char* value) { m_topicARNHasBeenSet = true; m_topicARN.assign(value); } /** *

The ARN of the Amazon SNS topic that email sending events will be published * to. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline SNSDestination& WithTopicARN(const Aws::String& value) { SetTopicARN(value); return *this;} /** *

The ARN of the Amazon SNS topic that email sending events will be published * to. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline SNSDestination& WithTopicARN(Aws::String&& value) { SetTopicARN(std::move(value)); return *this;} /** *

The ARN of the Amazon SNS topic that email sending events will be published * to. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline SNSDestination& WithTopicARN(const char* value) { SetTopicARN(value); return *this;} private: Aws::String m_topicARN; bool m_topicARNHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws