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