1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/route53/model/AssociateVPCWithHostedZoneResult.h> 7 #include <aws/core/utils/xml/XmlSerializer.h> 8 #include <aws/core/AmazonWebServiceResult.h> 9 #include <aws/core/utils/StringUtils.h> 10 11 #include <utility> 12 13 using namespace Aws::Route53::Model; 14 using namespace Aws::Utils::Xml; 15 using namespace Aws::Utils; 16 using namespace Aws; 17 AssociateVPCWithHostedZoneResult()18AssociateVPCWithHostedZoneResult::AssociateVPCWithHostedZoneResult() 19 { 20 } 21 AssociateVPCWithHostedZoneResult(const Aws::AmazonWebServiceResult<XmlDocument> & result)22AssociateVPCWithHostedZoneResult::AssociateVPCWithHostedZoneResult(const Aws::AmazonWebServiceResult<XmlDocument>& result) 23 { 24 *this = result; 25 } 26 operator =(const Aws::AmazonWebServiceResult<XmlDocument> & result)27AssociateVPCWithHostedZoneResult& AssociateVPCWithHostedZoneResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result) 28 { 29 const XmlDocument& xmlDocument = result.GetPayload(); 30 XmlNode resultNode = xmlDocument.GetRootElement(); 31 32 if(!resultNode.IsNull()) 33 { 34 XmlNode changeInfoNode = resultNode.FirstChild("ChangeInfo"); 35 if(!changeInfoNode.IsNull()) 36 { 37 m_changeInfo = changeInfoNode; 38 } 39 } 40 41 return *this; 42 } 43