/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include using namespace Aws::Utils::Xml; using namespace Aws::Utils; namespace Aws { namespace EC2 { namespace Model { PlacementResponse::PlacementResponse() : m_groupNameHasBeenSet(false) { } PlacementResponse::PlacementResponse(const XmlNode& xmlNode) : m_groupNameHasBeenSet(false) { *this = xmlNode; } PlacementResponse& PlacementResponse::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode groupNameNode = resultNode.FirstChild("groupName"); if(!groupNameNode.IsNull()) { m_groupName = Aws::Utils::Xml::DecodeEscapedXmlText(groupNameNode.GetText()); m_groupNameHasBeenSet = true; } } return *this; } void PlacementResponse::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_groupNameHasBeenSet) { oStream << location << index << locationValue << ".GroupName=" << StringUtils::URLEncode(m_groupName.c_str()) << "&"; } } void PlacementResponse::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_groupNameHasBeenSet) { oStream << location << ".GroupName=" << StringUtils::URLEncode(m_groupName.c_str()) << "&"; } } } // namespace Model } // namespace EC2 } // namespace Aws