AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/Action.h>
9#include <aws/guardduty/model/Evidence.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/guardduty/model/ServiceAdditionalInfo.h>
12#include <aws/guardduty/model/EbsVolumeScanDetails.h>
13#include <aws/guardduty/model/RuntimeDetails.h>
14#include <aws/guardduty/model/Detection.h>
15#include <aws/guardduty/model/MalwareScanDetails.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace GuardDuty
29{
30namespace Model
31{
32
39 class Service
40 {
41 public:
42 AWS_GUARDDUTY_API Service();
43 AWS_GUARDDUTY_API Service(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GUARDDUTY_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Action& GetAction() const{ return m_action; }
53 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
54 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
55 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
56 inline Service& WithAction(const Action& value) { SetAction(value); return *this;}
57 inline Service& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
59
61
64 inline const Evidence& GetEvidence() const{ return m_evidence; }
65 inline bool EvidenceHasBeenSet() const { return m_evidenceHasBeenSet; }
66 inline void SetEvidence(const Evidence& value) { m_evidenceHasBeenSet = true; m_evidence = value; }
67 inline void SetEvidence(Evidence&& value) { m_evidenceHasBeenSet = true; m_evidence = std::move(value); }
68 inline Service& WithEvidence(const Evidence& value) { SetEvidence(value); return *this;}
69 inline Service& WithEvidence(Evidence&& value) { SetEvidence(std::move(value)); return *this;}
71
73
76 inline bool GetArchived() const{ return m_archived; }
77 inline bool ArchivedHasBeenSet() const { return m_archivedHasBeenSet; }
78 inline void SetArchived(bool value) { m_archivedHasBeenSet = true; m_archived = value; }
79 inline Service& WithArchived(bool value) { SetArchived(value); return *this;}
81
83
86 inline int GetCount() const{ return m_count; }
87 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
88 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
89 inline Service& WithCount(int value) { SetCount(value); return *this;}
91
93
96 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
97 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
98 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
99 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
100 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
101 inline Service& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
102 inline Service& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
103 inline Service& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
105
107
111 inline const Aws::String& GetEventFirstSeen() const{ return m_eventFirstSeen; }
112 inline bool EventFirstSeenHasBeenSet() const { return m_eventFirstSeenHasBeenSet; }
113 inline void SetEventFirstSeen(const Aws::String& value) { m_eventFirstSeenHasBeenSet = true; m_eventFirstSeen = value; }
114 inline void SetEventFirstSeen(Aws::String&& value) { m_eventFirstSeenHasBeenSet = true; m_eventFirstSeen = std::move(value); }
115 inline void SetEventFirstSeen(const char* value) { m_eventFirstSeenHasBeenSet = true; m_eventFirstSeen.assign(value); }
116 inline Service& WithEventFirstSeen(const Aws::String& value) { SetEventFirstSeen(value); return *this;}
117 inline Service& WithEventFirstSeen(Aws::String&& value) { SetEventFirstSeen(std::move(value)); return *this;}
118 inline Service& WithEventFirstSeen(const char* value) { SetEventFirstSeen(value); return *this;}
120
122
126 inline const Aws::String& GetEventLastSeen() const{ return m_eventLastSeen; }
127 inline bool EventLastSeenHasBeenSet() const { return m_eventLastSeenHasBeenSet; }
128 inline void SetEventLastSeen(const Aws::String& value) { m_eventLastSeenHasBeenSet = true; m_eventLastSeen = value; }
129 inline void SetEventLastSeen(Aws::String&& value) { m_eventLastSeenHasBeenSet = true; m_eventLastSeen = std::move(value); }
130 inline void SetEventLastSeen(const char* value) { m_eventLastSeenHasBeenSet = true; m_eventLastSeen.assign(value); }
131 inline Service& WithEventLastSeen(const Aws::String& value) { SetEventLastSeen(value); return *this;}
132 inline Service& WithEventLastSeen(Aws::String&& value) { SetEventLastSeen(std::move(value)); return *this;}
133 inline Service& WithEventLastSeen(const char* value) { SetEventLastSeen(value); return *this;}
135
137
140 inline const Aws::String& GetResourceRole() const{ return m_resourceRole; }
141 inline bool ResourceRoleHasBeenSet() const { return m_resourceRoleHasBeenSet; }
142 inline void SetResourceRole(const Aws::String& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = value; }
143 inline void SetResourceRole(Aws::String&& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = std::move(value); }
144 inline void SetResourceRole(const char* value) { m_resourceRoleHasBeenSet = true; m_resourceRole.assign(value); }
145 inline Service& WithResourceRole(const Aws::String& value) { SetResourceRole(value); return *this;}
146 inline Service& WithResourceRole(Aws::String&& value) { SetResourceRole(std::move(value)); return *this;}
147 inline Service& WithResourceRole(const char* value) { SetResourceRole(value); return *this;}
149
151
155 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
156 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
157 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
158 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
159 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
160 inline Service& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
161 inline Service& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
162 inline Service& WithServiceName(const char* value) { SetServiceName(value); return *this;}
164
166
169 inline const Aws::String& GetUserFeedback() const{ return m_userFeedback; }
170 inline bool UserFeedbackHasBeenSet() const { return m_userFeedbackHasBeenSet; }
171 inline void SetUserFeedback(const Aws::String& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = value; }
172 inline void SetUserFeedback(Aws::String&& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = std::move(value); }
173 inline void SetUserFeedback(const char* value) { m_userFeedbackHasBeenSet = true; m_userFeedback.assign(value); }
174 inline Service& WithUserFeedback(const Aws::String& value) { SetUserFeedback(value); return *this;}
175 inline Service& WithUserFeedback(Aws::String&& value) { SetUserFeedback(std::move(value)); return *this;}
176 inline Service& WithUserFeedback(const char* value) { SetUserFeedback(value); return *this;}
178
180
183 inline const ServiceAdditionalInfo& GetAdditionalInfo() const{ return m_additionalInfo; }
184 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
185 inline void SetAdditionalInfo(const ServiceAdditionalInfo& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
186 inline void SetAdditionalInfo(ServiceAdditionalInfo&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
187 inline Service& WithAdditionalInfo(const ServiceAdditionalInfo& value) { SetAdditionalInfo(value); return *this;}
188 inline Service& WithAdditionalInfo(ServiceAdditionalInfo&& value) { SetAdditionalInfo(std::move(value)); return *this;}
190
192
195 inline const Aws::String& GetFeatureName() const{ return m_featureName; }
196 inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
197 inline void SetFeatureName(const Aws::String& value) { m_featureNameHasBeenSet = true; m_featureName = value; }
198 inline void SetFeatureName(Aws::String&& value) { m_featureNameHasBeenSet = true; m_featureName = std::move(value); }
199 inline void SetFeatureName(const char* value) { m_featureNameHasBeenSet = true; m_featureName.assign(value); }
200 inline Service& WithFeatureName(const Aws::String& value) { SetFeatureName(value); return *this;}
201 inline Service& WithFeatureName(Aws::String&& value) { SetFeatureName(std::move(value)); return *this;}
202 inline Service& WithFeatureName(const char* value) { SetFeatureName(value); return *this;}
204
206
209 inline const EbsVolumeScanDetails& GetEbsVolumeScanDetails() const{ return m_ebsVolumeScanDetails; }
210 inline bool EbsVolumeScanDetailsHasBeenSet() const { return m_ebsVolumeScanDetailsHasBeenSet; }
211 inline void SetEbsVolumeScanDetails(const EbsVolumeScanDetails& value) { m_ebsVolumeScanDetailsHasBeenSet = true; m_ebsVolumeScanDetails = value; }
212 inline void SetEbsVolumeScanDetails(EbsVolumeScanDetails&& value) { m_ebsVolumeScanDetailsHasBeenSet = true; m_ebsVolumeScanDetails = std::move(value); }
214 inline Service& WithEbsVolumeScanDetails(EbsVolumeScanDetails&& value) { SetEbsVolumeScanDetails(std::move(value)); return *this;}
216
218
222 inline const RuntimeDetails& GetRuntimeDetails() const{ return m_runtimeDetails; }
223 inline bool RuntimeDetailsHasBeenSet() const { return m_runtimeDetailsHasBeenSet; }
224 inline void SetRuntimeDetails(const RuntimeDetails& value) { m_runtimeDetailsHasBeenSet = true; m_runtimeDetails = value; }
225 inline void SetRuntimeDetails(RuntimeDetails&& value) { m_runtimeDetailsHasBeenSet = true; m_runtimeDetails = std::move(value); }
226 inline Service& WithRuntimeDetails(const RuntimeDetails& value) { SetRuntimeDetails(value); return *this;}
227 inline Service& WithRuntimeDetails(RuntimeDetails&& value) { SetRuntimeDetails(std::move(value)); return *this;}
229
231
234 inline const Detection& GetDetection() const{ return m_detection; }
235 inline bool DetectionHasBeenSet() const { return m_detectionHasBeenSet; }
236 inline void SetDetection(const Detection& value) { m_detectionHasBeenSet = true; m_detection = value; }
237 inline void SetDetection(Detection&& value) { m_detectionHasBeenSet = true; m_detection = std::move(value); }
238 inline Service& WithDetection(const Detection& value) { SetDetection(value); return *this;}
239 inline Service& WithDetection(Detection&& value) { SetDetection(std::move(value)); return *this;}
241
243
246 inline const MalwareScanDetails& GetMalwareScanDetails() const{ return m_malwareScanDetails; }
247 inline bool MalwareScanDetailsHasBeenSet() const { return m_malwareScanDetailsHasBeenSet; }
248 inline void SetMalwareScanDetails(const MalwareScanDetails& value) { m_malwareScanDetailsHasBeenSet = true; m_malwareScanDetails = value; }
249 inline void SetMalwareScanDetails(MalwareScanDetails&& value) { m_malwareScanDetailsHasBeenSet = true; m_malwareScanDetails = std::move(value); }
250 inline Service& WithMalwareScanDetails(const MalwareScanDetails& value) { SetMalwareScanDetails(value); return *this;}
251 inline Service& WithMalwareScanDetails(MalwareScanDetails&& value) { SetMalwareScanDetails(std::move(value)); return *this;}
253 private:
254
255 Action m_action;
256 bool m_actionHasBeenSet = false;
257
258 Evidence m_evidence;
259 bool m_evidenceHasBeenSet = false;
260
261 bool m_archived;
262 bool m_archivedHasBeenSet = false;
263
264 int m_count;
265 bool m_countHasBeenSet = false;
266
267 Aws::String m_detectorId;
268 bool m_detectorIdHasBeenSet = false;
269
270 Aws::String m_eventFirstSeen;
271 bool m_eventFirstSeenHasBeenSet = false;
272
273 Aws::String m_eventLastSeen;
274 bool m_eventLastSeenHasBeenSet = false;
275
276 Aws::String m_resourceRole;
277 bool m_resourceRoleHasBeenSet = false;
278
279 Aws::String m_serviceName;
280 bool m_serviceNameHasBeenSet = false;
281
282 Aws::String m_userFeedback;
283 bool m_userFeedbackHasBeenSet = false;
284
285 ServiceAdditionalInfo m_additionalInfo;
286 bool m_additionalInfoHasBeenSet = false;
287
288 Aws::String m_featureName;
289 bool m_featureNameHasBeenSet = false;
290
291 EbsVolumeScanDetails m_ebsVolumeScanDetails;
292 bool m_ebsVolumeScanDetailsHasBeenSet = false;
293
294 RuntimeDetails m_runtimeDetails;
295 bool m_runtimeDetailsHasBeenSet = false;
296
297 Detection m_detection;
298 bool m_detectionHasBeenSet = false;
299
300 MalwareScanDetails m_malwareScanDetails;
301 bool m_malwareScanDetailsHasBeenSet = false;
302 };
303
304} // namespace Model
305} // namespace GuardDuty
306} // namespace Aws
void SetEbsVolumeScanDetails(EbsVolumeScanDetails &&value)
Definition Service.h:212
bool ServiceNameHasBeenSet() const
Definition Service.h:156
Service & WithDetection(Detection &&value)
Definition Service.h:239
const Detection & GetDetection() const
Definition Service.h:234
Service & WithResourceRole(Aws::String &&value)
Definition Service.h:146
void SetDetectorId(Aws::String &&value)
Definition Service.h:99
void SetDetectorId(const char *value)
Definition Service.h:100
void SetUserFeedback(Aws::String &&value)
Definition Service.h:172
bool EventFirstSeenHasBeenSet() const
Definition Service.h:112
void SetEventLastSeen(const Aws::String &value)
Definition Service.h:128
AWS_GUARDDUTY_API Service(Aws::Utils::Json::JsonView jsonValue)
Service & WithUserFeedback(const char *value)
Definition Service.h:176
bool DetectorIdHasBeenSet() const
Definition Service.h:97
bool ArchivedHasBeenSet() const
Definition Service.h:77
bool DetectionHasBeenSet() const
Definition Service.h:235
AWS_GUARDDUTY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDetection(const Detection &value)
Definition Service.h:236
Service & WithArchived(bool value)
Definition Service.h:79
bool RuntimeDetailsHasBeenSet() const
Definition Service.h:223
Service & WithEventFirstSeen(Aws::String &&value)
Definition Service.h:117
void SetRuntimeDetails(const RuntimeDetails &value)
Definition Service.h:224
bool EventLastSeenHasBeenSet() const
Definition Service.h:127
void SetEbsVolumeScanDetails(const EbsVolumeScanDetails &value)
Definition Service.h:211
void SetEventFirstSeen(const char *value)
Definition Service.h:115
void SetResourceRole(const char *value)
Definition Service.h:144
void SetArchived(bool value)
Definition Service.h:78
Service & WithEvidence(const Evidence &value)
Definition Service.h:68
void SetFeatureName(Aws::String &&value)
Definition Service.h:198
Service & WithUserFeedback(const Aws::String &value)
Definition Service.h:174
Service & WithServiceName(Aws::String &&value)
Definition Service.h:161
const Aws::String & GetEventLastSeen() const
Definition Service.h:126
Service & WithAdditionalInfo(const ServiceAdditionalInfo &value)
Definition Service.h:187
Service & WithRuntimeDetails(RuntimeDetails &&value)
Definition Service.h:227
const Action & GetAction() const
Definition Service.h:52
Service & WithResourceRole(const Aws::String &value)
Definition Service.h:145
bool FeatureNameHasBeenSet() const
Definition Service.h:196
void SetFeatureName(const char *value)
Definition Service.h:199
const MalwareScanDetails & GetMalwareScanDetails() const
Definition Service.h:246
void SetEventFirstSeen(Aws::String &&value)
Definition Service.h:114
AWS_GUARDDUTY_API Service()
Service & WithEventLastSeen(const Aws::String &value)
Definition Service.h:131
bool EbsVolumeScanDetailsHasBeenSet() const
Definition Service.h:210
void SetDetection(Detection &&value)
Definition Service.h:237
Service & WithRuntimeDetails(const RuntimeDetails &value)
Definition Service.h:226
Service & WithResourceRole(const char *value)
Definition Service.h:147
Service & WithAction(Action &&value)
Definition Service.h:57
Service & WithEbsVolumeScanDetails(EbsVolumeScanDetails &&value)
Definition Service.h:214
bool MalwareScanDetailsHasBeenSet() const
Definition Service.h:247
Service & WithDetectorId(const Aws::String &value)
Definition Service.h:101
Service & WithAction(const Action &value)
Definition Service.h:56
const Aws::String & GetUserFeedback() const
Definition Service.h:169
const EbsVolumeScanDetails & GetEbsVolumeScanDetails() const
Definition Service.h:209
void SetMalwareScanDetails(const MalwareScanDetails &value)
Definition Service.h:248
const Aws::String & GetEventFirstSeen() const
Definition Service.h:111
void SetEventLastSeen(Aws::String &&value)
Definition Service.h:129
void SetEvidence(const Evidence &value)
Definition Service.h:66
Service & WithDetectorId(Aws::String &&value)
Definition Service.h:102
bool ActionHasBeenSet() const
Definition Service.h:53
Service & WithServiceName(const Aws::String &value)
Definition Service.h:160
Service & WithAdditionalInfo(ServiceAdditionalInfo &&value)
Definition Service.h:188
Service & WithEventLastSeen(Aws::String &&value)
Definition Service.h:132
void SetUserFeedback(const Aws::String &value)
Definition Service.h:171
const ServiceAdditionalInfo & GetAdditionalInfo() const
Definition Service.h:183
void SetAdditionalInfo(ServiceAdditionalInfo &&value)
Definition Service.h:186
Service & WithEventFirstSeen(const Aws::String &value)
Definition Service.h:116
void SetResourceRole(const Aws::String &value)
Definition Service.h:142
void SetEvidence(Evidence &&value)
Definition Service.h:67
Service & WithMalwareScanDetails(MalwareScanDetails &&value)
Definition Service.h:251
Service & WithFeatureName(Aws::String &&value)
Definition Service.h:201
const Aws::String & GetServiceName() const
Definition Service.h:155
void SetUserFeedback(const char *value)
Definition Service.h:173
void SetAction(Action &&value)
Definition Service.h:55
const Evidence & GetEvidence() const
Definition Service.h:64
void SetServiceName(const char *value)
Definition Service.h:159
bool EvidenceHasBeenSet() const
Definition Service.h:65
void SetCount(int value)
Definition Service.h:88
const RuntimeDetails & GetRuntimeDetails() const
Definition Service.h:222
Service & WithUserFeedback(Aws::String &&value)
Definition Service.h:175
Service & WithDetectorId(const char *value)
Definition Service.h:103
void SetAdditionalInfo(const ServiceAdditionalInfo &value)
Definition Service.h:185
Service & WithServiceName(const char *value)
Definition Service.h:162
const Aws::String & GetDetectorId() const
Definition Service.h:96
Service & WithMalwareScanDetails(const MalwareScanDetails &value)
Definition Service.h:250
void SetFeatureName(const Aws::String &value)
Definition Service.h:197
Service & WithEvidence(Evidence &&value)
Definition Service.h:69
Service & WithDetection(const Detection &value)
Definition Service.h:238
bool ResourceRoleHasBeenSet() const
Definition Service.h:141
Service & WithFeatureName(const char *value)
Definition Service.h:202
Service & WithFeatureName(const Aws::String &value)
Definition Service.h:200
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventFirstSeen(const Aws::String &value)
Definition Service.h:113
Service & WithEventLastSeen(const char *value)
Definition Service.h:133
void SetRuntimeDetails(RuntimeDetails &&value)
Definition Service.h:225
void SetDetectorId(const Aws::String &value)
Definition Service.h:98
void SetMalwareScanDetails(MalwareScanDetails &&value)
Definition Service.h:249
void SetResourceRole(Aws::String &&value)
Definition Service.h:143
void SetServiceName(const Aws::String &value)
Definition Service.h:157
bool UserFeedbackHasBeenSet() const
Definition Service.h:170
Service & WithEbsVolumeScanDetails(const EbsVolumeScanDetails &value)
Definition Service.h:213
void SetServiceName(Aws::String &&value)
Definition Service.h:158
const Aws::String & GetResourceRole() const
Definition Service.h:140
bool AdditionalInfoHasBeenSet() const
Definition Service.h:184
Service & WithEventFirstSeen(const char *value)
Definition Service.h:118
void SetAction(const Action &value)
Definition Service.h:54
const Aws::String & GetFeatureName() const
Definition Service.h:195
Service & WithCount(int value)
Definition Service.h:89
void SetEventLastSeen(const char *value)
Definition Service.h:130
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue