/** * 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 ImageScanningConfiguration { public: AWS_ECR_API ImageScanningConfiguration(); AWS_ECR_API ImageScanningConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API ImageScanningConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API 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 API_StartImageScan * API.

*/ inline bool GetScanOnPush() const{ return m_scanOnPush; } inline bool ScanOnPushHasBeenSet() const { return m_scanOnPushHasBeenSet; } inline void SetScanOnPush(bool value) { m_scanOnPushHasBeenSet = true; m_scanOnPush = value; } inline ImageScanningConfiguration& WithScanOnPush(bool value) { SetScanOnPush(value); return *this;} ///@} private: bool m_scanOnPush; bool m_scanOnPushHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws