/** * 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::Route53Domains::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListOperationsResult::ListOperationsResult() { } ListOperationsResult::ListOperationsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListOperationsResult& ListOperationsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("Operations")) { Array operationsJsonList = jsonValue.GetArray("Operations"); for(unsigned operationsIndex = 0; operationsIndex < operationsJsonList.GetLength(); ++operationsIndex) { m_operations.push_back(operationsJsonList[operationsIndex].AsObject()); } } if(jsonValue.ValueExists("NextPageMarker")) { m_nextPageMarker = jsonValue.GetString("NextPageMarker"); } return *this; }