/** * 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; GetAccessPointConfigurationForObjectLambdaResult::GetAccessPointConfigurationForObjectLambdaResult() { } GetAccessPointConfigurationForObjectLambdaResult::GetAccessPointConfigurationForObjectLambdaResult(const Aws::AmazonWebServiceResult& result) { *this = result; } GetAccessPointConfigurationForObjectLambdaResult& GetAccessPointConfigurationForObjectLambdaResult::operator =(const Aws::AmazonWebServiceResult& result) { const XmlDocument& xmlDocument = result.GetPayload(); XmlNode resultNode = xmlDocument.GetRootElement(); if(!resultNode.IsNull()) { XmlNode configurationNode = resultNode.FirstChild("Configuration"); if(!configurationNode.IsNull()) { m_configuration = configurationNode; } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }