/** * 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::ApplicationDiscoveryService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; StopDataCollectionByAgentIdsResult::StopDataCollectionByAgentIdsResult() { } StopDataCollectionByAgentIdsResult::StopDataCollectionByAgentIdsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } StopDataCollectionByAgentIdsResult& StopDataCollectionByAgentIdsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("agentsConfigurationStatus")) { Array agentsConfigurationStatusJsonList = jsonValue.GetArray("agentsConfigurationStatus"); for(unsigned agentsConfigurationStatusIndex = 0; agentsConfigurationStatusIndex < agentsConfigurationStatusJsonList.GetLength(); ++agentsConfigurationStatusIndex) { m_agentsConfigurationStatus.push_back(agentsConfigurationStatusJsonList[agentsConfigurationStatusIndex].AsObject()); } } return *this; }