AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/Action.h>
10#include <aws/guardduty/model/Detection.h>
11#include <aws/guardduty/model/EbsVolumeScanDetails.h>
12#include <aws/guardduty/model/Evidence.h>
13#include <aws/guardduty/model/MalwareScanDetails.h>
14#include <aws/guardduty/model/RuntimeDetails.h>
15#include <aws/guardduty/model/ServiceAdditionalInfo.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty {
27namespace Model {
28
35class Service {
36 public:
37 AWS_GUARDDUTY_API Service() = default;
38 AWS_GUARDDUTY_API Service(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Action& GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 template <typename ActionT = Action>
49 void SetAction(ActionT&& value) {
50 m_actionHasBeenSet = true;
51 m_action = std::forward<ActionT>(value);
52 }
53 template <typename ActionT = Action>
54 Service& WithAction(ActionT&& value) {
55 SetAction(std::forward<ActionT>(value));
56 return *this;
57 }
59
61
64 inline const Evidence& GetEvidence() const { return m_evidence; }
65 inline bool EvidenceHasBeenSet() const { return m_evidenceHasBeenSet; }
66 template <typename EvidenceT = Evidence>
67 void SetEvidence(EvidenceT&& value) {
68 m_evidenceHasBeenSet = true;
69 m_evidence = std::forward<EvidenceT>(value);
70 }
71 template <typename EvidenceT = Evidence>
72 Service& WithEvidence(EvidenceT&& value) {
73 SetEvidence(std::forward<EvidenceT>(value));
74 return *this;
75 }
77
79
82 inline bool GetArchived() const { return m_archived; }
83 inline bool ArchivedHasBeenSet() const { return m_archivedHasBeenSet; }
84 inline void SetArchived(bool value) {
85 m_archivedHasBeenSet = true;
86 m_archived = value;
87 }
88 inline Service& WithArchived(bool value) {
89 SetArchived(value);
90 return *this;
91 }
93
95
98 inline int GetCount() const { return m_count; }
99 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
100 inline void SetCount(int value) {
101 m_countHasBeenSet = true;
102 m_count = value;
103 }
104 inline Service& WithCount(int value) {
105 SetCount(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
115 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
116 template <typename DetectorIdT = Aws::String>
117 void SetDetectorId(DetectorIdT&& value) {
118 m_detectorIdHasBeenSet = true;
119 m_detectorId = std::forward<DetectorIdT>(value);
120 }
121 template <typename DetectorIdT = Aws::String>
122 Service& WithDetectorId(DetectorIdT&& value) {
123 SetDetectorId(std::forward<DetectorIdT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetEventFirstSeen() const { return m_eventFirstSeen; }
134 inline bool EventFirstSeenHasBeenSet() const { return m_eventFirstSeenHasBeenSet; }
135 template <typename EventFirstSeenT = Aws::String>
136 void SetEventFirstSeen(EventFirstSeenT&& value) {
137 m_eventFirstSeenHasBeenSet = true;
138 m_eventFirstSeen = std::forward<EventFirstSeenT>(value);
139 }
140 template <typename EventFirstSeenT = Aws::String>
141 Service& WithEventFirstSeen(EventFirstSeenT&& value) {
142 SetEventFirstSeen(std::forward<EventFirstSeenT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetEventLastSeen() const { return m_eventLastSeen; }
153 inline bool EventLastSeenHasBeenSet() const { return m_eventLastSeenHasBeenSet; }
154 template <typename EventLastSeenT = Aws::String>
155 void SetEventLastSeen(EventLastSeenT&& value) {
156 m_eventLastSeenHasBeenSet = true;
157 m_eventLastSeen = std::forward<EventLastSeenT>(value);
158 }
159 template <typename EventLastSeenT = Aws::String>
160 Service& WithEventLastSeen(EventLastSeenT&& value) {
161 SetEventLastSeen(std::forward<EventLastSeenT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetResourceRole() const { return m_resourceRole; }
171 inline bool ResourceRoleHasBeenSet() const { return m_resourceRoleHasBeenSet; }
172 template <typename ResourceRoleT = Aws::String>
173 void SetResourceRole(ResourceRoleT&& value) {
174 m_resourceRoleHasBeenSet = true;
175 m_resourceRole = std::forward<ResourceRoleT>(value);
176 }
177 template <typename ResourceRoleT = Aws::String>
178 Service& WithResourceRole(ResourceRoleT&& value) {
179 SetResourceRole(std::forward<ResourceRoleT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::String& GetServiceName() const { return m_serviceName; }
190 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
191 template <typename ServiceNameT = Aws::String>
192 void SetServiceName(ServiceNameT&& value) {
193 m_serviceNameHasBeenSet = true;
194 m_serviceName = std::forward<ServiceNameT>(value);
195 }
196 template <typename ServiceNameT = Aws::String>
197 Service& WithServiceName(ServiceNameT&& value) {
198 SetServiceName(std::forward<ServiceNameT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetUserFeedback() const { return m_userFeedback; }
208 inline bool UserFeedbackHasBeenSet() const { return m_userFeedbackHasBeenSet; }
209 template <typename UserFeedbackT = Aws::String>
210 void SetUserFeedback(UserFeedbackT&& value) {
211 m_userFeedbackHasBeenSet = true;
212 m_userFeedback = std::forward<UserFeedbackT>(value);
213 }
214 template <typename UserFeedbackT = Aws::String>
215 Service& WithUserFeedback(UserFeedbackT&& value) {
216 SetUserFeedback(std::forward<UserFeedbackT>(value));
217 return *this;
218 }
220
222
225 inline const ServiceAdditionalInfo& GetAdditionalInfo() const { return m_additionalInfo; }
226 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
227 template <typename AdditionalInfoT = ServiceAdditionalInfo>
228 void SetAdditionalInfo(AdditionalInfoT&& value) {
229 m_additionalInfoHasBeenSet = true;
230 m_additionalInfo = std::forward<AdditionalInfoT>(value);
231 }
232 template <typename AdditionalInfoT = ServiceAdditionalInfo>
233 Service& WithAdditionalInfo(AdditionalInfoT&& value) {
234 SetAdditionalInfo(std::forward<AdditionalInfoT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::String& GetFeatureName() const { return m_featureName; }
244 inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
245 template <typename FeatureNameT = Aws::String>
246 void SetFeatureName(FeatureNameT&& value) {
247 m_featureNameHasBeenSet = true;
248 m_featureName = std::forward<FeatureNameT>(value);
249 }
250 template <typename FeatureNameT = Aws::String>
251 Service& WithFeatureName(FeatureNameT&& value) {
252 SetFeatureName(std::forward<FeatureNameT>(value));
253 return *this;
254 }
256
258
261 inline const EbsVolumeScanDetails& GetEbsVolumeScanDetails() const { return m_ebsVolumeScanDetails; }
262 inline bool EbsVolumeScanDetailsHasBeenSet() const { return m_ebsVolumeScanDetailsHasBeenSet; }
263 template <typename EbsVolumeScanDetailsT = EbsVolumeScanDetails>
264 void SetEbsVolumeScanDetails(EbsVolumeScanDetailsT&& value) {
265 m_ebsVolumeScanDetailsHasBeenSet = true;
266 m_ebsVolumeScanDetails = std::forward<EbsVolumeScanDetailsT>(value);
267 }
268 template <typename EbsVolumeScanDetailsT = EbsVolumeScanDetails>
269 Service& WithEbsVolumeScanDetails(EbsVolumeScanDetailsT&& value) {
270 SetEbsVolumeScanDetails(std::forward<EbsVolumeScanDetailsT>(value));
271 return *this;
272 }
274
276
280 inline const RuntimeDetails& GetRuntimeDetails() const { return m_runtimeDetails; }
281 inline bool RuntimeDetailsHasBeenSet() const { return m_runtimeDetailsHasBeenSet; }
282 template <typename RuntimeDetailsT = RuntimeDetails>
283 void SetRuntimeDetails(RuntimeDetailsT&& value) {
284 m_runtimeDetailsHasBeenSet = true;
285 m_runtimeDetails = std::forward<RuntimeDetailsT>(value);
286 }
287 template <typename RuntimeDetailsT = RuntimeDetails>
288 Service& WithRuntimeDetails(RuntimeDetailsT&& value) {
289 SetRuntimeDetails(std::forward<RuntimeDetailsT>(value));
290 return *this;
291 }
293
295
298 inline const Detection& GetDetection() const { return m_detection; }
299 inline bool DetectionHasBeenSet() const { return m_detectionHasBeenSet; }
300 template <typename DetectionT = Detection>
301 void SetDetection(DetectionT&& value) {
302 m_detectionHasBeenSet = true;
303 m_detection = std::forward<DetectionT>(value);
304 }
305 template <typename DetectionT = Detection>
306 Service& WithDetection(DetectionT&& value) {
307 SetDetection(std::forward<DetectionT>(value));
308 return *this;
309 }
311
313
316 inline const MalwareScanDetails& GetMalwareScanDetails() const { return m_malwareScanDetails; }
317 inline bool MalwareScanDetailsHasBeenSet() const { return m_malwareScanDetailsHasBeenSet; }
318 template <typename MalwareScanDetailsT = MalwareScanDetails>
319 void SetMalwareScanDetails(MalwareScanDetailsT&& value) {
320 m_malwareScanDetailsHasBeenSet = true;
321 m_malwareScanDetails = std::forward<MalwareScanDetailsT>(value);
322 }
323 template <typename MalwareScanDetailsT = MalwareScanDetails>
324 Service& WithMalwareScanDetails(MalwareScanDetailsT&& value) {
325 SetMalwareScanDetails(std::forward<MalwareScanDetailsT>(value));
326 return *this;
327 }
329 private:
330 Action m_action;
331
332 Evidence m_evidence;
333
334 bool m_archived{false};
335
336 int m_count{0};
337
338 Aws::String m_detectorId;
339
340 Aws::String m_eventFirstSeen;
341
342 Aws::String m_eventLastSeen;
343
344 Aws::String m_resourceRole;
345
346 Aws::String m_serviceName;
347
348 Aws::String m_userFeedback;
349
350 ServiceAdditionalInfo m_additionalInfo;
351
352 Aws::String m_featureName;
353
354 EbsVolumeScanDetails m_ebsVolumeScanDetails;
355
356 RuntimeDetails m_runtimeDetails;
357
358 Detection m_detection;
359
360 MalwareScanDetails m_malwareScanDetails;
361 bool m_actionHasBeenSet = false;
362 bool m_evidenceHasBeenSet = false;
363 bool m_archivedHasBeenSet = false;
364 bool m_countHasBeenSet = false;
365 bool m_detectorIdHasBeenSet = false;
366 bool m_eventFirstSeenHasBeenSet = false;
367 bool m_eventLastSeenHasBeenSet = false;
368 bool m_resourceRoleHasBeenSet = false;
369 bool m_serviceNameHasBeenSet = false;
370 bool m_userFeedbackHasBeenSet = false;
371 bool m_additionalInfoHasBeenSet = false;
372 bool m_featureNameHasBeenSet = false;
373 bool m_ebsVolumeScanDetailsHasBeenSet = false;
374 bool m_runtimeDetailsHasBeenSet = false;
375 bool m_detectionHasBeenSet = false;
376 bool m_malwareScanDetailsHasBeenSet = false;
377};
378
379} // namespace Model
380} // namespace GuardDuty
381} // namespace Aws
Service & WithDetectorId(DetectorIdT &&value)
Definition Service.h:122
bool ServiceNameHasBeenSet() const
Definition Service.h:190
const Detection & GetDetection() const
Definition Service.h:298
bool EventFirstSeenHasBeenSet() const
Definition Service.h:134
AWS_GUARDDUTY_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetAdditionalInfo(AdditionalInfoT &&value)
Definition Service.h:228
void SetResourceRole(ResourceRoleT &&value)
Definition Service.h:173
bool DetectorIdHasBeenSet() const
Definition Service.h:115
bool ArchivedHasBeenSet() const
Definition Service.h:83
bool DetectionHasBeenSet() const
Definition Service.h:299
void SetUserFeedback(UserFeedbackT &&value)
Definition Service.h:210
void SetEventLastSeen(EventLastSeenT &&value)
Definition Service.h:155
AWS_GUARDDUTY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
Service & WithMalwareScanDetails(MalwareScanDetailsT &&value)
Definition Service.h:324
Service & WithArchived(bool value)
Definition Service.h:88
bool RuntimeDetailsHasBeenSet() const
Definition Service.h:281
void SetMalwareScanDetails(MalwareScanDetailsT &&value)
Definition Service.h:319
bool EventLastSeenHasBeenSet() const
Definition Service.h:153
Service & WithResourceRole(ResourceRoleT &&value)
Definition Service.h:178
Service & WithEventLastSeen(EventLastSeenT &&value)
Definition Service.h:160
void SetArchived(bool value)
Definition Service.h:84
void SetRuntimeDetails(RuntimeDetailsT &&value)
Definition Service.h:283
const Aws::String & GetEventLastSeen() const
Definition Service.h:152
const Action & GetAction() const
Definition Service.h:46
Service & WithEventFirstSeen(EventFirstSeenT &&value)
Definition Service.h:141
bool FeatureNameHasBeenSet() const
Definition Service.h:244
Service & WithFeatureName(FeatureNameT &&value)
Definition Service.h:251
const MalwareScanDetails & GetMalwareScanDetails() const
Definition Service.h:316
bool EbsVolumeScanDetailsHasBeenSet() const
Definition Service.h:262
AWS_GUARDDUTY_API Service()=default
void SetAction(ActionT &&value)
Definition Service.h:49
bool MalwareScanDetailsHasBeenSet() const
Definition Service.h:317
const Aws::String & GetUserFeedback() const
Definition Service.h:207
const EbsVolumeScanDetails & GetEbsVolumeScanDetails() const
Definition Service.h:261
const Aws::String & GetEventFirstSeen() const
Definition Service.h:133
bool ActionHasBeenSet() const
Definition Service.h:47
void SetServiceName(ServiceNameT &&value)
Definition Service.h:192
const ServiceAdditionalInfo & GetAdditionalInfo() const
Definition Service.h:225
void SetEbsVolumeScanDetails(EbsVolumeScanDetailsT &&value)
Definition Service.h:264
Service & WithDetection(DetectionT &&value)
Definition Service.h:306
const Aws::String & GetServiceName() const
Definition Service.h:189
Service & WithEvidence(EvidenceT &&value)
Definition Service.h:72
const Evidence & GetEvidence() const
Definition Service.h:64
Service & WithUserFeedback(UserFeedbackT &&value)
Definition Service.h:215
Service & WithAdditionalInfo(AdditionalInfoT &&value)
Definition Service.h:233
Service & WithRuntimeDetails(RuntimeDetailsT &&value)
Definition Service.h:288
bool EvidenceHasBeenSet() const
Definition Service.h:65
const RuntimeDetails & GetRuntimeDetails() const
Definition Service.h:280
void SetDetectorId(DetectorIdT &&value)
Definition Service.h:117
const Aws::String & GetDetectorId() const
Definition Service.h:114
void SetEvidence(EvidenceT &&value)
Definition Service.h:67
Service & WithServiceName(ServiceNameT &&value)
Definition Service.h:197
bool ResourceRoleHasBeenSet() const
Definition Service.h:171
void SetDetection(DetectionT &&value)
Definition Service.h:301
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Service & WithAction(ActionT &&value)
Definition Service.h:54
void SetFeatureName(FeatureNameT &&value)
Definition Service.h:246
bool UserFeedbackHasBeenSet() const
Definition Service.h:208
const Aws::String & GetResourceRole() const
Definition Service.h:170
bool AdditionalInfoHasBeenSet() const
Definition Service.h:226
Service & WithEbsVolumeScanDetails(EbsVolumeScanDetailsT &&value)
Definition Service.h:269
const Aws::String & GetFeatureName() const
Definition Service.h:243
Service & WithCount(int value)
Definition Service.h:104
void SetEventFirstSeen(EventFirstSeenT &&value)
Definition Service.h:136
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue