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-neptune/source/model/Timezone.cpp

71 lines
1.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/neptune/model/Timezone.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 Neptune
{
namespace Model
{
Timezone::Timezone() :
m_timezoneNameHasBeenSet(false)
{
}
Timezone::Timezone(const XmlNode& xmlNode) :
m_timezoneNameHasBeenSet(false)
{
*this = xmlNode;
}
Timezone& Timezone::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode timezoneNameNode = resultNode.FirstChild("TimezoneName");
if(!timezoneNameNode.IsNull())
{
m_timezoneName = Aws::Utils::Xml::DecodeEscapedXmlText(timezoneNameNode.GetText());
m_timezoneNameHasBeenSet = true;
}
}
return *this;
}
void Timezone::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_timezoneNameHasBeenSet)
{
oStream << location << index << locationValue << ".TimezoneName=" << StringUtils::URLEncode(m_timezoneName.c_str()) << "&";
}
}
void Timezone::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_timezoneNameHasBeenSet)
{
oStream << location << ".TimezoneName=" << StringUtils::URLEncode(m_timezoneName.c_str()) << "&";
}
}
} // namespace Model
} // namespace Neptune
} // namespace Aws