This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-email/source/model/EventDestinationDoesNotExistException.cpp

88 lines
2.6 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/email/model/EventDestinationDoesNotExistException.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
{
EventDestinationDoesNotExistException::EventDestinationDoesNotExistException() :
m_configurationSetNameHasBeenSet(false),
m_eventDestinationNameHasBeenSet(false)
{
}
EventDestinationDoesNotExistException::EventDestinationDoesNotExistException(const XmlNode& xmlNode) :
m_configurationSetNameHasBeenSet(false),
m_eventDestinationNameHasBeenSet(false)
{
*this = xmlNode;
}
EventDestinationDoesNotExistException& EventDestinationDoesNotExistException::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;
}
XmlNode eventDestinationNameNode = resultNode.FirstChild("EventDestinationName");
if(!eventDestinationNameNode.IsNull())
{
m_eventDestinationName = Aws::Utils::Xml::DecodeEscapedXmlText(eventDestinationNameNode.GetText());
m_eventDestinationNameHasBeenSet = true;
}
}
return *this;
}
void EventDestinationDoesNotExistException::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()) << "&";
}
if(m_eventDestinationNameHasBeenSet)
{
oStream << location << index << locationValue << ".EventDestinationName=" << StringUtils::URLEncode(m_eventDestinationName.c_str()) << "&";
}
}
void EventDestinationDoesNotExistException::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_configurationSetNameHasBeenSet)
{
oStream << location << ".ConfigurationSetName=" << StringUtils::URLEncode(m_configurationSetName.c_str()) << "&";
}
if(m_eventDestinationNameHasBeenSet)
{
oStream << location << ".EventDestinationName=" << StringUtils::URLEncode(m_eventDestinationName.c_str()) << "&";
}
}
} // namespace Model
} // namespace SES
} // namespace Aws