AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegistryScanningConfiguration.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/model/ScanType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecr/model/RegistryScanningRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECR
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ECR_API RegistryScanningConfiguration() = default;
41
42
44
47 inline ScanType GetScanType() const { return m_scanType; }
48 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
49 inline void SetScanType(ScanType value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
50 inline RegistryScanningConfiguration& WithScanType(ScanType value) { SetScanType(value); return *this;}
52
54
57 inline const Aws::Vector<RegistryScanningRule>& GetRules() const { return m_rules; }
58 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
59 template<typename RulesT = Aws::Vector<RegistryScanningRule>>
60 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
61 template<typename RulesT = Aws::Vector<RegistryScanningRule>>
62 RegistryScanningConfiguration& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
63 template<typename RulesT = RegistryScanningRule>
64 RegistryScanningConfiguration& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
66 private:
67
68 ScanType m_scanType{ScanType::NOT_SET};
69 bool m_scanTypeHasBeenSet = false;
70
72 bool m_rulesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ECR
77} // namespace Aws
RegistryScanningConfiguration & WithScanType(ScanType value)
const Aws::Vector< RegistryScanningRule > & GetRules() const
AWS_ECR_API RegistryScanningConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API RegistryScanningConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RegistryScanningConfiguration & WithRules(RulesT &&value)
RegistryScanningConfiguration & AddRules(RulesT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue