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-cloudformation/source/model/RollbackTrigger.cpp

88 lines
2.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudformation/model/RollbackTrigger.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 CloudFormation
{
namespace Model
{
RollbackTrigger::RollbackTrigger() :
m_arnHasBeenSet(false),
m_typeHasBeenSet(false)
{
}
RollbackTrigger::RollbackTrigger(const XmlNode& xmlNode) :
m_arnHasBeenSet(false),
m_typeHasBeenSet(false)
{
*this = xmlNode;
}
RollbackTrigger& RollbackTrigger::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode arnNode = resultNode.FirstChild("Arn");
if(!arnNode.IsNull())
{
m_arn = Aws::Utils::Xml::DecodeEscapedXmlText(arnNode.GetText());
m_arnHasBeenSet = true;
}
XmlNode typeNode = resultNode.FirstChild("Type");
if(!typeNode.IsNull())
{
m_type = Aws::Utils::Xml::DecodeEscapedXmlText(typeNode.GetText());
m_typeHasBeenSet = true;
}
}
return *this;
}
void RollbackTrigger::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_arnHasBeenSet)
{
oStream << location << index << locationValue << ".Arn=" << StringUtils::URLEncode(m_arn.c_str()) << "&";
}
if(m_typeHasBeenSet)
{
oStream << location << index << locationValue << ".Type=" << StringUtils::URLEncode(m_type.c_str()) << "&";
}
}
void RollbackTrigger::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_arnHasBeenSet)
{
oStream << location << ".Arn=" << StringUtils::URLEncode(m_arn.c_str()) << "&";
}
if(m_typeHasBeenSet)
{
oStream << location << ".Type=" << StringUtils::URLEncode(m_type.c_str()) << "&";
}
}
} // namespace Model
} // namespace CloudFormation
} // namespace Aws