/** * 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::IoTSiteWise::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListProjectsResult::ListProjectsResult() { } ListProjectsResult::ListProjectsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListProjectsResult& ListProjectsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("projectSummaries")) { Array projectSummariesJsonList = jsonValue.GetArray("projectSummaries"); for(unsigned projectSummariesIndex = 0; projectSummariesIndex < projectSummariesJsonList.GetLength(); ++projectSummariesIndex) { m_projectSummaries.push_back(projectSummariesJsonList[projectSummariesIndex].AsObject()); } } if(jsonValue.ValueExists("nextToken")) { m_nextToken = jsonValue.GetString("nextToken"); } return *this; }