71 lines
1.9 KiB
C++
71 lines
1.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/email/model/TrackingOptionsDoesNotExistException.h>
|
|
#include <aws/core/utils/xml/XmlSerializer.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Xml;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace SES
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
TrackingOptionsDoesNotExistException::TrackingOptionsDoesNotExistException() :
|
|
m_configurationSetNameHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
TrackingOptionsDoesNotExistException::TrackingOptionsDoesNotExistException(const XmlNode& xmlNode) :
|
|
m_configurationSetNameHasBeenSet(false)
|
|
{
|
|
*this = xmlNode;
|
|
}
|
|
|
|
TrackingOptionsDoesNotExistException& TrackingOptionsDoesNotExistException::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 TrackingOptionsDoesNotExistException::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 TrackingOptionsDoesNotExistException::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
|