/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::AlexaForBusiness::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; SearchNetworkProfilesResult::SearchNetworkProfilesResult() : m_totalCount(0) { } SearchNetworkProfilesResult::SearchNetworkProfilesResult(const Aws::AmazonWebServiceResult& result) : m_totalCount(0) { *this = result; } SearchNetworkProfilesResult& SearchNetworkProfilesResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("NetworkProfiles")) { Array networkProfilesJsonList = jsonValue.GetArray("NetworkProfiles"); for(unsigned networkProfilesIndex = 0; networkProfilesIndex < networkProfilesJsonList.GetLength(); ++networkProfilesIndex) { m_networkProfiles.push_back(networkProfilesJsonList[networkProfilesIndex].AsObject()); } } if(jsonValue.ValueExists("NextToken")) { m_nextToken = jsonValue.GetString("NextToken"); } if(jsonValue.ValueExists("TotalCount")) { m_totalCount = jsonValue.GetInteger("TotalCount"); } return *this; }