AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
VmInstanceAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/Provider.h>
11#include <aws/inspector2/model/SeverityCounts.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 VmInstanceAggregationResponse() = default;
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetResourceId() const { return m_resourceId; }
43 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
44 template <typename ResourceIdT = Aws::String>
45 void SetResourceId(ResourceIdT&& value) {
46 m_resourceIdHasBeenSet = true;
47 m_resourceId = std::forward<ResourceIdT>(value);
48 }
49 template <typename ResourceIdT = Aws::String>
51 SetResourceId(std::forward<ResourceIdT>(value));
52 return *this;
53 }
55
57
63 inline Provider GetCloudProvider() const { return m_cloudProvider; }
64 inline bool CloudProviderHasBeenSet() const { return m_cloudProviderHasBeenSet; }
65 inline void SetCloudProvider(Provider value) {
66 m_cloudProviderHasBeenSet = true;
67 m_cloudProvider = value;
68 }
70 SetCloudProvider(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCloudAccountId() const { return m_cloudAccountId; }
80 inline bool CloudAccountIdHasBeenSet() const { return m_cloudAccountIdHasBeenSet; }
81 template <typename CloudAccountIdT = Aws::String>
82 void SetCloudAccountId(CloudAccountIdT&& value) {
83 m_cloudAccountIdHasBeenSet = true;
84 m_cloudAccountId = std::forward<CloudAccountIdT>(value);
85 }
86 template <typename CloudAccountIdT = Aws::String>
88 SetCloudAccountId(std::forward<CloudAccountIdT>(value));
89 return *this;
90 }
92
94
102 inline const Aws::String& GetCloudPartition() const { return m_cloudPartition; }
103 inline bool CloudPartitionHasBeenSet() const { return m_cloudPartitionHasBeenSet; }
104 template <typename CloudPartitionT = Aws::String>
105 void SetCloudPartition(CloudPartitionT&& value) {
106 m_cloudPartitionHasBeenSet = true;
107 m_cloudPartition = std::forward<CloudPartitionT>(value);
108 }
109 template <typename CloudPartitionT = Aws::String>
111 SetCloudPartition(std::forward<CloudPartitionT>(value));
112 return *this;
113 }
115
117
123 inline const Aws::String& GetCloudRegion() const { return m_cloudRegion; }
124 inline bool CloudRegionHasBeenSet() const { return m_cloudRegionHasBeenSet; }
125 template <typename CloudRegionT = Aws::String>
126 void SetCloudRegion(CloudRegionT&& value) {
127 m_cloudRegionHasBeenSet = true;
128 m_cloudRegion = std::forward<CloudRegionT>(value);
129 }
130 template <typename CloudRegionT = Aws::String>
132 SetCloudRegion(std::forward<CloudRegionT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetCloudOrgId() const { return m_cloudOrgId; }
142 inline bool CloudOrgIdHasBeenSet() const { return m_cloudOrgIdHasBeenSet; }
143 template <typename CloudOrgIdT = Aws::String>
144 void SetCloudOrgId(CloudOrgIdT&& value) {
145 m_cloudOrgIdHasBeenSet = true;
146 m_cloudOrgId = std::forward<CloudOrgIdT>(value);
147 }
148 template <typename CloudOrgIdT = Aws::String>
150 SetCloudOrgId(std::forward<CloudOrgIdT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetVmImageReference() const { return m_vmImageReference; }
160 inline bool VmImageReferenceHasBeenSet() const { return m_vmImageReferenceHasBeenSet; }
161 template <typename VmImageReferenceT = Aws::String>
162 void SetVmImageReference(VmImageReferenceT&& value) {
163 m_vmImageReferenceHasBeenSet = true;
164 m_vmImageReference = std::forward<VmImageReferenceT>(value);
165 }
166 template <typename VmImageReferenceT = Aws::String>
168 SetVmImageReference(std::forward<VmImageReferenceT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
178 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
179 template <typename OperatingSystemT = Aws::String>
180 void SetOperatingSystem(OperatingSystemT&& value) {
181 m_operatingSystemHasBeenSet = true;
182 m_operatingSystem = std::forward<OperatingSystemT>(value);
183 }
184 template <typename OperatingSystemT = Aws::String>
186 SetOperatingSystem(std::forward<OperatingSystemT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
196 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
197 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
198 void SetTags(TagsT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags = std::forward<TagsT>(value);
201 }
202 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 SetTags(std::forward<TagsT>(value));
205 return *this;
206 }
207 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
208 VmInstanceAggregationResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
209 m_tagsHasBeenSet = true;
210 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetAccountId() const { return m_accountId; }
220 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
221 template <typename AccountIdT = Aws::String>
222 void SetAccountId(AccountIdT&& value) {
223 m_accountIdHasBeenSet = true;
224 m_accountId = std::forward<AccountIdT>(value);
225 }
226 template <typename AccountIdT = Aws::String>
228 SetAccountId(std::forward<AccountIdT>(value));
229 return *this;
230 }
232
234
235 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
236 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
237 template <typename SeverityCountsT = SeverityCounts>
238 void SetSeverityCounts(SeverityCountsT&& value) {
239 m_severityCountsHasBeenSet = true;
240 m_severityCounts = std::forward<SeverityCountsT>(value);
241 }
242 template <typename SeverityCountsT = SeverityCounts>
244 SetSeverityCounts(std::forward<SeverityCountsT>(value));
245 return *this;
246 }
248
250
254 inline long long GetNetworkFindings() const { return m_networkFindings; }
255 inline bool NetworkFindingsHasBeenSet() const { return m_networkFindingsHasBeenSet; }
256 inline void SetNetworkFindings(long long value) {
257 m_networkFindingsHasBeenSet = true;
258 m_networkFindings = value;
259 }
261 SetNetworkFindings(value);
262 return *this;
263 }
265
267
271 inline long long GetExploitAvailableActiveFindingsCount() const { return m_exploitAvailableActiveFindingsCount; }
272 inline bool ExploitAvailableActiveFindingsCountHasBeenSet() const { return m_exploitAvailableActiveFindingsCountHasBeenSet; }
273 inline void SetExploitAvailableActiveFindingsCount(long long value) {
274 m_exploitAvailableActiveFindingsCountHasBeenSet = true;
275 m_exploitAvailableActiveFindingsCount = value;
276 }
279 return *this;
280 }
282
284
287 inline long long GetFixAvailableActiveFindingsCount() const { return m_fixAvailableActiveFindingsCount; }
288 inline bool FixAvailableActiveFindingsCountHasBeenSet() const { return m_fixAvailableActiveFindingsCountHasBeenSet; }
289 inline void SetFixAvailableActiveFindingsCount(long long value) {
290 m_fixAvailableActiveFindingsCountHasBeenSet = true;
291 m_fixAvailableActiveFindingsCount = value;
292 }
295 return *this;
296 }
298 private:
299 Aws::String m_resourceId;
300
301 Provider m_cloudProvider{Provider::NOT_SET};
302
303 Aws::String m_cloudAccountId;
304
305 Aws::String m_cloudPartition;
306
307 Aws::String m_cloudRegion;
308
309 Aws::String m_cloudOrgId;
310
311 Aws::String m_vmImageReference;
312
313 Aws::String m_operatingSystem;
314
316
317 Aws::String m_accountId;
318
319 SeverityCounts m_severityCounts;
320
321 long long m_networkFindings{0};
322
323 long long m_exploitAvailableActiveFindingsCount{0};
324
325 long long m_fixAvailableActiveFindingsCount{0};
326 bool m_resourceIdHasBeenSet = false;
327 bool m_cloudProviderHasBeenSet = false;
328 bool m_cloudAccountIdHasBeenSet = false;
329 bool m_cloudPartitionHasBeenSet = false;
330 bool m_cloudRegionHasBeenSet = false;
331 bool m_cloudOrgIdHasBeenSet = false;
332 bool m_vmImageReferenceHasBeenSet = false;
333 bool m_operatingSystemHasBeenSet = false;
334 bool m_tagsHasBeenSet = false;
335 bool m_accountIdHasBeenSet = false;
336 bool m_severityCountsHasBeenSet = false;
337 bool m_networkFindingsHasBeenSet = false;
338 bool m_exploitAvailableActiveFindingsCountHasBeenSet = false;
339 bool m_fixAvailableActiveFindingsCountHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace Inspector2
344} // namespace Aws
VmInstanceAggregationResponse & WithOperatingSystem(OperatingSystemT &&value)
VmInstanceAggregationResponse & WithCloudOrgId(CloudOrgIdT &&value)
AWS_INSPECTOR2_API VmInstanceAggregationResponse()=default
VmInstanceAggregationResponse & WithVmImageReference(VmImageReferenceT &&value)
VmInstanceAggregationResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
VmInstanceAggregationResponse & WithCloudAccountId(CloudAccountIdT &&value)
VmInstanceAggregationResponse & WithAccountId(AccountIdT &&value)
VmInstanceAggregationResponse & WithCloudPartition(CloudPartitionT &&value)
AWS_INSPECTOR2_API VmInstanceAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
VmInstanceAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
VmInstanceAggregationResponse & WithTags(TagsT &&value)
VmInstanceAggregationResponse & WithNetworkFindings(long long value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API VmInstanceAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
VmInstanceAggregationResponse & WithFixAvailableActiveFindingsCount(long long value)
VmInstanceAggregationResponse & WithCloudProvider(Provider value)
VmInstanceAggregationResponse & WithResourceId(ResourceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
VmInstanceAggregationResponse & WithExploitAvailableActiveFindingsCount(long long value)
VmInstanceAggregationResponse & WithCloudRegion(CloudRegionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue