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

The image scanning configuration for a repository.

See Also:

* AWS * API Reference

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

The setting that determines whether images are scanned after being pushed to * a repository. If set to true, images will be scanned after being * pushed. If this parameter is not specified, it will default to * false and images will not be scanned unless a scan is manually * started with the StartImageScan API.

*/ inline bool GetScanOnPush() const{ return m_scanOnPush; } /** *

The setting that determines whether images are scanned after being pushed to * a repository. If set to true, images will be scanned after being * pushed. If this parameter is not specified, it will default to * false and images will not be scanned unless a scan is manually * started with the StartImageScan API.

*/ inline bool ScanOnPushHasBeenSet() const { return m_scanOnPushHasBeenSet; } /** *

The setting that determines whether images are scanned after being pushed to * a repository. If set to true, images will be scanned after being * pushed. If this parameter is not specified, it will default to * false and images will not be scanned unless a scan is manually * started with the StartImageScan API.

*/ inline void SetScanOnPush(bool value) { m_scanOnPushHasBeenSet = true; m_scanOnPush = value; } /** *

The setting that determines whether images are scanned after being pushed to * a repository. If set to true, images will be scanned after being * pushed. If this parameter is not specified, it will default to * false and images will not be scanned unless a scan is manually * started with the StartImageScan API.

*/ inline ImageScanningConfiguration& WithScanOnPush(bool value) { SetScanOnPush(value); return *this;} private: bool m_scanOnPush; bool m_scanOnPushHasBeenSet; }; } // namespace Model } // namespace ECR } // namespace Aws