/** * 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::CodeBuild::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListSharedProjectsResult::ListSharedProjectsResult() { } ListSharedProjectsResult::ListSharedProjectsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListSharedProjectsResult& ListSharedProjectsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("nextToken")) { m_nextToken = jsonValue.GetString("nextToken"); } if(jsonValue.ValueExists("projects")) { Array projectsJsonList = jsonValue.GetArray("projects"); for(unsigned projectsIndex = 0; projectsIndex < projectsJsonList.GetLength(); ++projectsIndex) { m_projects.push_back(projectsJsonList[projectsIndex].AsString()); } } return *this; }