AWS SDK for C++  1.9.110
AWS SDK for C++
Service.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GuardDuty
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Action& GetAction() const{ return m_action; }
47 
51  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 
56  inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
57 
61  inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
62 
66  inline Service& WithAction(const Action& value) { SetAction(value); return *this;}
67 
71  inline Service& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
72 
73 
77  inline const Evidence& GetEvidence() const{ return m_evidence; }
78 
82  inline bool EvidenceHasBeenSet() const { return m_evidenceHasBeenSet; }
83 
87  inline void SetEvidence(const Evidence& value) { m_evidenceHasBeenSet = true; m_evidence = value; }
88 
92  inline void SetEvidence(Evidence&& value) { m_evidenceHasBeenSet = true; m_evidence = std::move(value); }
93 
97  inline Service& WithEvidence(const Evidence& value) { SetEvidence(value); return *this;}
98 
102  inline Service& WithEvidence(Evidence&& value) { SetEvidence(std::move(value)); return *this;}
103 
104 
108  inline bool GetArchived() const{ return m_archived; }
109 
113  inline bool ArchivedHasBeenSet() const { return m_archivedHasBeenSet; }
114 
118  inline void SetArchived(bool value) { m_archivedHasBeenSet = true; m_archived = value; }
119 
123  inline Service& WithArchived(bool value) { SetArchived(value); return *this;}
124 
125 
129  inline int GetCount() const{ return m_count; }
130 
134  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
135 
139  inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
140 
144  inline Service& WithCount(int value) { SetCount(value); return *this;}
145 
146 
150  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
151 
155  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
156 
160  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
161 
165  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
166 
170  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
171 
175  inline Service& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
176 
180  inline Service& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
181 
185  inline Service& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
186 
187 
192  inline const Aws::String& GetEventFirstSeen() const{ return m_eventFirstSeen; }
193 
198  inline bool EventFirstSeenHasBeenSet() const { return m_eventFirstSeenHasBeenSet; }
199 
204  inline void SetEventFirstSeen(const Aws::String& value) { m_eventFirstSeenHasBeenSet = true; m_eventFirstSeen = value; }
205 
210  inline void SetEventFirstSeen(Aws::String&& value) { m_eventFirstSeenHasBeenSet = true; m_eventFirstSeen = std::move(value); }
211 
216  inline void SetEventFirstSeen(const char* value) { m_eventFirstSeenHasBeenSet = true; m_eventFirstSeen.assign(value); }
217 
222  inline Service& WithEventFirstSeen(const Aws::String& value) { SetEventFirstSeen(value); return *this;}
223 
228  inline Service& WithEventFirstSeen(Aws::String&& value) { SetEventFirstSeen(std::move(value)); return *this;}
229 
234  inline Service& WithEventFirstSeen(const char* value) { SetEventFirstSeen(value); return *this;}
235 
236 
241  inline const Aws::String& GetEventLastSeen() const{ return m_eventLastSeen; }
242 
247  inline bool EventLastSeenHasBeenSet() const { return m_eventLastSeenHasBeenSet; }
248 
253  inline void SetEventLastSeen(const Aws::String& value) { m_eventLastSeenHasBeenSet = true; m_eventLastSeen = value; }
254 
259  inline void SetEventLastSeen(Aws::String&& value) { m_eventLastSeenHasBeenSet = true; m_eventLastSeen = std::move(value); }
260 
265  inline void SetEventLastSeen(const char* value) { m_eventLastSeenHasBeenSet = true; m_eventLastSeen.assign(value); }
266 
271  inline Service& WithEventLastSeen(const Aws::String& value) { SetEventLastSeen(value); return *this;}
272 
277  inline Service& WithEventLastSeen(Aws::String&& value) { SetEventLastSeen(std::move(value)); return *this;}
278 
283  inline Service& WithEventLastSeen(const char* value) { SetEventLastSeen(value); return *this;}
284 
285 
289  inline const Aws::String& GetResourceRole() const{ return m_resourceRole; }
290 
294  inline bool ResourceRoleHasBeenSet() const { return m_resourceRoleHasBeenSet; }
295 
299  inline void SetResourceRole(const Aws::String& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = value; }
300 
304  inline void SetResourceRole(Aws::String&& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = std::move(value); }
305 
309  inline void SetResourceRole(const char* value) { m_resourceRoleHasBeenSet = true; m_resourceRole.assign(value); }
310 
314  inline Service& WithResourceRole(const Aws::String& value) { SetResourceRole(value); return *this;}
315 
319  inline Service& WithResourceRole(Aws::String&& value) { SetResourceRole(std::move(value)); return *this;}
320 
324  inline Service& WithResourceRole(const char* value) { SetResourceRole(value); return *this;}
325 
326 
330  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
331 
335  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
336 
340  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
341 
345  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
346 
350  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
351 
355  inline Service& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
356 
360  inline Service& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
361 
365  inline Service& WithServiceName(const char* value) { SetServiceName(value); return *this;}
366 
367 
371  inline const Aws::String& GetUserFeedback() const{ return m_userFeedback; }
372 
376  inline bool UserFeedbackHasBeenSet() const { return m_userFeedbackHasBeenSet; }
377 
381  inline void SetUserFeedback(const Aws::String& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = value; }
382 
386  inline void SetUserFeedback(Aws::String&& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = std::move(value); }
387 
391  inline void SetUserFeedback(const char* value) { m_userFeedbackHasBeenSet = true; m_userFeedback.assign(value); }
392 
396  inline Service& WithUserFeedback(const Aws::String& value) { SetUserFeedback(value); return *this;}
397 
401  inline Service& WithUserFeedback(Aws::String&& value) { SetUserFeedback(std::move(value)); return *this;}
402 
406  inline Service& WithUserFeedback(const char* value) { SetUserFeedback(value); return *this;}
407 
408  private:
409 
410  Action m_action;
411  bool m_actionHasBeenSet;
412 
413  Evidence m_evidence;
414  bool m_evidenceHasBeenSet;
415 
416  bool m_archived;
417  bool m_archivedHasBeenSet;
418 
419  int m_count;
420  bool m_countHasBeenSet;
421 
422  Aws::String m_detectorId;
423  bool m_detectorIdHasBeenSet;
424 
425  Aws::String m_eventFirstSeen;
426  bool m_eventFirstSeenHasBeenSet;
427 
428  Aws::String m_eventLastSeen;
429  bool m_eventLastSeenHasBeenSet;
430 
431  Aws::String m_resourceRole;
432  bool m_resourceRoleHasBeenSet;
433 
434  Aws::String m_serviceName;
435  bool m_serviceNameHasBeenSet;
436 
437  Aws::String m_userFeedback;
438  bool m_userFeedbackHasBeenSet;
439  };
440 
441 } // namespace Model
442 } // namespace GuardDuty
443 } // namespace Aws
Aws::GuardDuty::Model::Service::EventFirstSeenHasBeenSet
bool EventFirstSeenHasBeenSet() const
Definition: Service.h:198
Aws::GuardDuty::Model::Service::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: Service.h:345
Aws::GuardDuty::Model::Service::EvidenceHasBeenSet
bool EvidenceHasBeenSet() const
Definition: Service.h:82
Aws::GuardDuty::Model::Service::CountHasBeenSet
bool CountHasBeenSet() const
Definition: Service.h:134
Aws::GuardDuty::Model::Service::WithResourceRole
Service & WithResourceRole(Aws::String &&value)
Definition: Service.h:319
Aws::GuardDuty::Model::Service::SetResourceRole
void SetResourceRole(const char *value)
Definition: Service.h:309
Aws::GuardDuty::Model::Service::GetAction
const Action & GetAction() const
Definition: Service.h:46
Aws::GuardDuty::Model::Service::SetServiceName
void SetServiceName(const char *value)
Definition: Service.h:350
Aws::GuardDuty::Model::Service::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: Service.h:335
Aws::GuardDuty::Model::Service::WithEvidence
Service & WithEvidence(Evidence &&value)
Definition: Service.h:102
Action.h
Aws::GuardDuty::Model::Service::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::Service::WithCount
Service & WithCount(int value)
Definition: Service.h:144
Aws::GuardDuty::Model::Service::GetEventFirstSeen
const Aws::String & GetEventFirstSeen() const
Definition: Service.h:192
Aws::GuardDuty::Model::Evidence
Definition: Evidence.h:34
Aws::GuardDuty::Model::Service::GetResourceRole
const Aws::String & GetResourceRole() const
Definition: Service.h:289
Aws::GuardDuty::Model::Service::ResourceRoleHasBeenSet
bool ResourceRoleHasBeenSet() const
Definition: Service.h:294
Aws::GuardDuty::Model::Service::SetEventLastSeen
void SetEventLastSeen(const Aws::String &value)
Definition: Service.h:253
Evidence.h
Aws::GuardDuty::Model::Service::GetUserFeedback
const Aws::String & GetUserFeedback() const
Definition: Service.h:371
Aws::GuardDuty::Model::Service::WithAction
Service & WithAction(Action &&value)
Definition: Service.h:71
Aws::GuardDuty::Model::Service::SetEvidence
void SetEvidence(const Evidence &value)
Definition: Service.h:87
Aws::GuardDuty::Model::Service::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: Service.h:165
Aws::GuardDuty::Model::Service::WithDetectorId
Service & WithDetectorId(const char *value)
Definition: Service.h:185
Aws::GuardDuty::Model::Service::WithUserFeedback
Service & WithUserFeedback(Aws::String &&value)
Definition: Service.h:401
Aws::GuardDuty::Model::Service::SetArchived
void SetArchived(bool value)
Definition: Service.h:118
Aws::GuardDuty::Model::Service::WithEventLastSeen
Service & WithEventLastSeen(const Aws::String &value)
Definition: Service.h:271
Aws::GuardDuty::Model::Service::WithEvidence
Service & WithEvidence(const Evidence &value)
Definition: Service.h:97
Aws::GuardDuty::Model::Service::WithServiceName
Service & WithServiceName(Aws::String &&value)
Definition: Service.h:360
Aws::GuardDuty::Model::Service::UserFeedbackHasBeenSet
bool UserFeedbackHasBeenSet() const
Definition: Service.h:376
Aws::GuardDuty::Model::Service::GetCount
int GetCount() const
Definition: Service.h:129
Aws::GuardDuty::Model::Service::GetEventLastSeen
const Aws::String & GetEventLastSeen() const
Definition: Service.h:241
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Service::SetResourceRole
void SetResourceRole(const Aws::String &value)
Definition: Service.h:299
Aws::GuardDuty::Model::Service::SetEventLastSeen
void SetEventLastSeen(Aws::String &&value)
Definition: Service.h:259
Aws::GuardDuty::Model::Service::SetEventFirstSeen
void SetEventFirstSeen(const Aws::String &value)
Definition: Service.h:204
Aws::GuardDuty::Model::Service::operator=
Service & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Service::ArchivedHasBeenSet
bool ArchivedHasBeenSet() const
Definition: Service.h:113
Aws::GuardDuty::Model::Service::SetEventLastSeen
void SetEventLastSeen(const char *value)
Definition: Service.h:265
Aws::GuardDuty::Model::Service::SetUserFeedback
void SetUserFeedback(Aws::String &&value)
Definition: Service.h:386
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Service::SetUserFeedback
void SetUserFeedback(const char *value)
Definition: Service.h:391
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GuardDuty::Model::Service::WithServiceName
Service & WithServiceName(const char *value)
Definition: Service.h:365
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::Service
Definition: Service.h:35
Aws::GuardDuty::Model::Service::GetEvidence
const Evidence & GetEvidence() const
Definition: Service.h:77
Aws::GuardDuty::Model::Service::WithEventLastSeen
Service & WithEventLastSeen(Aws::String &&value)
Definition: Service.h:277
Aws::GuardDuty::Model::Service::WithResourceRole
Service & WithResourceRole(const char *value)
Definition: Service.h:324
Aws::GuardDuty::Model::Service::GetArchived
bool GetArchived() const
Definition: Service.h:108
Aws::GuardDuty::Model::Action
Definition: Action.h:36
Aws::GuardDuty::Model::Service::WithUserFeedback
Service & WithUserFeedback(const Aws::String &value)
Definition: Service.h:396
Aws::GuardDuty::Model::Service::Service
Service(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Service::WithArchived
Service & WithArchived(bool value)
Definition: Service.h:123
Aws::GuardDuty::Model::Service::WithEventFirstSeen
Service & WithEventFirstSeen(Aws::String &&value)
Definition: Service.h:228
Aws::GuardDuty::Model::Service::SetEventFirstSeen
void SetEventFirstSeen(Aws::String &&value)
Definition: Service.h:210
Aws::GuardDuty::Model::Service::SetDetectorId
void SetDetectorId(const char *value)
Definition: Service.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::Service::SetAction
void SetAction(const Action &value)
Definition: Service.h:56
Aws::GuardDuty::Model::Service::WithAction
Service & WithAction(const Action &value)
Definition: Service.h:66
Aws::GuardDuty::Model::Service::SetEventFirstSeen
void SetEventFirstSeen(const char *value)
Definition: Service.h:216
Aws::GuardDuty::Model::Service::WithDetectorId
Service & WithDetectorId(const Aws::String &value)
Definition: Service.h:175
Aws::GuardDuty::Model::Service::SetUserFeedback
void SetUserFeedback(const Aws::String &value)
Definition: Service.h:381
Aws::GuardDuty::Model::Service::EventLastSeenHasBeenSet
bool EventLastSeenHasBeenSet() const
Definition: Service.h:247
Aws::GuardDuty::Model::Service::Service
Service()
Aws::GuardDuty::Model::Service::SetResourceRole
void SetResourceRole(Aws::String &&value)
Definition: Service.h:304
Aws::GuardDuty::Model::Service::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: Service.h:160
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::Service::WithEventFirstSeen
Service & WithEventFirstSeen(const Aws::String &value)
Definition: Service.h:222
Aws::GuardDuty::Model::Service::WithDetectorId
Service & WithDetectorId(Aws::String &&value)
Definition: Service.h:180
Aws::GuardDuty::Model::Service::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: Service.h:150
Aws::GuardDuty::Model::Service::SetEvidence
void SetEvidence(Evidence &&value)
Definition: Service.h:92
Aws::GuardDuty::Model::Service::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: Service.h:155
Aws::GuardDuty::Model::Service::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: Service.h:340
Aws::GuardDuty::Model::Service::WithEventLastSeen
Service & WithEventLastSeen(const char *value)
Definition: Service.h:283
Aws::GuardDuty::Model::Service::SetAction
void SetAction(Action &&value)
Definition: Service.h:61
Aws::GuardDuty::Model::Service::SetCount
void SetCount(int value)
Definition: Service.h:139
Aws::GuardDuty::Model::Service::WithServiceName
Service & WithServiceName(const Aws::String &value)
Definition: Service.h:355
Aws::GuardDuty::Model::Service::GetServiceName
const Aws::String & GetServiceName() const
Definition: Service.h:330
Aws::GuardDuty::Model::Service::WithUserFeedback
Service & WithUserFeedback(const char *value)
Definition: Service.h:406
Aws::GuardDuty::Model::Service::WithEventFirstSeen
Service & WithEventFirstSeen(const char *value)
Definition: Service.h:234
Aws::GuardDuty::Model::Service::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: Service.h:51
Aws::GuardDuty::Model::Service::WithResourceRole
Service & WithResourceRole(const Aws::String &value)
Definition: Service.h:314