/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace imagebuilder { namespace Model { /** *

Contains settings for Image Builder image resource and container image * scans.

See Also:

AWS * API Reference

*/ class ImageScanningConfiguration { public: AWS_IMAGEBUILDER_API ImageScanningConfiguration(); AWS_IMAGEBUILDER_API ImageScanningConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API ImageScanningConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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