/** * 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::SESV2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListDedicatedIpPoolsResult::ListDedicatedIpPoolsResult() { } ListDedicatedIpPoolsResult::ListDedicatedIpPoolsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListDedicatedIpPoolsResult& ListDedicatedIpPoolsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("DedicatedIpPools")) { Aws::Utils::Array dedicatedIpPoolsJsonList = jsonValue.GetArray("DedicatedIpPools"); for(unsigned dedicatedIpPoolsIndex = 0; dedicatedIpPoolsIndex < dedicatedIpPoolsJsonList.GetLength(); ++dedicatedIpPoolsIndex) { m_dedicatedIpPools.push_back(dedicatedIpPoolsJsonList[dedicatedIpPoolsIndex].AsString()); } } if(jsonValue.ValueExists("NextToken")) { m_nextToken = jsonValue.GetString("NextToken"); } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }