/** * 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::QuickSight::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; DescribeVPCConnectionResult::DescribeVPCConnectionResult() : m_status(0) { } DescribeVPCConnectionResult::DescribeVPCConnectionResult(const Aws::AmazonWebServiceResult& result) : m_status(0) { *this = result; } DescribeVPCConnectionResult& DescribeVPCConnectionResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("VPCConnection")) { m_vPCConnection = jsonValue.GetObject("VPCConnection"); } if(jsonValue.ValueExists("Status")) { m_status = jsonValue.GetInteger("Status"); } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }