/** * 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 { /** *

Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES * could not publish to the topic, possibly due to permissions issues. For * information about giving permissions, see the Amazon * SES Developer Guide.

See Also:

AWS * API Reference

*/ class InvalidSnsTopicException { public: AWS_SES_API InvalidSnsTopicException(); AWS_SES_API InvalidSnsTopicException(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API InvalidSnsTopicException& 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; /** *

Indicates that the topic does not exist.

*/ inline const Aws::String& GetTopic() const{ return m_topic; } /** *

Indicates that the topic does not exist.

*/ inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; } /** *

Indicates that the topic does not exist.

*/ inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; } /** *

Indicates that the topic does not exist.

*/ inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); } /** *

Indicates that the topic does not exist.

*/ inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); } /** *

Indicates that the topic does not exist.

*/ inline InvalidSnsTopicException& WithTopic(const Aws::String& value) { SetTopic(value); return *this;} /** *

Indicates that the topic does not exist.

*/ inline InvalidSnsTopicException& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;} /** *

Indicates that the topic does not exist.

*/ inline InvalidSnsTopicException& WithTopic(const char* value) { SetTopic(value); return *this;} private: Aws::String m_topic; bool m_topicHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws