/** * 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::Greengrass::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListBulkDeploymentsResult::ListBulkDeploymentsResult() { } ListBulkDeploymentsResult::ListBulkDeploymentsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListBulkDeploymentsResult& ListBulkDeploymentsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("BulkDeployments")) { Array bulkDeploymentsJsonList = jsonValue.GetArray("BulkDeployments"); for(unsigned bulkDeploymentsIndex = 0; bulkDeploymentsIndex < bulkDeploymentsJsonList.GetLength(); ++bulkDeploymentsIndex) { m_bulkDeployments.push_back(bulkDeploymentsJsonList[bulkDeploymentsIndex].AsObject()); } } if(jsonValue.ValueExists("NextToken")) { m_nextToken = jsonValue.GetString("NextToken"); } return *this; }