AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ServerlessFunctionAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11#include <aws/inspector2/model/Provider.h>
12#include <aws/inspector2/model/SeverityCounts.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 ServerlessFunctionAggregationResponse() = default;
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetResourceId() const { return m_resourceId; }
44 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
45 template <typename ResourceIdT = Aws::String>
46 void SetResourceId(ResourceIdT&& value) {
47 m_resourceIdHasBeenSet = true;
48 m_resourceId = std::forward<ResourceIdT>(value);
49 }
50 template <typename ResourceIdT = Aws::String>
52 SetResourceId(std::forward<ResourceIdT>(value));
53 return *this;
54 }
56
58
64 inline Provider GetCloudProvider() const { return m_cloudProvider; }
65 inline bool CloudProviderHasBeenSet() const { return m_cloudProviderHasBeenSet; }
66 inline void SetCloudProvider(Provider value) {
67 m_cloudProviderHasBeenSet = true;
68 m_cloudProvider = value;
69 }
71 SetCloudProvider(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetCloudAccountId() const { return m_cloudAccountId; }
81 inline bool CloudAccountIdHasBeenSet() const { return m_cloudAccountIdHasBeenSet; }
82 template <typename CloudAccountIdT = Aws::String>
83 void SetCloudAccountId(CloudAccountIdT&& value) {
84 m_cloudAccountIdHasBeenSet = true;
85 m_cloudAccountId = std::forward<CloudAccountIdT>(value);
86 }
87 template <typename CloudAccountIdT = Aws::String>
89 SetCloudAccountId(std::forward<CloudAccountIdT>(value));
90 return *this;
91 }
93
95
103 inline const Aws::String& GetCloudPartition() const { return m_cloudPartition; }
104 inline bool CloudPartitionHasBeenSet() const { return m_cloudPartitionHasBeenSet; }
105 template <typename CloudPartitionT = Aws::String>
106 void SetCloudPartition(CloudPartitionT&& value) {
107 m_cloudPartitionHasBeenSet = true;
108 m_cloudPartition = std::forward<CloudPartitionT>(value);
109 }
110 template <typename CloudPartitionT = Aws::String>
112 SetCloudPartition(std::forward<CloudPartitionT>(value));
113 return *this;
114 }
116
118
124 inline const Aws::String& GetCloudRegion() const { return m_cloudRegion; }
125 inline bool CloudRegionHasBeenSet() const { return m_cloudRegionHasBeenSet; }
126 template <typename CloudRegionT = Aws::String>
127 void SetCloudRegion(CloudRegionT&& value) {
128 m_cloudRegionHasBeenSet = true;
129 m_cloudRegion = std::forward<CloudRegionT>(value);
130 }
131 template <typename CloudRegionT = Aws::String>
133 SetCloudRegion(std::forward<CloudRegionT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetCloudOrgId() const { return m_cloudOrgId; }
143 inline bool CloudOrgIdHasBeenSet() const { return m_cloudOrgIdHasBeenSet; }
144 template <typename CloudOrgIdT = Aws::String>
145 void SetCloudOrgId(CloudOrgIdT&& value) {
146 m_cloudOrgIdHasBeenSet = true;
147 m_cloudOrgId = std::forward<CloudOrgIdT>(value);
148 }
149 template <typename CloudOrgIdT = Aws::String>
151 SetCloudOrgId(std::forward<CloudOrgIdT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetFunctionName() const { return m_functionName; }
161 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
162 template <typename FunctionNameT = Aws::String>
163 void SetFunctionName(FunctionNameT&& value) {
164 m_functionNameHasBeenSet = true;
165 m_functionName = std::forward<FunctionNameT>(value);
166 }
167 template <typename FunctionNameT = Aws::String>
169 SetFunctionName(std::forward<FunctionNameT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetRuntime() const { return m_runtime; }
179 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
180 template <typename RuntimeT = Aws::String>
181 void SetRuntime(RuntimeT&& value) {
182 m_runtimeHasBeenSet = true;
183 m_runtime = std::forward<RuntimeT>(value);
184 }
185 template <typename RuntimeT = Aws::String>
187 SetRuntime(std::forward<RuntimeT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 void SetTags(TagsT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags = std::forward<TagsT>(value);
202 }
203 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 SetTags(std::forward<TagsT>(value));
206 return *this;
207 }
208 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
209 ServerlessFunctionAggregationResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetAccountId() const { return m_accountId; }
221 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
222 template <typename AccountIdT = Aws::String>
223 void SetAccountId(AccountIdT&& value) {
224 m_accountIdHasBeenSet = true;
225 m_accountId = std::forward<AccountIdT>(value);
226 }
227 template <typename AccountIdT = Aws::String>
229 SetAccountId(std::forward<AccountIdT>(value));
230 return *this;
231 }
233
235
236 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
237 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
238 template <typename SeverityCountsT = SeverityCounts>
239 void SetSeverityCounts(SeverityCountsT&& value) {
240 m_severityCountsHasBeenSet = true;
241 m_severityCounts = std::forward<SeverityCountsT>(value);
242 }
243 template <typename SeverityCountsT = SeverityCounts>
245 SetSeverityCounts(std::forward<SeverityCountsT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
255 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
256 template <typename LastModifiedAtT = Aws::Utils::DateTime>
257 void SetLastModifiedAt(LastModifiedAtT&& value) {
258 m_lastModifiedAtHasBeenSet = true;
259 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
260 }
261 template <typename LastModifiedAtT = Aws::Utils::DateTime>
263 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
264 return *this;
265 }
267
269
273 inline long long GetExploitAvailableActiveFindingsCount() const { return m_exploitAvailableActiveFindingsCount; }
274 inline bool ExploitAvailableActiveFindingsCountHasBeenSet() const { return m_exploitAvailableActiveFindingsCountHasBeenSet; }
275 inline void SetExploitAvailableActiveFindingsCount(long long value) {
276 m_exploitAvailableActiveFindingsCountHasBeenSet = true;
277 m_exploitAvailableActiveFindingsCount = value;
278 }
281 return *this;
282 }
284
286
290 inline long long GetFixAvailableActiveFindingsCount() const { return m_fixAvailableActiveFindingsCount; }
291 inline bool FixAvailableActiveFindingsCountHasBeenSet() const { return m_fixAvailableActiveFindingsCountHasBeenSet; }
292 inline void SetFixAvailableActiveFindingsCount(long long value) {
293 m_fixAvailableActiveFindingsCountHasBeenSet = true;
294 m_fixAvailableActiveFindingsCount = value;
295 }
298 return *this;
299 }
301 private:
302 Aws::String m_resourceId;
303
304 Provider m_cloudProvider{Provider::NOT_SET};
305
306 Aws::String m_cloudAccountId;
307
308 Aws::String m_cloudPartition;
309
310 Aws::String m_cloudRegion;
311
312 Aws::String m_cloudOrgId;
313
314 Aws::String m_functionName;
315
316 Aws::String m_runtime;
317
319
320 Aws::String m_accountId;
321
322 SeverityCounts m_severityCounts;
323
324 Aws::Utils::DateTime m_lastModifiedAt{};
325
326 long long m_exploitAvailableActiveFindingsCount{0};
327
328 long long m_fixAvailableActiveFindingsCount{0};
329 bool m_resourceIdHasBeenSet = false;
330 bool m_cloudProviderHasBeenSet = false;
331 bool m_cloudAccountIdHasBeenSet = false;
332 bool m_cloudPartitionHasBeenSet = false;
333 bool m_cloudRegionHasBeenSet = false;
334 bool m_cloudOrgIdHasBeenSet = false;
335 bool m_functionNameHasBeenSet = false;
336 bool m_runtimeHasBeenSet = false;
337 bool m_tagsHasBeenSet = false;
338 bool m_accountIdHasBeenSet = false;
339 bool m_severityCountsHasBeenSet = false;
340 bool m_lastModifiedAtHasBeenSet = false;
341 bool m_exploitAvailableActiveFindingsCountHasBeenSet = false;
342 bool m_fixAvailableActiveFindingsCountHasBeenSet = false;
343};
344
345} // namespace Model
346} // namespace Inspector2
347} // namespace Aws
ServerlessFunctionAggregationResponse & WithCloudProvider(Provider value)
ServerlessFunctionAggregationResponse & WithCloudRegion(CloudRegionT &&value)
ServerlessFunctionAggregationResponse & WithLastModifiedAt(LastModifiedAtT &&value)
ServerlessFunctionAggregationResponse & WithCloudPartition(CloudPartitionT &&value)
ServerlessFunctionAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
ServerlessFunctionAggregationResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ServerlessFunctionAggregationResponse & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API ServerlessFunctionAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerlessFunctionAggregationResponse & WithFixAvailableActiveFindingsCount(long long value)
ServerlessFunctionAggregationResponse & WithFunctionName(FunctionNameT &&value)
ServerlessFunctionAggregationResponse & WithExploitAvailableActiveFindingsCount(long long value)
AWS_INSPECTOR2_API ServerlessFunctionAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
ServerlessFunctionAggregationResponse & WithCloudAccountId(CloudAccountIdT &&value)
ServerlessFunctionAggregationResponse & WithResourceId(ResourceIdT &&value)
ServerlessFunctionAggregationResponse & WithRuntime(RuntimeT &&value)
ServerlessFunctionAggregationResponse & WithCloudOrgId(CloudOrgIdT &&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