/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include #include using namespace Aws::ConfigService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; DescribeConfigurationRecordersResult::DescribeConfigurationRecordersResult() { } DescribeConfigurationRecordersResult::DescribeConfigurationRecordersResult(const Aws::AmazonWebServiceResult& result) { *this = result; } DescribeConfigurationRecordersResult& DescribeConfigurationRecordersResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("ConfigurationRecorders")) { Aws::Utils::Array configurationRecordersJsonList = jsonValue.GetArray("ConfigurationRecorders"); for(unsigned configurationRecordersIndex = 0; configurationRecordersIndex < configurationRecordersJsonList.GetLength(); ++configurationRecordersIndex) { m_configurationRecorders.push_back(configurationRecordersJsonList[configurationRecordersIndex].AsObject()); } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }