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