/** * 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::Personalize::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListDatasetGroupsResult::ListDatasetGroupsResult() { } ListDatasetGroupsResult::ListDatasetGroupsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListDatasetGroupsResult& ListDatasetGroupsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("datasetGroups")) { Array datasetGroupsJsonList = jsonValue.GetArray("datasetGroups"); for(unsigned datasetGroupsIndex = 0; datasetGroupsIndex < datasetGroupsJsonList.GetLength(); ++datasetGroupsIndex) { m_datasetGroups.push_back(datasetGroupsJsonList[datasetGroupsIndex].AsObject()); } } if(jsonValue.ValueExists("nextToken")) { m_nextToken = jsonValue.GetString("nextToken"); } return *this; }