/** * 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 SecurityHub { namespace Model { /** *

The image scanning configuration for a repository.

See Also:

* AWS * API Reference

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

Whether to scan images after they are pushed to a repository.

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

Whether to scan images after they are pushed to a repository.

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

Whether to scan images after they are pushed to a repository.

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

Whether to scan images after they are pushed to a repository.

*/ inline AwsEcrRepositoryImageScanningConfigurationDetails& WithScanOnPush(bool value) { SetScanOnPush(value); return *this;} private: bool m_scanOnPush; bool m_scanOnPushHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws