/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::S3Control::Model; using namespace Aws::Utils::Xml; using namespace Aws::Utils; using namespace Aws; ListStorageLensConfigurationsResult::ListStorageLensConfigurationsResult() { } ListStorageLensConfigurationsResult::ListStorageLensConfigurationsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListStorageLensConfigurationsResult& ListStorageLensConfigurationsResult::operator =(const Aws::AmazonWebServiceResult& result) { const XmlDocument& xmlDocument = result.GetPayload(); XmlNode resultNode = xmlDocument.GetRootElement(); if(!resultNode.IsNull()) { XmlNode nextTokenNode = resultNode.FirstChild("NextToken"); if(!nextTokenNode.IsNull()) { m_nextToken = Aws::Utils::Xml::DecodeEscapedXmlText(nextTokenNode.GetText()); } XmlNode storageLensConfigurationListNode = resultNode.FirstChild("StorageLensConfiguration"); if(!storageLensConfigurationListNode.IsNull()) { XmlNode storageLensConfigurationMember = storageLensConfigurationListNode; while(!storageLensConfigurationMember.IsNull()) { m_storageLensConfigurationList.push_back(storageLensConfigurationMember); storageLensConfigurationMember = storageLensConfigurationMember.NextNode("StorageLensConfiguration"); } } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }