AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ProcessDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/LineageObject.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
31 public:
32 AWS_GUARDDUTY_API ProcessDetails() = default;
33 AWS_GUARDDUTY_API ProcessDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ProcessDetails& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetExecutablePath() const { return m_executablePath; }
60 inline bool ExecutablePathHasBeenSet() const { return m_executablePathHasBeenSet; }
61 template <typename ExecutablePathT = Aws::String>
62 void SetExecutablePath(ExecutablePathT&& value) {
63 m_executablePathHasBeenSet = true;
64 m_executablePath = std::forward<ExecutablePathT>(value);
65 }
66 template <typename ExecutablePathT = Aws::String>
67 ProcessDetails& WithExecutablePath(ExecutablePathT&& value) {
68 SetExecutablePath(std::forward<ExecutablePathT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetExecutableSha256() const { return m_executableSha256; }
78 inline bool ExecutableSha256HasBeenSet() const { return m_executableSha256HasBeenSet; }
79 template <typename ExecutableSha256T = Aws::String>
80 void SetExecutableSha256(ExecutableSha256T&& value) {
81 m_executableSha256HasBeenSet = true;
82 m_executableSha256 = std::forward<ExecutableSha256T>(value);
83 }
84 template <typename ExecutableSha256T = Aws::String>
85 ProcessDetails& WithExecutableSha256(ExecutableSha256T&& value) {
86 SetExecutableSha256(std::forward<ExecutableSha256T>(value));
87 return *this;
88 }
90
92
95 inline int GetNamespacePid() const { return m_namespacePid; }
96 inline bool NamespacePidHasBeenSet() const { return m_namespacePidHasBeenSet; }
97 inline void SetNamespacePid(int value) {
98 m_namespacePidHasBeenSet = true;
99 m_namespacePid = value;
100 }
101 inline ProcessDetails& WithNamespacePid(int value) {
102 SetNamespacePid(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetPwd() const { return m_pwd; }
112 inline bool PwdHasBeenSet() const { return m_pwdHasBeenSet; }
113 template <typename PwdT = Aws::String>
114 void SetPwd(PwdT&& value) {
115 m_pwdHasBeenSet = true;
116 m_pwd = std::forward<PwdT>(value);
117 }
118 template <typename PwdT = Aws::String>
119 ProcessDetails& WithPwd(PwdT&& value) {
120 SetPwd(std::forward<PwdT>(value));
121 return *this;
122 }
124
126
129 inline int GetPid() const { return m_pid; }
130 inline bool PidHasBeenSet() const { return m_pidHasBeenSet; }
131 inline void SetPid(int value) {
132 m_pidHasBeenSet = true;
133 m_pid = value;
134 }
135 inline ProcessDetails& WithPid(int value) {
136 SetPid(value);
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
146 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
147 template <typename StartTimeT = Aws::Utils::DateTime>
148 void SetStartTime(StartTimeT&& value) {
149 m_startTimeHasBeenSet = true;
150 m_startTime = std::forward<StartTimeT>(value);
151 }
152 template <typename StartTimeT = Aws::Utils::DateTime>
153 ProcessDetails& WithStartTime(StartTimeT&& value) {
154 SetStartTime(std::forward<StartTimeT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetUuid() const { return m_uuid; }
164 inline bool UuidHasBeenSet() const { return m_uuidHasBeenSet; }
165 template <typename UuidT = Aws::String>
166 void SetUuid(UuidT&& value) {
167 m_uuidHasBeenSet = true;
168 m_uuid = std::forward<UuidT>(value);
169 }
170 template <typename UuidT = Aws::String>
171 ProcessDetails& WithUuid(UuidT&& value) {
172 SetUuid(std::forward<UuidT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::String& GetParentUuid() const { return m_parentUuid; }
183 inline bool ParentUuidHasBeenSet() const { return m_parentUuidHasBeenSet; }
184 template <typename ParentUuidT = Aws::String>
185 void SetParentUuid(ParentUuidT&& value) {
186 m_parentUuidHasBeenSet = true;
187 m_parentUuid = std::forward<ParentUuidT>(value);
188 }
189 template <typename ParentUuidT = Aws::String>
190 ProcessDetails& WithParentUuid(ParentUuidT&& value) {
191 SetParentUuid(std::forward<ParentUuidT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetUser() const { return m_user; }
201 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
202 template <typename UserT = Aws::String>
203 void SetUser(UserT&& value) {
204 m_userHasBeenSet = true;
205 m_user = std::forward<UserT>(value);
206 }
207 template <typename UserT = Aws::String>
208 ProcessDetails& WithUser(UserT&& value) {
209 SetUser(std::forward<UserT>(value));
210 return *this;
211 }
213
215
218 inline int GetUserId() const { return m_userId; }
219 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
220 inline void SetUserId(int value) {
221 m_userIdHasBeenSet = true;
222 m_userId = value;
223 }
224 inline ProcessDetails& WithUserId(int value) {
225 SetUserId(value);
226 return *this;
227 }
229
231
234 inline int GetEuid() const { return m_euid; }
235 inline bool EuidHasBeenSet() const { return m_euidHasBeenSet; }
236 inline void SetEuid(int value) {
237 m_euidHasBeenSet = true;
238 m_euid = value;
239 }
240 inline ProcessDetails& WithEuid(int value) {
241 SetEuid(value);
242 return *this;
243 }
245
247
250 inline const Aws::Vector<LineageObject>& GetLineage() const { return m_lineage; }
251 inline bool LineageHasBeenSet() const { return m_lineageHasBeenSet; }
252 template <typename LineageT = Aws::Vector<LineageObject>>
253 void SetLineage(LineageT&& value) {
254 m_lineageHasBeenSet = true;
255 m_lineage = std::forward<LineageT>(value);
256 }
257 template <typename LineageT = Aws::Vector<LineageObject>>
258 ProcessDetails& WithLineage(LineageT&& value) {
259 SetLineage(std::forward<LineageT>(value));
260 return *this;
261 }
262 template <typename LineageT = LineageObject>
263 ProcessDetails& AddLineage(LineageT&& value) {
264 m_lineageHasBeenSet = true;
265 m_lineage.emplace_back(std::forward<LineageT>(value));
266 return *this;
267 }
269 private:
270 Aws::String m_name;
271
272 Aws::String m_executablePath;
273
274 Aws::String m_executableSha256;
275
276 int m_namespacePid{0};
277
278 Aws::String m_pwd;
279
280 int m_pid{0};
281
282 Aws::Utils::DateTime m_startTime{};
283
284 Aws::String m_uuid;
285
286 Aws::String m_parentUuid;
287
288 Aws::String m_user;
289
290 int m_userId{0};
291
292 int m_euid{0};
293
295 bool m_nameHasBeenSet = false;
296 bool m_executablePathHasBeenSet = false;
297 bool m_executableSha256HasBeenSet = false;
298 bool m_namespacePidHasBeenSet = false;
299 bool m_pwdHasBeenSet = false;
300 bool m_pidHasBeenSet = false;
301 bool m_startTimeHasBeenSet = false;
302 bool m_uuidHasBeenSet = false;
303 bool m_parentUuidHasBeenSet = false;
304 bool m_userHasBeenSet = false;
305 bool m_userIdHasBeenSet = false;
306 bool m_euidHasBeenSet = false;
307 bool m_lineageHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace GuardDuty
312} // namespace Aws
ProcessDetails & WithExecutableSha256(ExecutableSha256T &&value)
ProcessDetails & WithUserId(int value)
void SetStartTime(StartTimeT &&value)
const Aws::String & GetParentUuid() const
ProcessDetails & WithParentUuid(ParentUuidT &&value)
ProcessDetails & WithStartTime(StartTimeT &&value)
ProcessDetails & WithUser(UserT &&value)
ProcessDetails & WithLineage(LineageT &&value)
ProcessDetails & WithEuid(int value)
AWS_GUARDDUTY_API ProcessDetails()=default
ProcessDetails & WithNamespacePid(int value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPwd() const
AWS_GUARDDUTY_API ProcessDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetExecutableSha256() const
ProcessDetails & WithName(NameT &&value)
AWS_GUARDDUTY_API ProcessDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParentUuid(ParentUuidT &&value)
void SetExecutableSha256(ExecutableSha256T &&value)
const Aws::String & GetUuid() const
ProcessDetails & AddLineage(LineageT &&value)
const Aws::Vector< LineageObject > & GetLineage() const
const Aws::String & GetName() const
const Aws::String & GetUser() const
const Aws::Utils::DateTime & GetStartTime() const
ProcessDetails & WithExecutablePath(ExecutablePathT &&value)
const Aws::String & GetExecutablePath() const
ProcessDetails & WithPwd(PwdT &&value)
void SetExecutablePath(ExecutablePathT &&value)
ProcessDetails & WithUuid(UuidT &&value)
ProcessDetails & WithPid(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue