122 lines
4.1 KiB
C++
122 lines
4.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/docdb/model/DBClusterParameterGroup.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 DocDB
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
DBClusterParameterGroup::DBClusterParameterGroup() :
|
|
m_dBClusterParameterGroupNameHasBeenSet(false),
|
|
m_dBParameterGroupFamilyHasBeenSet(false),
|
|
m_descriptionHasBeenSet(false),
|
|
m_dBClusterParameterGroupArnHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
DBClusterParameterGroup::DBClusterParameterGroup(const XmlNode& xmlNode) :
|
|
m_dBClusterParameterGroupNameHasBeenSet(false),
|
|
m_dBParameterGroupFamilyHasBeenSet(false),
|
|
m_descriptionHasBeenSet(false),
|
|
m_dBClusterParameterGroupArnHasBeenSet(false)
|
|
{
|
|
*this = xmlNode;
|
|
}
|
|
|
|
DBClusterParameterGroup& DBClusterParameterGroup::operator =(const XmlNode& xmlNode)
|
|
{
|
|
XmlNode resultNode = xmlNode;
|
|
|
|
if(!resultNode.IsNull())
|
|
{
|
|
XmlNode dBClusterParameterGroupNameNode = resultNode.FirstChild("DBClusterParameterGroupName");
|
|
if(!dBClusterParameterGroupNameNode.IsNull())
|
|
{
|
|
m_dBClusterParameterGroupName = Aws::Utils::Xml::DecodeEscapedXmlText(dBClusterParameterGroupNameNode.GetText());
|
|
m_dBClusterParameterGroupNameHasBeenSet = true;
|
|
}
|
|
XmlNode dBParameterGroupFamilyNode = resultNode.FirstChild("DBParameterGroupFamily");
|
|
if(!dBParameterGroupFamilyNode.IsNull())
|
|
{
|
|
m_dBParameterGroupFamily = Aws::Utils::Xml::DecodeEscapedXmlText(dBParameterGroupFamilyNode.GetText());
|
|
m_dBParameterGroupFamilyHasBeenSet = true;
|
|
}
|
|
XmlNode descriptionNode = resultNode.FirstChild("Description");
|
|
if(!descriptionNode.IsNull())
|
|
{
|
|
m_description = Aws::Utils::Xml::DecodeEscapedXmlText(descriptionNode.GetText());
|
|
m_descriptionHasBeenSet = true;
|
|
}
|
|
XmlNode dBClusterParameterGroupArnNode = resultNode.FirstChild("DBClusterParameterGroupArn");
|
|
if(!dBClusterParameterGroupArnNode.IsNull())
|
|
{
|
|
m_dBClusterParameterGroupArn = Aws::Utils::Xml::DecodeEscapedXmlText(dBClusterParameterGroupArnNode.GetText());
|
|
m_dBClusterParameterGroupArnHasBeenSet = true;
|
|
}
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
void DBClusterParameterGroup::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
|
|
{
|
|
if(m_dBClusterParameterGroupNameHasBeenSet)
|
|
{
|
|
oStream << location << index << locationValue << ".DBClusterParameterGroupName=" << StringUtils::URLEncode(m_dBClusterParameterGroupName.c_str()) << "&";
|
|
}
|
|
|
|
if(m_dBParameterGroupFamilyHasBeenSet)
|
|
{
|
|
oStream << location << index << locationValue << ".DBParameterGroupFamily=" << StringUtils::URLEncode(m_dBParameterGroupFamily.c_str()) << "&";
|
|
}
|
|
|
|
if(m_descriptionHasBeenSet)
|
|
{
|
|
oStream << location << index << locationValue << ".Description=" << StringUtils::URLEncode(m_description.c_str()) << "&";
|
|
}
|
|
|
|
if(m_dBClusterParameterGroupArnHasBeenSet)
|
|
{
|
|
oStream << location << index << locationValue << ".DBClusterParameterGroupArn=" << StringUtils::URLEncode(m_dBClusterParameterGroupArn.c_str()) << "&";
|
|
}
|
|
|
|
}
|
|
|
|
void DBClusterParameterGroup::OutputToStream(Aws::OStream& oStream, const char* location) const
|
|
{
|
|
if(m_dBClusterParameterGroupNameHasBeenSet)
|
|
{
|
|
oStream << location << ".DBClusterParameterGroupName=" << StringUtils::URLEncode(m_dBClusterParameterGroupName.c_str()) << "&";
|
|
}
|
|
if(m_dBParameterGroupFamilyHasBeenSet)
|
|
{
|
|
oStream << location << ".DBParameterGroupFamily=" << StringUtils::URLEncode(m_dBParameterGroupFamily.c_str()) << "&";
|
|
}
|
|
if(m_descriptionHasBeenSet)
|
|
{
|
|
oStream << location << ".Description=" << StringUtils::URLEncode(m_description.c_str()) << "&";
|
|
}
|
|
if(m_dBClusterParameterGroupArnHasBeenSet)
|
|
{
|
|
oStream << location << ".DBClusterParameterGroupArn=" << StringUtils::URLEncode(m_dBClusterParameterGroupArn.c_str()) << "&";
|
|
}
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace DocDB
|
|
} // namespace Aws
|