/** * 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 { ThroughResourcesStatement::ThroughResourcesStatement() : m_resourceStatementHasBeenSet(false) { } ThroughResourcesStatement::ThroughResourcesStatement(const XmlNode& xmlNode) : m_resourceStatementHasBeenSet(false) { *this = xmlNode; } ThroughResourcesStatement& ThroughResourcesStatement::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode resourceStatementNode = resultNode.FirstChild("resourceStatement"); if(!resourceStatementNode.IsNull()) { m_resourceStatement = resourceStatementNode; m_resourceStatementHasBeenSet = true; } } return *this; } void ThroughResourcesStatement::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_resourceStatementHasBeenSet) { Aws::StringStream resourceStatementLocationAndMemberSs; resourceStatementLocationAndMemberSs << location << index << locationValue << ".ResourceStatement"; m_resourceStatement.OutputToStream(oStream, resourceStatementLocationAndMemberSs.str().c_str()); } } void ThroughResourcesStatement::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_resourceStatementHasBeenSet) { Aws::String resourceStatementLocationAndMember(location); resourceStatementLocationAndMember += ".ResourceStatement"; m_resourceStatement.OutputToStream(oStream, resourceStatementLocationAndMember.c_str()); } } } // namespace Model } // namespace EC2 } // namespace Aws