/** * 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::IoT::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListDetectMitigationActionsExecutionsResult::ListDetectMitigationActionsExecutionsResult() { } ListDetectMitigationActionsExecutionsResult::ListDetectMitigationActionsExecutionsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListDetectMitigationActionsExecutionsResult& ListDetectMitigationActionsExecutionsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("actionsExecutions")) { Aws::Utils::Array actionsExecutionsJsonList = jsonValue.GetArray("actionsExecutions"); for(unsigned actionsExecutionsIndex = 0; actionsExecutionsIndex < actionsExecutionsJsonList.GetLength(); ++actionsExecutionsIndex) { m_actionsExecutions.push_back(actionsExecutionsJsonList[actionsExecutionsIndex].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; }