/** * 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::DatabaseMigrationService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; DescribeConnectionsResult::DescribeConnectionsResult() { } DescribeConnectionsResult::DescribeConnectionsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } DescribeConnectionsResult& DescribeConnectionsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("Marker")) { m_marker = jsonValue.GetString("Marker"); } if(jsonValue.ValueExists("Connections")) { Array connectionsJsonList = jsonValue.GetArray("Connections"); for(unsigned connectionsIndex = 0; connectionsIndex < connectionsJsonList.GetLength(); ++connectionsIndex) { m_connections.push_back(connectionsJsonList[connectionsIndex].AsObject()); } } return *this; }