AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Actor.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/ActorProcess.h>
10#include <aws/guardduty/model/Session.h>
11#include <aws/guardduty/model/User.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
31class Actor {
32 public:
33 AWS_GUARDDUTY_API Actor() = default;
34 AWS_GUARDDUTY_API Actor(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Actor& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 Actor& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
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) {
64 m_userHasBeenSet = true;
65 m_user = std::forward<UserT>(value);
66 }
67 template <typename UserT = User>
68 Actor& WithUser(UserT&& value) {
69 SetUser(std::forward<UserT>(value));
70 return *this;
71 }
73
75
78 inline const Session& GetSession() const { return m_session; }
79 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
80 template <typename SessionT = Session>
81 void SetSession(SessionT&& value) {
82 m_sessionHasBeenSet = true;
83 m_session = std::forward<SessionT>(value);
84 }
85 template <typename SessionT = Session>
86 Actor& WithSession(SessionT&& value) {
87 SetSession(std::forward<SessionT>(value));
88 return *this;
89 }
91
93
98 inline const ActorProcess& GetProcess() const { return m_process; }
99 inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; }
100 template <typename ProcessT = ActorProcess>
101 void SetProcess(ProcessT&& value) {
102 m_processHasBeenSet = true;
103 m_process = std::forward<ProcessT>(value);
104 }
105 template <typename ProcessT = ActorProcess>
106 Actor& WithProcess(ProcessT&& value) {
107 SetProcess(std::forward<ProcessT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_id;
113
114 User m_user;
115
116 Session m_session;
117
118 ActorProcess m_process;
119 bool m_idHasBeenSet = false;
120 bool m_userHasBeenSet = false;
121 bool m_sessionHasBeenSet = false;
122 bool m_processHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace GuardDuty
127} // namespace Aws
const ActorProcess & GetProcess() const
Definition Actor.h:98
bool IdHasBeenSet() const
Definition Actor.h:43
bool SessionHasBeenSet() const
Definition Actor.h:79
const User & GetUser() const
Definition Actor.h:60
Actor & WithId(IdT &&value)
Definition Actor.h:50
bool UserHasBeenSet() const
Definition Actor.h:61
void SetSession(SessionT &&value)
Definition Actor.h:81
const Session & GetSession() const
Definition Actor.h:78
void SetUser(UserT &&value)
Definition Actor.h:63
AWS_GUARDDUTY_API Actor()=default
void SetProcess(ProcessT &&value)
Definition Actor.h:101
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
bool ProcessHasBeenSet() const
Definition Actor.h:99
Actor & WithProcess(ProcessT &&value)
Definition Actor.h:106
AWS_GUARDDUTY_API Actor(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Actor.h:42
AWS_GUARDDUTY_API Actor & operator=(Aws::Utils::Json::JsonView jsonValue)
Actor & WithUser(UserT &&value)
Definition Actor.h:68
Actor & WithSession(SessionT &&value)
Definition Actor.h:86
void SetId(IdT &&value)
Definition Actor.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue