AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Actor.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/User.h>
10#include <aws/guardduty/model/Session.h>
11#include <aws/guardduty/model/ActorProcess.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty
25{
26namespace Model
27{
28
35 class Actor
36 {
37 public:
38 AWS_GUARDDUTY_API Actor() = default;
39 AWS_GUARDDUTY_API Actor(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Actor& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 Actor& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const User& GetUser() const { return m_user; }
61 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
62 template<typename UserT = User>
63 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
64 template<typename UserT = User>
65 Actor& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
67
69
72 inline const Session& GetSession() const { return m_session; }
73 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
74 template<typename SessionT = Session>
75 void SetSession(SessionT&& value) { m_sessionHasBeenSet = true; m_session = std::forward<SessionT>(value); }
76 template<typename SessionT = Session>
77 Actor& WithSession(SessionT&& value) { SetSession(std::forward<SessionT>(value)); return *this;}
79
81
86 inline const ActorProcess& GetProcess() const { return m_process; }
87 inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; }
88 template<typename ProcessT = ActorProcess>
89 void SetProcess(ProcessT&& value) { m_processHasBeenSet = true; m_process = std::forward<ProcessT>(value); }
90 template<typename ProcessT = ActorProcess>
91 Actor& WithProcess(ProcessT&& value) { SetProcess(std::forward<ProcessT>(value)); return *this;}
93 private:
94
95 Aws::String m_id;
96 bool m_idHasBeenSet = false;
97
98 User m_user;
99 bool m_userHasBeenSet = false;
100
101 Session m_session;
102 bool m_sessionHasBeenSet = false;
103
104 ActorProcess m_process;
105 bool m_processHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace GuardDuty
110} // namespace Aws
const ActorProcess & GetProcess() const
Definition Actor.h:86
bool IdHasBeenSet() const
Definition Actor.h:49
bool SessionHasBeenSet() const
Definition Actor.h:73
const User & GetUser() const
Definition Actor.h:60
Actor & WithId(IdT &&value)
Definition Actor.h:53
bool UserHasBeenSet() const
Definition Actor.h:61
void SetSession(SessionT &&value)
Definition Actor.h:75
const Session & GetSession() const
Definition Actor.h:72
void SetUser(UserT &&value)
Definition Actor.h:63
AWS_GUARDDUTY_API Actor()=default
void SetProcess(ProcessT &&value)
Definition Actor.h:89
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
bool ProcessHasBeenSet() const
Definition Actor.h:87
Actor & WithProcess(ProcessT &&value)
Definition Actor.h:91
AWS_GUARDDUTY_API Actor(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Actor.h:48
AWS_GUARDDUTY_API Actor & operator=(Aws::Utils::Json::JsonView jsonValue)
Actor & WithUser(UserT &&value)
Definition Actor.h:65
Actor & WithSession(SessionT &&value)
Definition Actor.h:77
void SetId(IdT &&value)
Definition Actor.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue