/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains settings for Image Builder image resource and container image
* scans.See Also:
AWS
* API Reference
A setting that indicates whether Image Builder keeps a snapshot of the * vulnerability scans that Amazon Inspector runs against the build instance when * you create a new image.
*/ inline bool GetImageScanningEnabled() const{ return m_imageScanningEnabled; } /** *A setting that indicates whether Image Builder keeps a snapshot of the * vulnerability scans that Amazon Inspector runs against the build instance when * you create a new image.
*/ inline bool ImageScanningEnabledHasBeenSet() const { return m_imageScanningEnabledHasBeenSet; } /** *A setting that indicates whether Image Builder keeps a snapshot of the * vulnerability scans that Amazon Inspector runs against the build instance when * you create a new image.
*/ inline void SetImageScanningEnabled(bool value) { m_imageScanningEnabledHasBeenSet = true; m_imageScanningEnabled = value; } /** *A setting that indicates whether Image Builder keeps a snapshot of the * vulnerability scans that Amazon Inspector runs against the build instance when * you create a new image.
*/ inline ImageScanningConfiguration& WithImageScanningEnabled(bool value) { SetImageScanningEnabled(value); return *this;} /** *Contains Amazon ECR settings for vulnerability scans.
*/ inline const EcrConfiguration& GetEcrConfiguration() const{ return m_ecrConfiguration; } /** *Contains Amazon ECR settings for vulnerability scans.
*/ inline bool EcrConfigurationHasBeenSet() const { return m_ecrConfigurationHasBeenSet; } /** *Contains Amazon ECR settings for vulnerability scans.
*/ inline void SetEcrConfiguration(const EcrConfiguration& value) { m_ecrConfigurationHasBeenSet = true; m_ecrConfiguration = value; } /** *Contains Amazon ECR settings for vulnerability scans.
*/ inline void SetEcrConfiguration(EcrConfiguration&& value) { m_ecrConfigurationHasBeenSet = true; m_ecrConfiguration = std::move(value); } /** *Contains Amazon ECR settings for vulnerability scans.
*/ inline ImageScanningConfiguration& WithEcrConfiguration(const EcrConfiguration& value) { SetEcrConfiguration(value); return *this;} /** *Contains Amazon ECR settings for vulnerability scans.
*/ inline ImageScanningConfiguration& WithEcrConfiguration(EcrConfiguration&& value) { SetEcrConfiguration(std::move(value)); return *this;} private: bool m_imageScanningEnabled; bool m_imageScanningEnabledHasBeenSet = false; EcrConfiguration m_ecrConfiguration; bool m_ecrConfigurationHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws