/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ECR { namespace Model { /** */ class PutRegistryScanningConfigurationRequest : public ECRRequest { public: AWS_ECR_API PutRegistryScanningConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutRegistryScanningConfiguration"; } AWS_ECR_API Aws::String SerializePayload() const override; AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The scanning type to set for the registry.

When a registry scanning * configuration is not defined, by default the BASIC scan type is * used. When basic scanning is used, you may specify filters to determine which * individual repositories, or all repositories, are scanned when new images are * pushed to those repositories. Alternatively, you can do manual scans of images * with basic scanning.

When the ENHANCED scan type is set, * Amazon Inspector provides automated vulnerability scanning. You may choose * between continuous scanning or scan on push and you may specify filters to * determine which individual repositories, or all repositories, are scanned.

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

The scanning type to set for the registry.

When a registry scanning * configuration is not defined, by default the BASIC scan type is * used. When basic scanning is used, you may specify filters to determine which * individual repositories, or all repositories, are scanned when new images are * pushed to those repositories. Alternatively, you can do manual scans of images * with basic scanning.

When the ENHANCED scan type is set, * Amazon Inspector provides automated vulnerability scanning. You may choose * between continuous scanning or scan on push and you may specify filters to * determine which individual repositories, or all repositories, are scanned.

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

The scanning type to set for the registry.

When a registry scanning * configuration is not defined, by default the BASIC scan type is * used. When basic scanning is used, you may specify filters to determine which * individual repositories, or all repositories, are scanned when new images are * pushed to those repositories. Alternatively, you can do manual scans of images * with basic scanning.

When the ENHANCED scan type is set, * Amazon Inspector provides automated vulnerability scanning. You may choose * between continuous scanning or scan on push and you may specify filters to * determine which individual repositories, or all repositories, are scanned.

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

The scanning type to set for the registry.

When a registry scanning * configuration is not defined, by default the BASIC scan type is * used. When basic scanning is used, you may specify filters to determine which * individual repositories, or all repositories, are scanned when new images are * pushed to those repositories. Alternatively, you can do manual scans of images * with basic scanning.

When the ENHANCED scan type is set, * Amazon Inspector provides automated vulnerability scanning. You may choose * between continuous scanning or scan on push and you may specify filters to * determine which individual repositories, or all repositories, are scanned.

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

The scanning type to set for the registry.

When a registry scanning * configuration is not defined, by default the BASIC scan type is * used. When basic scanning is used, you may specify filters to determine which * individual repositories, or all repositories, are scanned when new images are * pushed to those repositories. Alternatively, you can do manual scans of images * with basic scanning.

When the ENHANCED scan type is set, * Amazon Inspector provides automated vulnerability scanning. You may choose * between continuous scanning or scan on push and you may specify filters to * determine which individual repositories, or all repositories, are scanned.

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

The scanning type to set for the registry.

When a registry scanning * configuration is not defined, by default the BASIC scan type is * used. When basic scanning is used, you may specify filters to determine which * individual repositories, or all repositories, are scanned when new images are * pushed to those repositories. Alternatively, you can do manual scans of images * with basic scanning.

When the ENHANCED scan type is set, * Amazon Inspector provides automated vulnerability scanning. You may choose * between continuous scanning or scan on push and you may specify filters to * determine which individual repositories, or all repositories, are scanned.

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

The scanning rules to use for the registry. A scanning rule is used to * determine which repository filters are used and at what frequency scanning will * occur.

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

The scanning rules to use for the registry. A scanning rule is used to * determine which repository filters are used and at what frequency scanning will * occur.

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

The scanning rules to use for the registry. A scanning rule is used to * determine which repository filters are used and at what frequency scanning will * occur.

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

The scanning rules to use for the registry. A scanning rule is used to * determine which repository filters are used and at what frequency scanning will * occur.

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

The scanning rules to use for the registry. A scanning rule is used to * determine which repository filters are used and at what frequency scanning will * occur.

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

The scanning rules to use for the registry. A scanning rule is used to * determine which repository filters are used and at what frequency scanning will * occur.

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

The scanning rules to use for the registry. A scanning rule is used to * determine which repository filters are used and at what frequency scanning will * occur.

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

The scanning rules to use for the registry. A scanning rule is used to * determine which repository filters are used and at what frequency scanning will * occur.

*/ inline PutRegistryScanningConfigurationRequest& 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