AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
RepositoryScanningConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/ScanFrequency.h>
11#include <aws/ecr/model/ScanningRepositoryFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECR {
23namespace Model {
24
32 public:
33 AWS_ECR_API RepositoryScanningConfiguration() = default;
37
39
42 inline const Aws::String& GetRepositoryArn() const { return m_repositoryArn; }
43 inline bool RepositoryArnHasBeenSet() const { return m_repositoryArnHasBeenSet; }
44 template <typename RepositoryArnT = Aws::String>
45 void SetRepositoryArn(RepositoryArnT&& value) {
46 m_repositoryArnHasBeenSet = true;
47 m_repositoryArn = std::forward<RepositoryArnT>(value);
48 }
49 template <typename RepositoryArnT = Aws::String>
51 SetRepositoryArn(std::forward<RepositoryArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
61 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
62 template <typename RepositoryNameT = Aws::String>
63 void SetRepositoryName(RepositoryNameT&& value) {
64 m_repositoryNameHasBeenSet = true;
65 m_repositoryName = std::forward<RepositoryNameT>(value);
66 }
67 template <typename RepositoryNameT = Aws::String>
69 SetRepositoryName(std::forward<RepositoryNameT>(value));
70 return *this;
71 }
73
75
78 inline bool GetScanOnPush() const { return m_scanOnPush; }
79 inline bool ScanOnPushHasBeenSet() const { return m_scanOnPushHasBeenSet; }
80 inline void SetScanOnPush(bool value) {
81 m_scanOnPushHasBeenSet = true;
82 m_scanOnPush = value;
83 }
85 SetScanOnPush(value);
86 return *this;
87 }
89
91
94 inline ScanFrequency GetScanFrequency() const { return m_scanFrequency; }
95 inline bool ScanFrequencyHasBeenSet() const { return m_scanFrequencyHasBeenSet; }
96 inline void SetScanFrequency(ScanFrequency value) {
97 m_scanFrequencyHasBeenSet = true;
98 m_scanFrequency = value;
99 }
101 SetScanFrequency(value);
102 return *this;
103 }
105
107
110 inline const Aws::Vector<ScanningRepositoryFilter>& GetAppliedScanFilters() const { return m_appliedScanFilters; }
111 inline bool AppliedScanFiltersHasBeenSet() const { return m_appliedScanFiltersHasBeenSet; }
112 template <typename AppliedScanFiltersT = Aws::Vector<ScanningRepositoryFilter>>
113 void SetAppliedScanFilters(AppliedScanFiltersT&& value) {
114 m_appliedScanFiltersHasBeenSet = true;
115 m_appliedScanFilters = std::forward<AppliedScanFiltersT>(value);
116 }
117 template <typename AppliedScanFiltersT = Aws::Vector<ScanningRepositoryFilter>>
119 SetAppliedScanFilters(std::forward<AppliedScanFiltersT>(value));
120 return *this;
121 }
122 template <typename AppliedScanFiltersT = ScanningRepositoryFilter>
124 m_appliedScanFiltersHasBeenSet = true;
125 m_appliedScanFilters.emplace_back(std::forward<AppliedScanFiltersT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_repositoryArn;
131
132 Aws::String m_repositoryName;
133
134 bool m_scanOnPush{false};
135
136 ScanFrequency m_scanFrequency{ScanFrequency::NOT_SET};
137
138 Aws::Vector<ScanningRepositoryFilter> m_appliedScanFilters;
139 bool m_repositoryArnHasBeenSet = false;
140 bool m_repositoryNameHasBeenSet = false;
141 bool m_scanOnPushHasBeenSet = false;
142 bool m_scanFrequencyHasBeenSet = false;
143 bool m_appliedScanFiltersHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace ECR
148} // namespace Aws
RepositoryScanningConfiguration & AddAppliedScanFilters(AppliedScanFiltersT &&value)
RepositoryScanningConfiguration & WithScanFrequency(ScanFrequency value)
const Aws::Vector< ScanningRepositoryFilter > & GetAppliedScanFilters() const
RepositoryScanningConfiguration & WithScanOnPush(bool value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API RepositoryScanningConfiguration(Aws::Utils::Json::JsonView jsonValue)
RepositoryScanningConfiguration & WithRepositoryName(RepositoryNameT &&value)
RepositoryScanningConfiguration & WithAppliedScanFilters(AppliedScanFiltersT &&value)
RepositoryScanningConfiguration & WithRepositoryArn(RepositoryArnT &&value)
AWS_ECR_API RepositoryScanningConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue