/** * 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::imagebuilder::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListWorkflowExecutionsResult::ListWorkflowExecutionsResult() { } ListWorkflowExecutionsResult::ListWorkflowExecutionsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListWorkflowExecutionsResult& ListWorkflowExecutionsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("requestId")) { m_requestId = jsonValue.GetString("requestId"); } if(jsonValue.ValueExists("workflowExecutions")) { Aws::Utils::Array workflowExecutionsJsonList = jsonValue.GetArray("workflowExecutions"); for(unsigned workflowExecutionsIndex = 0; workflowExecutionsIndex < workflowExecutionsJsonList.GetLength(); ++workflowExecutionsIndex) { m_workflowExecutions.push_back(workflowExecutionsJsonList[workflowExecutionsIndex].AsObject()); } } if(jsonValue.ValueExists("imageBuildVersionArn")) { m_imageBuildVersionArn = jsonValue.GetString("imageBuildVersionArn"); } if(jsonValue.ValueExists("message")) { m_message = jsonValue.GetString("message"); } if(jsonValue.ValueExists("nextToken")) { m_nextToken = jsonValue.GetString("nextToken"); } return *this; }