/** * 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::Glue::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; BatchGetDataQualityResultResult::BatchGetDataQualityResultResult() { } BatchGetDataQualityResultResult::BatchGetDataQualityResultResult(const Aws::AmazonWebServiceResult& result) { *this = result; } BatchGetDataQualityResultResult& BatchGetDataQualityResultResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("Results")) { Aws::Utils::Array resultsJsonList = jsonValue.GetArray("Results"); for(unsigned resultsIndex = 0; resultsIndex < resultsJsonList.GetLength(); ++resultsIndex) { m_results.push_back(resultsJsonList[resultsIndex].AsObject()); } } if(jsonValue.ValueExists("ResultsNotFound")) { Aws::Utils::Array resultsNotFoundJsonList = jsonValue.GetArray("ResultsNotFound"); for(unsigned resultsNotFoundIndex = 0; resultsNotFoundIndex < resultsNotFoundJsonList.GetLength(); ++resultsNotFoundIndex) { m_resultsNotFound.push_back(resultsNotFoundJsonList[resultsNotFoundIndex].AsString()); } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }