AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ImageLayerAggregation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/ImageLayerSortBy.h>
10#include <aws/inspector2/model/SortOrder.h>
11#include <aws/inspector2/model/StringFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2 {
23namespace Model {
24
32 public:
33 AWS_INSPECTOR2_API ImageLayerAggregation() = default;
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<StringFilter>& GetRepositories() const { return m_repositories; }
43 inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; }
44 template <typename RepositoriesT = Aws::Vector<StringFilter>>
45 void SetRepositories(RepositoriesT&& value) {
46 m_repositoriesHasBeenSet = true;
47 m_repositories = std::forward<RepositoriesT>(value);
48 }
49 template <typename RepositoriesT = Aws::Vector<StringFilter>>
50 ImageLayerAggregation& WithRepositories(RepositoriesT&& value) {
51 SetRepositories(std::forward<RepositoriesT>(value));
52 return *this;
53 }
54 template <typename RepositoriesT = StringFilter>
55 ImageLayerAggregation& AddRepositories(RepositoriesT&& value) {
56 m_repositoriesHasBeenSet = true;
57 m_repositories.emplace_back(std::forward<RepositoriesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<StringFilter>& GetResourceIds() const { return m_resourceIds; }
67 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
68 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
69 void SetResourceIds(ResourceIdsT&& value) {
70 m_resourceIdsHasBeenSet = true;
71 m_resourceIds = std::forward<ResourceIdsT>(value);
72 }
73 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
74 ImageLayerAggregation& WithResourceIds(ResourceIdsT&& value) {
75 SetResourceIds(std::forward<ResourceIdsT>(value));
76 return *this;
77 }
78 template <typename ResourceIdsT = StringFilter>
79 ImageLayerAggregation& AddResourceIds(ResourceIdsT&& value) {
80 m_resourceIdsHasBeenSet = true;
81 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<StringFilter>& GetLayerHashes() const { return m_layerHashes; }
91 inline bool LayerHashesHasBeenSet() const { return m_layerHashesHasBeenSet; }
92 template <typename LayerHashesT = Aws::Vector<StringFilter>>
93 void SetLayerHashes(LayerHashesT&& value) {
94 m_layerHashesHasBeenSet = true;
95 m_layerHashes = std::forward<LayerHashesT>(value);
96 }
97 template <typename LayerHashesT = Aws::Vector<StringFilter>>
98 ImageLayerAggregation& WithLayerHashes(LayerHashesT&& value) {
99 SetLayerHashes(std::forward<LayerHashesT>(value));
100 return *this;
101 }
102 template <typename LayerHashesT = StringFilter>
103 ImageLayerAggregation& AddLayerHashes(LayerHashesT&& value) {
104 m_layerHashesHasBeenSet = true;
105 m_layerHashes.emplace_back(std::forward<LayerHashesT>(value));
106 return *this;
107 }
109
111
117 inline const Aws::Vector<StringFilter>& GetCloudProviders() const { return m_cloudProviders; }
118 inline bool CloudProvidersHasBeenSet() const { return m_cloudProvidersHasBeenSet; }
119 template <typename CloudProvidersT = Aws::Vector<StringFilter>>
120 void SetCloudProviders(CloudProvidersT&& value) {
121 m_cloudProvidersHasBeenSet = true;
122 m_cloudProviders = std::forward<CloudProvidersT>(value);
123 }
124 template <typename CloudProvidersT = Aws::Vector<StringFilter>>
125 ImageLayerAggregation& WithCloudProviders(CloudProvidersT&& value) {
126 SetCloudProviders(std::forward<CloudProvidersT>(value));
127 return *this;
128 }
129 template <typename CloudProvidersT = StringFilter>
130 ImageLayerAggregation& AddCloudProviders(CloudProvidersT&& value) {
131 m_cloudProvidersHasBeenSet = true;
132 m_cloudProviders.emplace_back(std::forward<CloudProvidersT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Vector<StringFilter>& GetCloudAccountIds() const { return m_cloudAccountIds; }
142 inline bool CloudAccountIdsHasBeenSet() const { return m_cloudAccountIdsHasBeenSet; }
143 template <typename CloudAccountIdsT = Aws::Vector<StringFilter>>
144 void SetCloudAccountIds(CloudAccountIdsT&& value) {
145 m_cloudAccountIdsHasBeenSet = true;
146 m_cloudAccountIds = std::forward<CloudAccountIdsT>(value);
147 }
148 template <typename CloudAccountIdsT = Aws::Vector<StringFilter>>
149 ImageLayerAggregation& WithCloudAccountIds(CloudAccountIdsT&& value) {
150 SetCloudAccountIds(std::forward<CloudAccountIdsT>(value));
151 return *this;
152 }
153 template <typename CloudAccountIdsT = StringFilter>
154 ImageLayerAggregation& AddCloudAccountIds(CloudAccountIdsT&& value) {
155 m_cloudAccountIdsHasBeenSet = true;
156 m_cloudAccountIds.emplace_back(std::forward<CloudAccountIdsT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Vector<StringFilter>& GetCloudOrgIds() const { return m_cloudOrgIds; }
166 inline bool CloudOrgIdsHasBeenSet() const { return m_cloudOrgIdsHasBeenSet; }
167 template <typename CloudOrgIdsT = Aws::Vector<StringFilter>>
168 void SetCloudOrgIds(CloudOrgIdsT&& value) {
169 m_cloudOrgIdsHasBeenSet = true;
170 m_cloudOrgIds = std::forward<CloudOrgIdsT>(value);
171 }
172 template <typename CloudOrgIdsT = Aws::Vector<StringFilter>>
173 ImageLayerAggregation& WithCloudOrgIds(CloudOrgIdsT&& value) {
174 SetCloudOrgIds(std::forward<CloudOrgIdsT>(value));
175 return *this;
176 }
177 template <typename CloudOrgIdsT = StringFilter>
178 ImageLayerAggregation& AddCloudOrgIds(CloudOrgIdsT&& value) {
179 m_cloudOrgIdsHasBeenSet = true;
180 m_cloudOrgIds.emplace_back(std::forward<CloudOrgIdsT>(value));
181 return *this;
182 }
184
186
192 inline const Aws::Vector<StringFilter>& GetCloudRegions() const { return m_cloudRegions; }
193 inline bool CloudRegionsHasBeenSet() const { return m_cloudRegionsHasBeenSet; }
194 template <typename CloudRegionsT = Aws::Vector<StringFilter>>
195 void SetCloudRegions(CloudRegionsT&& value) {
196 m_cloudRegionsHasBeenSet = true;
197 m_cloudRegions = std::forward<CloudRegionsT>(value);
198 }
199 template <typename CloudRegionsT = Aws::Vector<StringFilter>>
200 ImageLayerAggregation& WithCloudRegions(CloudRegionsT&& value) {
201 SetCloudRegions(std::forward<CloudRegionsT>(value));
202 return *this;
203 }
204 template <typename CloudRegionsT = StringFilter>
205 ImageLayerAggregation& AddCloudRegions(CloudRegionsT&& value) {
206 m_cloudRegionsHasBeenSet = true;
207 m_cloudRegions.emplace_back(std::forward<CloudRegionsT>(value));
208 return *this;
209 }
211
213
220 inline const Aws::Vector<StringFilter>& GetCloudPartitions() const { return m_cloudPartitions; }
221 inline bool CloudPartitionsHasBeenSet() const { return m_cloudPartitionsHasBeenSet; }
222 template <typename CloudPartitionsT = Aws::Vector<StringFilter>>
223 void SetCloudPartitions(CloudPartitionsT&& value) {
224 m_cloudPartitionsHasBeenSet = true;
225 m_cloudPartitions = std::forward<CloudPartitionsT>(value);
226 }
227 template <typename CloudPartitionsT = Aws::Vector<StringFilter>>
228 ImageLayerAggregation& WithCloudPartitions(CloudPartitionsT&& value) {
229 SetCloudPartitions(std::forward<CloudPartitionsT>(value));
230 return *this;
231 }
232 template <typename CloudPartitionsT = StringFilter>
233 ImageLayerAggregation& AddCloudPartitions(CloudPartitionsT&& value) {
234 m_cloudPartitionsHasBeenSet = true;
235 m_cloudPartitions.emplace_back(std::forward<CloudPartitionsT>(value));
236 return *this;
237 }
239
241
244 inline SortOrder GetSortOrder() const { return m_sortOrder; }
245 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
246 inline void SetSortOrder(SortOrder value) {
247 m_sortOrderHasBeenSet = true;
248 m_sortOrder = value;
249 }
251 SetSortOrder(value);
252 return *this;
253 }
255
257
260 inline ImageLayerSortBy GetSortBy() const { return m_sortBy; }
261 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
262 inline void SetSortBy(ImageLayerSortBy value) {
263 m_sortByHasBeenSet = true;
264 m_sortBy = value;
265 }
267 SetSortBy(value);
268 return *this;
269 }
271 private:
272 Aws::Vector<StringFilter> m_repositories;
273
274 Aws::Vector<StringFilter> m_resourceIds;
275
276 Aws::Vector<StringFilter> m_layerHashes;
277
278 Aws::Vector<StringFilter> m_cloudProviders;
279
280 Aws::Vector<StringFilter> m_cloudAccountIds;
281
282 Aws::Vector<StringFilter> m_cloudOrgIds;
283
284 Aws::Vector<StringFilter> m_cloudRegions;
285
286 Aws::Vector<StringFilter> m_cloudPartitions;
287
288 SortOrder m_sortOrder{SortOrder::NOT_SET};
289
291 bool m_repositoriesHasBeenSet = false;
292 bool m_resourceIdsHasBeenSet = false;
293 bool m_layerHashesHasBeenSet = false;
294 bool m_cloudProvidersHasBeenSet = false;
295 bool m_cloudAccountIdsHasBeenSet = false;
296 bool m_cloudOrgIdsHasBeenSet = false;
297 bool m_cloudRegionsHasBeenSet = false;
298 bool m_cloudPartitionsHasBeenSet = false;
299 bool m_sortOrderHasBeenSet = false;
300 bool m_sortByHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace Inspector2
305} // namespace Aws
ImageLayerAggregation & AddCloudAccountIds(CloudAccountIdsT &&value)
ImageLayerAggregation & AddCloudProviders(CloudProvidersT &&value)
const Aws::Vector< StringFilter > & GetCloudProviders() const
ImageLayerAggregation & WithCloudProviders(CloudProvidersT &&value)
AWS_INSPECTOR2_API ImageLayerAggregation()=default
ImageLayerAggregation & WithCloudPartitions(CloudPartitionsT &&value)
ImageLayerAggregation & AddResourceIds(ResourceIdsT &&value)
ImageLayerAggregation & WithSortOrder(SortOrder value)
const Aws::Vector< StringFilter > & GetResourceIds() const
ImageLayerAggregation & WithCloudAccountIds(CloudAccountIdsT &&value)
const Aws::Vector< StringFilter > & GetCloudAccountIds() const
ImageLayerAggregation & WithCloudOrgIds(CloudOrgIdsT &&value)
ImageLayerAggregation & WithSortBy(ImageLayerSortBy value)
const Aws::Vector< StringFilter > & GetLayerHashes() const
AWS_INSPECTOR2_API ImageLayerAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageLayerAggregation & AddLayerHashes(LayerHashesT &&value)
const Aws::Vector< StringFilter > & GetCloudPartitions() const
const Aws::Vector< StringFilter > & GetCloudRegions() const
const Aws::Vector< StringFilter > & GetRepositories() const
ImageLayerAggregation & WithCloudRegions(CloudRegionsT &&value)
const Aws::Vector< StringFilter > & GetCloudOrgIds() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ImageLayerAggregation & AddCloudOrgIds(CloudOrgIdsT &&value)
ImageLayerAggregation & WithResourceIds(ResourceIdsT &&value)
ImageLayerAggregation & AddCloudPartitions(CloudPartitionsT &&value)
ImageLayerAggregation & WithRepositories(RepositoriesT &&value)
AWS_INSPECTOR2_API ImageLayerAggregation(Aws::Utils::Json::JsonView jsonValue)
ImageLayerAggregation & AddCloudRegions(CloudRegionsT &&value)
ImageLayerAggregation & WithLayerHashes(LayerHashesT &&value)
ImageLayerAggregation & AddRepositories(RepositoriesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue