49 lines
1.5 KiB
C++
49 lines
1.5 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/route53/model/GetHealthCheckLastFailureReasonResult.h>
|
|||
|
|
#include <aws/core/utils/xml/XmlSerializer.h>
|
|||
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|||
|
|
#include <aws/core/utils/StringUtils.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::Route53::Model;
|
|||
|
|
using namespace Aws::Utils::Xml;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
using namespace Aws;
|
|||
|
|
|
|||
|
|
GetHealthCheckLastFailureReasonResult::GetHealthCheckLastFailureReasonResult()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
GetHealthCheckLastFailureReasonResult::GetHealthCheckLastFailureReasonResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
|
|||
|
|
{
|
|||
|
|
*this = result;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
GetHealthCheckLastFailureReasonResult& GetHealthCheckLastFailureReasonResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
|
|||
|
|
{
|
|||
|
|
const XmlDocument& xmlDocument = result.GetPayload();
|
|||
|
|
XmlNode resultNode = xmlDocument.GetRootElement();
|
|||
|
|
|
|||
|
|
if(!resultNode.IsNull())
|
|||
|
|
{
|
|||
|
|
XmlNode healthCheckObservationsNode = resultNode.FirstChild("HealthCheckObservations");
|
|||
|
|
if(!healthCheckObservationsNode.IsNull())
|
|||
|
|
{
|
|||
|
|
XmlNode healthCheckObservationsMember = healthCheckObservationsNode.FirstChild("HealthCheckObservation");
|
|||
|
|
while(!healthCheckObservationsMember.IsNull())
|
|||
|
|
{
|
|||
|
|
m_healthCheckObservations.push_back(healthCheckObservationsMember);
|
|||
|
|
healthCheckObservationsMember = healthCheckObservationsMember.NextNode("HealthCheckObservation");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return *this;
|
|||
|
|
}
|