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