/** * 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::SFN::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; DescribeStateMachineForExecutionResult::DescribeStateMachineForExecutionResult() { } DescribeStateMachineForExecutionResult::DescribeStateMachineForExecutionResult(const Aws::AmazonWebServiceResult& result) { *this = result; } DescribeStateMachineForExecutionResult& DescribeStateMachineForExecutionResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("stateMachineArn")) { m_stateMachineArn = jsonValue.GetString("stateMachineArn"); } if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); } if(jsonValue.ValueExists("definition")) { m_definition = jsonValue.GetString("definition"); } if(jsonValue.ValueExists("roleArn")) { m_roleArn = jsonValue.GetString("roleArn"); } if(jsonValue.ValueExists("updateDate")) { m_updateDate = jsonValue.GetDouble("updateDate"); } if(jsonValue.ValueExists("loggingConfiguration")) { m_loggingConfiguration = jsonValue.GetObject("loggingConfiguration"); } if(jsonValue.ValueExists("tracingConfiguration")) { m_tracingConfiguration = jsonValue.GetObject("tracingConfiguration"); } if(jsonValue.ValueExists("mapRunArn")) { m_mapRunArn = jsonValue.GetString("mapRunArn"); } if(jsonValue.ValueExists("label")) { m_label = jsonValue.GetString("label"); } if(jsonValue.ValueExists("revisionId")) { m_revisionId = jsonValue.GetString("revisionId"); } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }