/** * 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; ResumeWorkflowRunResult::ResumeWorkflowRunResult() { } ResumeWorkflowRunResult::ResumeWorkflowRunResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ResumeWorkflowRunResult& ResumeWorkflowRunResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("RunId")) { m_runId = jsonValue.GetString("RunId"); } if(jsonValue.ValueExists("NodeIds")) { Aws::Utils::Array nodeIdsJsonList = jsonValue.GetArray("NodeIds"); for(unsigned nodeIdsIndex = 0; nodeIdsIndex < nodeIdsJsonList.GetLength(); ++nodeIdsIndex) { m_nodeIds.push_back(nodeIdsJsonList[nodeIdsIndex].AsString()); } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }