AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
RegistryScanningConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9#include <aws/ecr/model/RegistryScanningRule.h>
10#include <aws/ecr/model/ScanType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECR {
22namespace Model {
23
31 public:
32 AWS_ECR_API RegistryScanningConfiguration() = default;
36
38
41 inline ScanType GetScanType() const { return m_scanType; }
42 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
43 inline void SetScanType(ScanType value) {
44 m_scanTypeHasBeenSet = true;
45 m_scanType = value;
46 }
48 SetScanType(value);
49 return *this;
50 }
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) {
61 m_rulesHasBeenSet = true;
62 m_rules = std::forward<RulesT>(value);
63 }
64 template <typename RulesT = Aws::Vector<RegistryScanningRule>>
66 SetRules(std::forward<RulesT>(value));
67 return *this;
68 }
69 template <typename RulesT = RegistryScanningRule>
71 m_rulesHasBeenSet = true;
72 m_rules.emplace_back(std::forward<RulesT>(value));
73 return *this;
74 }
76 private:
77 ScanType m_scanType{ScanType::NOT_SET};
78
80 bool m_scanTypeHasBeenSet = false;
81 bool m_rulesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace ECR
86} // 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