/** * 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::Glue::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; BatchGetDevEndpointsResult::BatchGetDevEndpointsResult() { } BatchGetDevEndpointsResult::BatchGetDevEndpointsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } BatchGetDevEndpointsResult& BatchGetDevEndpointsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("DevEndpoints")) { Array devEndpointsJsonList = jsonValue.GetArray("DevEndpoints"); for(unsigned devEndpointsIndex = 0; devEndpointsIndex < devEndpointsJsonList.GetLength(); ++devEndpointsIndex) { m_devEndpoints.push_back(devEndpointsJsonList[devEndpointsIndex].AsObject()); } } if(jsonValue.ValueExists("DevEndpointsNotFound")) { Array devEndpointsNotFoundJsonList = jsonValue.GetArray("DevEndpointsNotFound"); for(unsigned devEndpointsNotFoundIndex = 0; devEndpointsNotFoundIndex < devEndpointsNotFoundJsonList.GetLength(); ++devEndpointsNotFoundIndex) { m_devEndpointsNotFound.push_back(devEndpointsNotFoundJsonList[devEndpointsNotFoundIndex].AsString()); } } return *this; }