AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
VmInstanceAggregation.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/MapFilter.h>
10#include <aws/inspector2/model/SortOrder.h>
11#include <aws/inspector2/model/StringFilter.h>
12#include <aws/inspector2/model/VmInstanceSortBy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
33 public:
34 AWS_INSPECTOR2_API VmInstanceAggregation() = default;
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<StringFilter>& GetResourceIds() const { return m_resourceIds; }
44 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
45 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
46 void SetResourceIds(ResourceIdsT&& value) {
47 m_resourceIdsHasBeenSet = true;
48 m_resourceIds = std::forward<ResourceIdsT>(value);
49 }
50 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
51 VmInstanceAggregation& WithResourceIds(ResourceIdsT&& value) {
52 SetResourceIds(std::forward<ResourceIdsT>(value));
53 return *this;
54 }
55 template <typename ResourceIdsT = StringFilter>
56 VmInstanceAggregation& AddResourceIds(ResourceIdsT&& value) {
57 m_resourceIdsHasBeenSet = true;
58 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<StringFilter>& GetOperatingSystems() const { return m_operatingSystems; }
68 inline bool OperatingSystemsHasBeenSet() const { return m_operatingSystemsHasBeenSet; }
69 template <typename OperatingSystemsT = Aws::Vector<StringFilter>>
70 void SetOperatingSystems(OperatingSystemsT&& value) {
71 m_operatingSystemsHasBeenSet = true;
72 m_operatingSystems = std::forward<OperatingSystemsT>(value);
73 }
74 template <typename OperatingSystemsT = Aws::Vector<StringFilter>>
75 VmInstanceAggregation& WithOperatingSystems(OperatingSystemsT&& value) {
76 SetOperatingSystems(std::forward<OperatingSystemsT>(value));
77 return *this;
78 }
79 template <typename OperatingSystemsT = StringFilter>
80 VmInstanceAggregation& AddOperatingSystems(OperatingSystemsT&& value) {
81 m_operatingSystemsHasBeenSet = true;
82 m_operatingSystems.emplace_back(std::forward<OperatingSystemsT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Vector<MapFilter>& GetInstanceTags() const { return m_instanceTags; }
92 inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; }
93 template <typename InstanceTagsT = Aws::Vector<MapFilter>>
94 void SetInstanceTags(InstanceTagsT&& value) {
95 m_instanceTagsHasBeenSet = true;
96 m_instanceTags = std::forward<InstanceTagsT>(value);
97 }
98 template <typename InstanceTagsT = Aws::Vector<MapFilter>>
99 VmInstanceAggregation& WithInstanceTags(InstanceTagsT&& value) {
100 SetInstanceTags(std::forward<InstanceTagsT>(value));
101 return *this;
102 }
103 template <typename InstanceTagsT = MapFilter>
104 VmInstanceAggregation& AddInstanceTags(InstanceTagsT&& value) {
105 m_instanceTagsHasBeenSet = true;
106 m_instanceTags.emplace_back(std::forward<InstanceTagsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<StringFilter>& GetVmImageReferences() const { return m_vmImageReferences; }
116 inline bool VmImageReferencesHasBeenSet() const { return m_vmImageReferencesHasBeenSet; }
117 template <typename VmImageReferencesT = Aws::Vector<StringFilter>>
118 void SetVmImageReferences(VmImageReferencesT&& value) {
119 m_vmImageReferencesHasBeenSet = true;
120 m_vmImageReferences = std::forward<VmImageReferencesT>(value);
121 }
122 template <typename VmImageReferencesT = Aws::Vector<StringFilter>>
123 VmInstanceAggregation& WithVmImageReferences(VmImageReferencesT&& value) {
124 SetVmImageReferences(std::forward<VmImageReferencesT>(value));
125 return *this;
126 }
127 template <typename VmImageReferencesT = StringFilter>
128 VmInstanceAggregation& AddVmImageReferences(VmImageReferencesT&& value) {
129 m_vmImageReferencesHasBeenSet = true;
130 m_vmImageReferences.emplace_back(std::forward<VmImageReferencesT>(value));
131 return *this;
132 }
134
136
142 inline const Aws::Vector<StringFilter>& GetCloudProviders() const { return m_cloudProviders; }
143 inline bool CloudProvidersHasBeenSet() const { return m_cloudProvidersHasBeenSet; }
144 template <typename CloudProvidersT = Aws::Vector<StringFilter>>
145 void SetCloudProviders(CloudProvidersT&& value) {
146 m_cloudProvidersHasBeenSet = true;
147 m_cloudProviders = std::forward<CloudProvidersT>(value);
148 }
149 template <typename CloudProvidersT = Aws::Vector<StringFilter>>
150 VmInstanceAggregation& WithCloudProviders(CloudProvidersT&& value) {
151 SetCloudProviders(std::forward<CloudProvidersT>(value));
152 return *this;
153 }
154 template <typename CloudProvidersT = StringFilter>
155 VmInstanceAggregation& AddCloudProviders(CloudProvidersT&& value) {
156 m_cloudProvidersHasBeenSet = true;
157 m_cloudProviders.emplace_back(std::forward<CloudProvidersT>(value));
158 return *this;
159 }
161
163
170 inline const Aws::Vector<StringFilter>& GetCloudPartitions() const { return m_cloudPartitions; }
171 inline bool CloudPartitionsHasBeenSet() const { return m_cloudPartitionsHasBeenSet; }
172 template <typename CloudPartitionsT = Aws::Vector<StringFilter>>
173 void SetCloudPartitions(CloudPartitionsT&& value) {
174 m_cloudPartitionsHasBeenSet = true;
175 m_cloudPartitions = std::forward<CloudPartitionsT>(value);
176 }
177 template <typename CloudPartitionsT = Aws::Vector<StringFilter>>
178 VmInstanceAggregation& WithCloudPartitions(CloudPartitionsT&& value) {
179 SetCloudPartitions(std::forward<CloudPartitionsT>(value));
180 return *this;
181 }
182 template <typename CloudPartitionsT = StringFilter>
183 VmInstanceAggregation& AddCloudPartitions(CloudPartitionsT&& value) {
184 m_cloudPartitionsHasBeenSet = true;
185 m_cloudPartitions.emplace_back(std::forward<CloudPartitionsT>(value));
186 return *this;
187 }
189
191
197 inline const Aws::Vector<StringFilter>& GetCloudRegions() const { return m_cloudRegions; }
198 inline bool CloudRegionsHasBeenSet() const { return m_cloudRegionsHasBeenSet; }
199 template <typename CloudRegionsT = Aws::Vector<StringFilter>>
200 void SetCloudRegions(CloudRegionsT&& value) {
201 m_cloudRegionsHasBeenSet = true;
202 m_cloudRegions = std::forward<CloudRegionsT>(value);
203 }
204 template <typename CloudRegionsT = Aws::Vector<StringFilter>>
205 VmInstanceAggregation& WithCloudRegions(CloudRegionsT&& value) {
206 SetCloudRegions(std::forward<CloudRegionsT>(value));
207 return *this;
208 }
209 template <typename CloudRegionsT = StringFilter>
210 VmInstanceAggregation& AddCloudRegions(CloudRegionsT&& value) {
211 m_cloudRegionsHasBeenSet = true;
212 m_cloudRegions.emplace_back(std::forward<CloudRegionsT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Vector<StringFilter>& GetCloudOrgIds() const { return m_cloudOrgIds; }
222 inline bool CloudOrgIdsHasBeenSet() const { return m_cloudOrgIdsHasBeenSet; }
223 template <typename CloudOrgIdsT = Aws::Vector<StringFilter>>
224 void SetCloudOrgIds(CloudOrgIdsT&& value) {
225 m_cloudOrgIdsHasBeenSet = true;
226 m_cloudOrgIds = std::forward<CloudOrgIdsT>(value);
227 }
228 template <typename CloudOrgIdsT = Aws::Vector<StringFilter>>
229 VmInstanceAggregation& WithCloudOrgIds(CloudOrgIdsT&& value) {
230 SetCloudOrgIds(std::forward<CloudOrgIdsT>(value));
231 return *this;
232 }
233 template <typename CloudOrgIdsT = StringFilter>
234 VmInstanceAggregation& AddCloudOrgIds(CloudOrgIdsT&& value) {
235 m_cloudOrgIdsHasBeenSet = true;
236 m_cloudOrgIds.emplace_back(std::forward<CloudOrgIdsT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::Vector<StringFilter>& GetCloudAccountIds() const { return m_cloudAccountIds; }
246 inline bool CloudAccountIdsHasBeenSet() const { return m_cloudAccountIdsHasBeenSet; }
247 template <typename CloudAccountIdsT = Aws::Vector<StringFilter>>
248 void SetCloudAccountIds(CloudAccountIdsT&& value) {
249 m_cloudAccountIdsHasBeenSet = true;
250 m_cloudAccountIds = std::forward<CloudAccountIdsT>(value);
251 }
252 template <typename CloudAccountIdsT = Aws::Vector<StringFilter>>
253 VmInstanceAggregation& WithCloudAccountIds(CloudAccountIdsT&& value) {
254 SetCloudAccountIds(std::forward<CloudAccountIdsT>(value));
255 return *this;
256 }
257 template <typename CloudAccountIdsT = StringFilter>
258 VmInstanceAggregation& AddCloudAccountIds(CloudAccountIdsT&& value) {
259 m_cloudAccountIdsHasBeenSet = true;
260 m_cloudAccountIds.emplace_back(std::forward<CloudAccountIdsT>(value));
261 return *this;
262 }
264
266
270 inline SortOrder GetSortOrder() const { return m_sortOrder; }
271 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
272 inline void SetSortOrder(SortOrder value) {
273 m_sortOrderHasBeenSet = true;
274 m_sortOrder = value;
275 }
277 SetSortOrder(value);
278 return *this;
279 }
281
283
288 inline VmInstanceSortBy GetSortBy() const { return m_sortBy; }
289 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
290 inline void SetSortBy(VmInstanceSortBy value) {
291 m_sortByHasBeenSet = true;
292 m_sortBy = value;
293 }
295 SetSortBy(value);
296 return *this;
297 }
299 private:
300 Aws::Vector<StringFilter> m_resourceIds;
301
302 Aws::Vector<StringFilter> m_operatingSystems;
303
304 Aws::Vector<MapFilter> m_instanceTags;
305
306 Aws::Vector<StringFilter> m_vmImageReferences;
307
308 Aws::Vector<StringFilter> m_cloudProviders;
309
310 Aws::Vector<StringFilter> m_cloudPartitions;
311
312 Aws::Vector<StringFilter> m_cloudRegions;
313
314 Aws::Vector<StringFilter> m_cloudOrgIds;
315
316 Aws::Vector<StringFilter> m_cloudAccountIds;
317
318 SortOrder m_sortOrder{SortOrder::NOT_SET};
319
321 bool m_resourceIdsHasBeenSet = false;
322 bool m_operatingSystemsHasBeenSet = false;
323 bool m_instanceTagsHasBeenSet = false;
324 bool m_vmImageReferencesHasBeenSet = false;
325 bool m_cloudProvidersHasBeenSet = false;
326 bool m_cloudPartitionsHasBeenSet = false;
327 bool m_cloudRegionsHasBeenSet = false;
328 bool m_cloudOrgIdsHasBeenSet = false;
329 bool m_cloudAccountIdsHasBeenSet = false;
330 bool m_sortOrderHasBeenSet = false;
331 bool m_sortByHasBeenSet = false;
332};
333
334} // namespace Model
335} // namespace Inspector2
336} // namespace Aws
VmInstanceAggregation & AddCloudOrgIds(CloudOrgIdsT &&value)
VmInstanceAggregation & WithSortOrder(SortOrder value)
VmInstanceAggregation & AddOperatingSystems(OperatingSystemsT &&value)
const Aws::Vector< StringFilter > & GetCloudOrgIds() const
VmInstanceAggregation & WithCloudPartitions(CloudPartitionsT &&value)
VmInstanceAggregation & AddInstanceTags(InstanceTagsT &&value)
VmInstanceAggregation & AddCloudRegions(CloudRegionsT &&value)
VmInstanceAggregation & WithOperatingSystems(OperatingSystemsT &&value)
VmInstanceAggregation & WithResourceIds(ResourceIdsT &&value)
VmInstanceAggregation & AddResourceIds(ResourceIdsT &&value)
const Aws::Vector< StringFilter > & GetCloudProviders() const
VmInstanceAggregation & AddCloudPartitions(CloudPartitionsT &&value)
VmInstanceAggregation & WithVmImageReferences(VmImageReferencesT &&value)
const Aws::Vector< StringFilter > & GetCloudAccountIds() const
VmInstanceAggregation & WithInstanceTags(InstanceTagsT &&value)
AWS_INSPECTOR2_API VmInstanceAggregation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< StringFilter > & GetCloudPartitions() const
VmInstanceAggregation & WithSortBy(VmInstanceSortBy value)
const Aws::Vector< StringFilter > & GetVmImageReferences() const
VmInstanceAggregation & AddVmImageReferences(VmImageReferencesT &&value)
VmInstanceAggregation & WithCloudProviders(CloudProvidersT &&value)
const Aws::Vector< StringFilter > & GetCloudRegions() const
VmInstanceAggregation & AddCloudProviders(CloudProvidersT &&value)
VmInstanceAggregation & WithCloudAccountIds(CloudAccountIdsT &&value)
void SetVmImageReferences(VmImageReferencesT &&value)
void SetOperatingSystems(OperatingSystemsT &&value)
const Aws::Vector< StringFilter > & GetOperatingSystems() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API VmInstanceAggregation()=default
const Aws::Vector< MapFilter > & GetInstanceTags() const
VmInstanceAggregation & WithCloudRegions(CloudRegionsT &&value)
VmInstanceAggregation & WithCloudOrgIds(CloudOrgIdsT &&value)
VmInstanceAggregation & AddCloudAccountIds(CloudAccountIdsT &&value)
const Aws::Vector< StringFilter > & GetResourceIds() const
AWS_INSPECTOR2_API VmInstanceAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue