/** * 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::Route53Resolver::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListResolverQueryLogConfigsResult::ListResolverQueryLogConfigsResult() : m_totalCount(0), m_totalFilteredCount(0) { } ListResolverQueryLogConfigsResult::ListResolverQueryLogConfigsResult(const Aws::AmazonWebServiceResult& result) : m_totalCount(0), m_totalFilteredCount(0) { *this = result; } ListResolverQueryLogConfigsResult& ListResolverQueryLogConfigsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("NextToken")) { m_nextToken = jsonValue.GetString("NextToken"); } if(jsonValue.ValueExists("TotalCount")) { m_totalCount = jsonValue.GetInteger("TotalCount"); } if(jsonValue.ValueExists("TotalFilteredCount")) { m_totalFilteredCount = jsonValue.GetInteger("TotalFilteredCount"); } if(jsonValue.ValueExists("ResolverQueryLogConfigs")) { Aws::Utils::Array resolverQueryLogConfigsJsonList = jsonValue.GetArray("ResolverQueryLogConfigs"); for(unsigned resolverQueryLogConfigsIndex = 0; resolverQueryLogConfigsIndex < resolverQueryLogConfigsJsonList.GetLength(); ++resolverQueryLogConfigsIndex) { m_resolverQueryLogConfigs.push_back(resolverQueryLogConfigsJsonList[resolverQueryLogConfigsIndex].AsObject()); } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }