/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include #include using namespace Aws::DatabaseMigrationService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; DescribeReplicationConfigsResult::DescribeReplicationConfigsResult() { } DescribeReplicationConfigsResult::DescribeReplicationConfigsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } DescribeReplicationConfigsResult& DescribeReplicationConfigsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("Marker")) { m_marker = jsonValue.GetString("Marker"); } if(jsonValue.ValueExists("ReplicationConfigs")) { Aws::Utils::Array replicationConfigsJsonList = jsonValue.GetArray("ReplicationConfigs"); for(unsigned replicationConfigsIndex = 0; replicationConfigsIndex < replicationConfigsJsonList.GetLength(); ++replicationConfigsIndex) { m_replicationConfigs.push_back(replicationConfigsJsonList[replicationConfigsIndex].AsObject()); } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }