/** * 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::S3::Model; using namespace Aws::Utils::Xml; using namespace Aws::Utils; using namespace Aws; GetBucketInventoryConfigurationResult::GetBucketInventoryConfigurationResult() { } GetBucketInventoryConfigurationResult::GetBucketInventoryConfigurationResult(const Aws::AmazonWebServiceResult& result) { *this = result; } GetBucketInventoryConfigurationResult& GetBucketInventoryConfigurationResult::operator =(const Aws::AmazonWebServiceResult& result) { const XmlDocument& xmlDocument = result.GetPayload(); XmlNode resultNode = xmlDocument.GetRootElement(); if(!resultNode.IsNull()) { m_inventoryConfiguration = resultNode; } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amz-request-id"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }