/** * 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::ECR::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; StartImageScanResult::StartImageScanResult() { } StartImageScanResult::StartImageScanResult(const Aws::AmazonWebServiceResult& result) { *this = result; } StartImageScanResult& StartImageScanResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("registryId")) { m_registryId = jsonValue.GetString("registryId"); } if(jsonValue.ValueExists("repositoryName")) { m_repositoryName = jsonValue.GetString("repositoryName"); } if(jsonValue.ValueExists("imageId")) { m_imageId = jsonValue.GetObject("imageId"); } if(jsonValue.ValueExists("imageScanStatus")) { m_imageScanStatus = jsonValue.GetObject("imageScanStatus"); } return *this; }