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

The scanning configuration for a private registry.

See Also:

* AWS * API Reference

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

The type of scanning configured for the registry.

*/ inline const ScanType& GetScanType() const{ return m_scanType; } /** *

The type of scanning configured for the registry.

*/ inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; } /** *

The type of scanning configured for the registry.

*/ inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; } /** *

The type of scanning configured for the registry.

*/ inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); } /** *

The type of scanning configured for the registry.

*/ inline RegistryScanningConfiguration& WithScanType(const ScanType& value) { SetScanType(value); return *this;} /** *

The type of scanning configured for the registry.

*/ inline RegistryScanningConfiguration& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;} /** *

The scanning rules associated with the registry.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

The scanning rules associated with the registry.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

The scanning rules associated with the registry.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

The scanning rules associated with the registry.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

The scanning rules associated with the registry.

*/ inline RegistryScanningConfiguration& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The scanning rules associated with the registry.

*/ inline RegistryScanningConfiguration& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

The scanning rules associated with the registry.

*/ inline RegistryScanningConfiguration& AddRules(const RegistryScanningRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

The scanning rules associated with the registry.

*/ inline RegistryScanningConfiguration& AddRules(RegistryScanningRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } private: ScanType m_scanType; bool m_scanTypeHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws