/** * 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; ListResolverQueryLogConfigAssociationsResult::ListResolverQueryLogConfigAssociationsResult() : m_totalCount(0), m_totalFilteredCount(0) { } ListResolverQueryLogConfigAssociationsResult::ListResolverQueryLogConfigAssociationsResult(const Aws::AmazonWebServiceResult& result) : m_totalCount(0), m_totalFilteredCount(0) { *this = result; } ListResolverQueryLogConfigAssociationsResult& ListResolverQueryLogConfigAssociationsResult::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("ResolverQueryLogConfigAssociations")) { Aws::Utils::Array resolverQueryLogConfigAssociationsJsonList = jsonValue.GetArray("ResolverQueryLogConfigAssociations"); for(unsigned resolverQueryLogConfigAssociationsIndex = 0; resolverQueryLogConfigAssociationsIndex < resolverQueryLogConfigAssociationsJsonList.GetLength(); ++resolverQueryLogConfigAssociationsIndex) { m_resolverQueryLogConfigAssociations.push_back(resolverQueryLogConfigAssociationsJsonList[resolverQueryLogConfigAssociationsIndex].AsObject()); } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }