/** * 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::IoTWireless::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; GetNetworkAnalyzerConfigurationResult::GetNetworkAnalyzerConfigurationResult() { } GetNetworkAnalyzerConfigurationResult::GetNetworkAnalyzerConfigurationResult(const Aws::AmazonWebServiceResult& result) { *this = result; } GetNetworkAnalyzerConfigurationResult& GetNetworkAnalyzerConfigurationResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("TraceContent")) { m_traceContent = jsonValue.GetObject("TraceContent"); } if(jsonValue.ValueExists("WirelessDevices")) { Aws::Utils::Array wirelessDevicesJsonList = jsonValue.GetArray("WirelessDevices"); for(unsigned wirelessDevicesIndex = 0; wirelessDevicesIndex < wirelessDevicesJsonList.GetLength(); ++wirelessDevicesIndex) { m_wirelessDevices.push_back(wirelessDevicesJsonList[wirelessDevicesIndex].AsString()); } } if(jsonValue.ValueExists("WirelessGateways")) { Aws::Utils::Array wirelessGatewaysJsonList = jsonValue.GetArray("WirelessGateways"); for(unsigned wirelessGatewaysIndex = 0; wirelessGatewaysIndex < wirelessGatewaysJsonList.GetLength(); ++wirelessGatewaysIndex) { m_wirelessGateways.push_back(wirelessGatewaysJsonList[wirelessGatewaysIndex].AsString()); } } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); } if(jsonValue.ValueExists("Arn")) { m_arn = jsonValue.GetString("Arn"); } if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); } if(jsonValue.ValueExists("MulticastGroups")) { Aws::Utils::Array multicastGroupsJsonList = jsonValue.GetArray("MulticastGroups"); for(unsigned multicastGroupsIndex = 0; multicastGroupsIndex < multicastGroupsJsonList.GetLength(); ++multicastGroupsIndex) { m_multicastGroups.push_back(multicastGroupsJsonList[multicastGroupsIndex].AsString()); } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }