/** * 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::Lambda::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListLayerVersionsResult::ListLayerVersionsResult() { } ListLayerVersionsResult::ListLayerVersionsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListLayerVersionsResult& ListLayerVersionsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("NextMarker")) { m_nextMarker = jsonValue.GetString("NextMarker"); } if(jsonValue.ValueExists("LayerVersions")) { Array layerVersionsJsonList = jsonValue.GetArray("LayerVersions"); for(unsigned layerVersionsIndex = 0; layerVersionsIndex < layerVersionsJsonList.GetLength(); ++layerVersionsIndex) { m_layerVersions.push_back(layerVersionsJsonList[layerVersionsIndex].AsObject()); } } return *this; }