AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ActionT = Action>
55 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
56 template<typename ActionT = Action>
57 Service& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
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) { m_evidenceHasBeenSet = true; m_evidence = std::forward<EvidenceT>(value); }
68 template<typename EvidenceT = Evidence>
69 Service& WithEvidence(EvidenceT&& value) { SetEvidence(std::forward<EvidenceT>(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 template<typename DetectorIdT = Aws::String>
99 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
100 template<typename DetectorIdT = Aws::String>
101 Service& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
103
105
109 inline const Aws::String& GetEventFirstSeen() const { return m_eventFirstSeen; }
110 inline bool EventFirstSeenHasBeenSet() const { return m_eventFirstSeenHasBeenSet; }
111 template<typename EventFirstSeenT = Aws::String>
112 void SetEventFirstSeen(EventFirstSeenT&& value) { m_eventFirstSeenHasBeenSet = true; m_eventFirstSeen = std::forward<EventFirstSeenT>(value); }
113 template<typename EventFirstSeenT = Aws::String>
114 Service& WithEventFirstSeen(EventFirstSeenT&& value) { SetEventFirstSeen(std::forward<EventFirstSeenT>(value)); return *this;}
116
118
122 inline const Aws::String& GetEventLastSeen() const { return m_eventLastSeen; }
123 inline bool EventLastSeenHasBeenSet() const { return m_eventLastSeenHasBeenSet; }
124 template<typename EventLastSeenT = Aws::String>
125 void SetEventLastSeen(EventLastSeenT&& value) { m_eventLastSeenHasBeenSet = true; m_eventLastSeen = std::forward<EventLastSeenT>(value); }
126 template<typename EventLastSeenT = Aws::String>
127 Service& WithEventLastSeen(EventLastSeenT&& value) { SetEventLastSeen(std::forward<EventLastSeenT>(value)); return *this;}
129
131
134 inline const Aws::String& GetResourceRole() const { return m_resourceRole; }
135 inline bool ResourceRoleHasBeenSet() const { return m_resourceRoleHasBeenSet; }
136 template<typename ResourceRoleT = Aws::String>
137 void SetResourceRole(ResourceRoleT&& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = std::forward<ResourceRoleT>(value); }
138 template<typename ResourceRoleT = Aws::String>
139 Service& WithResourceRole(ResourceRoleT&& value) { SetResourceRole(std::forward<ResourceRoleT>(value)); return *this;}
141
143
147 inline const Aws::String& GetServiceName() const { return m_serviceName; }
148 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
149 template<typename ServiceNameT = Aws::String>
150 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
151 template<typename ServiceNameT = Aws::String>
152 Service& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
154
156
159 inline const Aws::String& GetUserFeedback() const { return m_userFeedback; }
160 inline bool UserFeedbackHasBeenSet() const { return m_userFeedbackHasBeenSet; }
161 template<typename UserFeedbackT = Aws::String>
162 void SetUserFeedback(UserFeedbackT&& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = std::forward<UserFeedbackT>(value); }
163 template<typename UserFeedbackT = Aws::String>
164 Service& WithUserFeedback(UserFeedbackT&& value) { SetUserFeedback(std::forward<UserFeedbackT>(value)); return *this;}
166
168
171 inline const ServiceAdditionalInfo& GetAdditionalInfo() const { return m_additionalInfo; }
172 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
173 template<typename AdditionalInfoT = ServiceAdditionalInfo>
174 void SetAdditionalInfo(AdditionalInfoT&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::forward<AdditionalInfoT>(value); }
175 template<typename AdditionalInfoT = ServiceAdditionalInfo>
176 Service& WithAdditionalInfo(AdditionalInfoT&& value) { SetAdditionalInfo(std::forward<AdditionalInfoT>(value)); return *this;}
178
180
183 inline const Aws::String& GetFeatureName() const { return m_featureName; }
184 inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
185 template<typename FeatureNameT = Aws::String>
186 void SetFeatureName(FeatureNameT&& value) { m_featureNameHasBeenSet = true; m_featureName = std::forward<FeatureNameT>(value); }
187 template<typename FeatureNameT = Aws::String>
188 Service& WithFeatureName(FeatureNameT&& value) { SetFeatureName(std::forward<FeatureNameT>(value)); return *this;}
190
192
195 inline const EbsVolumeScanDetails& GetEbsVolumeScanDetails() const { return m_ebsVolumeScanDetails; }
196 inline bool EbsVolumeScanDetailsHasBeenSet() const { return m_ebsVolumeScanDetailsHasBeenSet; }
197 template<typename EbsVolumeScanDetailsT = EbsVolumeScanDetails>
198 void SetEbsVolumeScanDetails(EbsVolumeScanDetailsT&& value) { m_ebsVolumeScanDetailsHasBeenSet = true; m_ebsVolumeScanDetails = std::forward<EbsVolumeScanDetailsT>(value); }
199 template<typename EbsVolumeScanDetailsT = EbsVolumeScanDetails>
200 Service& WithEbsVolumeScanDetails(EbsVolumeScanDetailsT&& value) { SetEbsVolumeScanDetails(std::forward<EbsVolumeScanDetailsT>(value)); return *this;}
202
204
208 inline const RuntimeDetails& GetRuntimeDetails() const { return m_runtimeDetails; }
209 inline bool RuntimeDetailsHasBeenSet() const { return m_runtimeDetailsHasBeenSet; }
210 template<typename RuntimeDetailsT = RuntimeDetails>
211 void SetRuntimeDetails(RuntimeDetailsT&& value) { m_runtimeDetailsHasBeenSet = true; m_runtimeDetails = std::forward<RuntimeDetailsT>(value); }
212 template<typename RuntimeDetailsT = RuntimeDetails>
213 Service& WithRuntimeDetails(RuntimeDetailsT&& value) { SetRuntimeDetails(std::forward<RuntimeDetailsT>(value)); return *this;}
215
217
220 inline const Detection& GetDetection() const { return m_detection; }
221 inline bool DetectionHasBeenSet() const { return m_detectionHasBeenSet; }
222 template<typename DetectionT = Detection>
223 void SetDetection(DetectionT&& value) { m_detectionHasBeenSet = true; m_detection = std::forward<DetectionT>(value); }
224 template<typename DetectionT = Detection>
225 Service& WithDetection(DetectionT&& value) { SetDetection(std::forward<DetectionT>(value)); return *this;}
227
229
232 inline const MalwareScanDetails& GetMalwareScanDetails() const { return m_malwareScanDetails; }
233 inline bool MalwareScanDetailsHasBeenSet() const { return m_malwareScanDetailsHasBeenSet; }
234 template<typename MalwareScanDetailsT = MalwareScanDetails>
235 void SetMalwareScanDetails(MalwareScanDetailsT&& value) { m_malwareScanDetailsHasBeenSet = true; m_malwareScanDetails = std::forward<MalwareScanDetailsT>(value); }
236 template<typename MalwareScanDetailsT = MalwareScanDetails>
237 Service& WithMalwareScanDetails(MalwareScanDetailsT&& value) { SetMalwareScanDetails(std::forward<MalwareScanDetailsT>(value)); return *this;}
239 private:
240
241 Action m_action;
242 bool m_actionHasBeenSet = false;
243
244 Evidence m_evidence;
245 bool m_evidenceHasBeenSet = false;
246
247 bool m_archived{false};
248 bool m_archivedHasBeenSet = false;
249
250 int m_count{0};
251 bool m_countHasBeenSet = false;
252
253 Aws::String m_detectorId;
254 bool m_detectorIdHasBeenSet = false;
255
256 Aws::String m_eventFirstSeen;
257 bool m_eventFirstSeenHasBeenSet = false;
258
259 Aws::String m_eventLastSeen;
260 bool m_eventLastSeenHasBeenSet = false;
261
262 Aws::String m_resourceRole;
263 bool m_resourceRoleHasBeenSet = false;
264
265 Aws::String m_serviceName;
266 bool m_serviceNameHasBeenSet = false;
267
268 Aws::String m_userFeedback;
269 bool m_userFeedbackHasBeenSet = false;
270
271 ServiceAdditionalInfo m_additionalInfo;
272 bool m_additionalInfoHasBeenSet = false;
273
274 Aws::String m_featureName;
275 bool m_featureNameHasBeenSet = false;
276
277 EbsVolumeScanDetails m_ebsVolumeScanDetails;
278 bool m_ebsVolumeScanDetailsHasBeenSet = false;
279
280 RuntimeDetails m_runtimeDetails;
281 bool m_runtimeDetailsHasBeenSet = false;
282
283 Detection m_detection;
284 bool m_detectionHasBeenSet = false;
285
286 MalwareScanDetails m_malwareScanDetails;
287 bool m_malwareScanDetailsHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace GuardDuty
292} // namespace Aws
Service & WithDetectorId(DetectorIdT &&value)
Definition Service.h:101
bool ServiceNameHasBeenSet() const
Definition Service.h:148
const Detection & GetDetection() const
Definition Service.h:220
bool EventFirstSeenHasBeenSet() const
Definition Service.h:110
AWS_GUARDDUTY_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetAdditionalInfo(AdditionalInfoT &&value)
Definition Service.h:174
void SetResourceRole(ResourceRoleT &&value)
Definition Service.h:137
bool DetectorIdHasBeenSet() const
Definition Service.h:97
bool ArchivedHasBeenSet() const
Definition Service.h:77
bool DetectionHasBeenSet() const
Definition Service.h:221
void SetUserFeedback(UserFeedbackT &&value)
Definition Service.h:162
void SetEventLastSeen(EventLastSeenT &&value)
Definition Service.h:125
AWS_GUARDDUTY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
Service & WithMalwareScanDetails(MalwareScanDetailsT &&value)
Definition Service.h:237
Service & WithArchived(bool value)
Definition Service.h:79
bool RuntimeDetailsHasBeenSet() const
Definition Service.h:209
void SetMalwareScanDetails(MalwareScanDetailsT &&value)
Definition Service.h:235
bool EventLastSeenHasBeenSet() const
Definition Service.h:123
Service & WithResourceRole(ResourceRoleT &&value)
Definition Service.h:139
Service & WithEventLastSeen(EventLastSeenT &&value)
Definition Service.h:127
void SetArchived(bool value)
Definition Service.h:78
void SetRuntimeDetails(RuntimeDetailsT &&value)
Definition Service.h:211
const Aws::String & GetEventLastSeen() const
Definition Service.h:122
const Action & GetAction() const
Definition Service.h:52
Service & WithEventFirstSeen(EventFirstSeenT &&value)
Definition Service.h:114
bool FeatureNameHasBeenSet() const
Definition Service.h:184
Service & WithFeatureName(FeatureNameT &&value)
Definition Service.h:188
const MalwareScanDetails & GetMalwareScanDetails() const
Definition Service.h:232
bool EbsVolumeScanDetailsHasBeenSet() const
Definition Service.h:196
AWS_GUARDDUTY_API Service()=default
void SetAction(ActionT &&value)
Definition Service.h:55
bool MalwareScanDetailsHasBeenSet() const
Definition Service.h:233
const Aws::String & GetUserFeedback() const
Definition Service.h:159
const EbsVolumeScanDetails & GetEbsVolumeScanDetails() const
Definition Service.h:195
const Aws::String & GetEventFirstSeen() const
Definition Service.h:109
bool ActionHasBeenSet() const
Definition Service.h:53
void SetServiceName(ServiceNameT &&value)
Definition Service.h:150
const ServiceAdditionalInfo & GetAdditionalInfo() const
Definition Service.h:171
void SetEbsVolumeScanDetails(EbsVolumeScanDetailsT &&value)
Definition Service.h:198
Service & WithDetection(DetectionT &&value)
Definition Service.h:225
const Aws::String & GetServiceName() const
Definition Service.h:147
Service & WithEvidence(EvidenceT &&value)
Definition Service.h:69
const Evidence & GetEvidence() const
Definition Service.h:64
Service & WithUserFeedback(UserFeedbackT &&value)
Definition Service.h:164
Service & WithAdditionalInfo(AdditionalInfoT &&value)
Definition Service.h:176
Service & WithRuntimeDetails(RuntimeDetailsT &&value)
Definition Service.h:213
bool EvidenceHasBeenSet() const
Definition Service.h:65
void SetCount(int value)
Definition Service.h:88
const RuntimeDetails & GetRuntimeDetails() const
Definition Service.h:208
void SetDetectorId(DetectorIdT &&value)
Definition Service.h:99
const Aws::String & GetDetectorId() const
Definition Service.h:96
void SetEvidence(EvidenceT &&value)
Definition Service.h:67
Service & WithServiceName(ServiceNameT &&value)
Definition Service.h:152
bool ResourceRoleHasBeenSet() const
Definition Service.h:135
void SetDetection(DetectionT &&value)
Definition Service.h:223
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Service & WithAction(ActionT &&value)
Definition Service.h:57
void SetFeatureName(FeatureNameT &&value)
Definition Service.h:186
bool UserFeedbackHasBeenSet() const
Definition Service.h:160
const Aws::String & GetResourceRole() const
Definition Service.h:134
bool AdditionalInfoHasBeenSet() const
Definition Service.h:172
Service & WithEbsVolumeScanDetails(EbsVolumeScanDetailsT &&value)
Definition Service.h:200
const Aws::String & GetFeatureName() const
Definition Service.h:183
Service & WithCount(int value)
Definition Service.h:89
void SetEventFirstSeen(EventFirstSeenT &&value)
Definition Service.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue