/** * 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 { ConfigurationSetAlreadyExistsException::ConfigurationSetAlreadyExistsException() : m_configurationSetNameHasBeenSet(false) { } ConfigurationSetAlreadyExistsException::ConfigurationSetAlreadyExistsException(const XmlNode& xmlNode) : m_configurationSetNameHasBeenSet(false) { *this = xmlNode; } ConfigurationSetAlreadyExistsException& ConfigurationSetAlreadyExistsException::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode configurationSetNameNode = resultNode.FirstChild("ConfigurationSetName"); if(!configurationSetNameNode.IsNull()) { m_configurationSetName = Aws::Utils::Xml::DecodeEscapedXmlText(configurationSetNameNode.GetText()); m_configurationSetNameHasBeenSet = true; } } return *this; } void ConfigurationSetAlreadyExistsException::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_configurationSetNameHasBeenSet) { oStream << location << index << locationValue << ".ConfigurationSetName=" << StringUtils::URLEncode(m_configurationSetName.c_str()) << "&"; } } void ConfigurationSetAlreadyExistsException::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_configurationSetNameHasBeenSet) { oStream << location << ".ConfigurationSetName=" << StringUtils::URLEncode(m_configurationSetName.c_str()) << "&"; } } } // namespace Model } // namespace SES } // namespace Aws