/** * 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::WAFV2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListWebACLsResult::ListWebACLsResult() { } ListWebACLsResult::ListWebACLsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListWebACLsResult& ListWebACLsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("NextMarker")) { m_nextMarker = jsonValue.GetString("NextMarker"); } if(jsonValue.ValueExists("WebACLs")) { Array webACLsJsonList = jsonValue.GetArray("WebACLs"); for(unsigned webACLsIndex = 0; webACLsIndex < webACLsJsonList.GetLength(); ++webACLsIndex) { m_webACLs.push_back(webACLsJsonList[webACLsIndex].AsObject()); } } return *this; }