/** * 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 CloudSearch { namespace Model { ServiceEndpoint::ServiceEndpoint() : m_endpointHasBeenSet(false) { } ServiceEndpoint::ServiceEndpoint(const XmlNode& xmlNode) : m_endpointHasBeenSet(false) { *this = xmlNode; } ServiceEndpoint& ServiceEndpoint::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode endpointNode = resultNode.FirstChild("Endpoint"); if(!endpointNode.IsNull()) { m_endpoint = Aws::Utils::Xml::DecodeEscapedXmlText(endpointNode.GetText()); m_endpointHasBeenSet = true; } } return *this; } void ServiceEndpoint::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_endpointHasBeenSet) { oStream << location << index << locationValue << ".Endpoint=" << StringUtils::URLEncode(m_endpoint.c_str()) << "&"; } } void ServiceEndpoint::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_endpointHasBeenSet) { oStream << location << ".Endpoint=" << StringUtils::URLEncode(m_endpoint.c_str()) << "&"; } } } // namespace Model } // namespace CloudSearch } // namespace Aws