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