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