/** * 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; BatchDeleteConnectionResult::BatchDeleteConnectionResult() { } BatchDeleteConnectionResult::BatchDeleteConnectionResult(const Aws::AmazonWebServiceResult& result) { *this = result; } BatchDeleteConnectionResult& BatchDeleteConnectionResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("Succeeded")) { Array succeededJsonList = jsonValue.GetArray("Succeeded"); for(unsigned succeededIndex = 0; succeededIndex < succeededJsonList.GetLength(); ++succeededIndex) { m_succeeded.push_back(succeededJsonList[succeededIndex].AsString()); } } if(jsonValue.ValueExists("Errors")) { Aws::Map errorsJsonMap = jsonValue.GetObject("Errors").GetAllObjects(); for(auto& errorsItem : errorsJsonMap) { m_errors[errorsItem.first] = errorsItem.second.AsObject(); } } return *this; }