/** * 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::MainframeModernization::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListBatchJobExecutionsResult::ListBatchJobExecutionsResult() { } ListBatchJobExecutionsResult::ListBatchJobExecutionsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListBatchJobExecutionsResult& ListBatchJobExecutionsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("batchJobExecutions")) { Aws::Utils::Array batchJobExecutionsJsonList = jsonValue.GetArray("batchJobExecutions"); for(unsigned batchJobExecutionsIndex = 0; batchJobExecutionsIndex < batchJobExecutionsJsonList.GetLength(); ++batchJobExecutionsIndex) { m_batchJobExecutions.push_back(batchJobExecutionsJsonList[batchJobExecutionsIndex].AsObject()); } } if(jsonValue.ValueExists("nextToken")) { m_nextToken = jsonValue.GetString("nextToken"); } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }