/** * 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 ElasticLoadBalancingv2 { namespace Model { QueryStringConditionConfig::QueryStringConditionConfig() : m_valuesHasBeenSet(false) { } QueryStringConditionConfig::QueryStringConditionConfig(const XmlNode& xmlNode) : m_valuesHasBeenSet(false) { *this = xmlNode; } QueryStringConditionConfig& QueryStringConditionConfig::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode valuesNode = resultNode.FirstChild("Values"); if(!valuesNode.IsNull()) { XmlNode valuesMember = valuesNode.FirstChild("member"); while(!valuesMember.IsNull()) { m_values.push_back(valuesMember); valuesMember = valuesMember.NextNode("member"); } m_valuesHasBeenSet = true; } } return *this; } void QueryStringConditionConfig::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_valuesHasBeenSet) { unsigned valuesIdx = 1; for(auto& item : m_values) { Aws::StringStream valuesSs; valuesSs << location << index << locationValue << ".Values.member." << valuesIdx++; item.OutputToStream(oStream, valuesSs.str().c_str()); } } } void QueryStringConditionConfig::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_valuesHasBeenSet) { unsigned valuesIdx = 1; for(auto& item : m_values) { Aws::StringStream valuesSs; valuesSs << location << ".Values.member." << valuesIdx++; item.OutputToStream(oStream, valuesSs.str().c_str()); } } } } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws