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

Details about the ECR automated re-scan duration setting for your * environment.

See Also:

AWS * API Reference

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

The ECR automated re-scan duration defines how long an ECR image will be * actively scanned by Amazon Inspector. When the number of days since an image was * last pushed exceeds the automated re-scan duration the monitoring state of that * image becomes inactive and all associated findings are scheduled * for closure.

*/ inline const EcrRescanDuration& GetRescanDuration() const{ return m_rescanDuration; } /** *

The ECR automated re-scan duration defines how long an ECR image will be * actively scanned by Amazon Inspector. When the number of days since an image was * last pushed exceeds the automated re-scan duration the monitoring state of that * image becomes inactive and all associated findings are scheduled * for closure.

*/ inline bool RescanDurationHasBeenSet() const { return m_rescanDurationHasBeenSet; } /** *

The ECR automated re-scan duration defines how long an ECR image will be * actively scanned by Amazon Inspector. When the number of days since an image was * last pushed exceeds the automated re-scan duration the monitoring state of that * image becomes inactive and all associated findings are scheduled * for closure.

*/ inline void SetRescanDuration(const EcrRescanDuration& value) { m_rescanDurationHasBeenSet = true; m_rescanDuration = value; } /** *

The ECR automated re-scan duration defines how long an ECR image will be * actively scanned by Amazon Inspector. When the number of days since an image was * last pushed exceeds the automated re-scan duration the monitoring state of that * image becomes inactive and all associated findings are scheduled * for closure.

*/ inline void SetRescanDuration(EcrRescanDuration&& value) { m_rescanDurationHasBeenSet = true; m_rescanDuration = std::move(value); } /** *

The ECR automated re-scan duration defines how long an ECR image will be * actively scanned by Amazon Inspector. When the number of days since an image was * last pushed exceeds the automated re-scan duration the monitoring state of that * image becomes inactive and all associated findings are scheduled * for closure.

*/ inline EcrConfiguration& WithRescanDuration(const EcrRescanDuration& value) { SetRescanDuration(value); return *this;} /** *

The ECR automated re-scan duration defines how long an ECR image will be * actively scanned by Amazon Inspector. When the number of days since an image was * last pushed exceeds the automated re-scan duration the monitoring state of that * image becomes inactive and all associated findings are scheduled * for closure.

*/ inline EcrConfiguration& WithRescanDuration(EcrRescanDuration&& value) { SetRescanDuration(std::move(value)); return *this;} private: EcrRescanDuration m_rescanDuration; bool m_rescanDurationHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws