/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include using namespace Aws::Utils::Xml; using namespace Aws::Utils; namespace Aws { namespace SES { namespace Model { SNSDestination::SNSDestination() : m_topicARNHasBeenSet(false) { } SNSDestination::SNSDestination(const XmlNode& xmlNode) : m_topicARNHasBeenSet(false) { *this = xmlNode; } SNSDestination& SNSDestination::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode topicARNNode = resultNode.FirstChild("TopicARN"); if(!topicARNNode.IsNull()) { m_topicARN = Aws::Utils::Xml::DecodeEscapedXmlText(topicARNNode.GetText()); m_topicARNHasBeenSet = true; } } return *this; } void SNSDestination::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_topicARNHasBeenSet) { oStream << location << index << locationValue << ".TopicARN=" << StringUtils::URLEncode(m_topicARN.c_str()) << "&"; } } void SNSDestination::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_topicARNHasBeenSet) { oStream << location << ".TopicARN=" << StringUtils::URLEncode(m_topicARN.c_str()) << "&"; } } } // namespace Model } // namespace SES } // namespace Aws