/** * 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 Route53 { namespace Model { LinkedService::LinkedService() : m_servicePrincipalHasBeenSet(false), m_descriptionHasBeenSet(false) { } LinkedService::LinkedService(const XmlNode& xmlNode) : m_servicePrincipalHasBeenSet(false), m_descriptionHasBeenSet(false) { *this = xmlNode; } LinkedService& LinkedService::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode servicePrincipalNode = resultNode.FirstChild("ServicePrincipal"); if(!servicePrincipalNode.IsNull()) { m_servicePrincipal = Aws::Utils::Xml::DecodeEscapedXmlText(servicePrincipalNode.GetText()); m_servicePrincipalHasBeenSet = true; } XmlNode descriptionNode = resultNode.FirstChild("Description"); if(!descriptionNode.IsNull()) { m_description = Aws::Utils::Xml::DecodeEscapedXmlText(descriptionNode.GetText()); m_descriptionHasBeenSet = true; } } return *this; } void LinkedService::AddToNode(XmlNode& parentNode) const { Aws::StringStream ss; if(m_servicePrincipalHasBeenSet) { XmlNode servicePrincipalNode = parentNode.CreateChildElement("ServicePrincipal"); servicePrincipalNode.SetText(m_servicePrincipal); } if(m_descriptionHasBeenSet) { XmlNode descriptionNode = parentNode.CreateChildElement("Description"); descriptionNode.SetText(m_description); } } } // namespace Model } // namespace Route53 } // namespace Aws