/** * 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 ElasticBeanstalk { namespace Model { EnvironmentLink::EnvironmentLink() : m_linkNameHasBeenSet(false), m_environmentNameHasBeenSet(false) { } EnvironmentLink::EnvironmentLink(const XmlNode& xmlNode) : m_linkNameHasBeenSet(false), m_environmentNameHasBeenSet(false) { *this = xmlNode; } EnvironmentLink& EnvironmentLink::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode linkNameNode = resultNode.FirstChild("LinkName"); if(!linkNameNode.IsNull()) { m_linkName = Aws::Utils::Xml::DecodeEscapedXmlText(linkNameNode.GetText()); m_linkNameHasBeenSet = true; } XmlNode environmentNameNode = resultNode.FirstChild("EnvironmentName"); if(!environmentNameNode.IsNull()) { m_environmentName = Aws::Utils::Xml::DecodeEscapedXmlText(environmentNameNode.GetText()); m_environmentNameHasBeenSet = true; } } return *this; } void EnvironmentLink::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_linkNameHasBeenSet) { oStream << location << index << locationValue << ".LinkName=" << StringUtils::URLEncode(m_linkName.c_str()) << "&"; } if(m_environmentNameHasBeenSet) { oStream << location << index << locationValue << ".EnvironmentName=" << StringUtils::URLEncode(m_environmentName.c_str()) << "&"; } } void EnvironmentLink::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_linkNameHasBeenSet) { oStream << location << ".LinkName=" << StringUtils::URLEncode(m_linkName.c_str()) << "&"; } if(m_environmentNameHasBeenSet) { oStream << location << ".EnvironmentName=" << StringUtils::URLEncode(m_environmentName.c_str()) << "&"; } } } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws