AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
Task.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/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/Category.h>
12#include <aws/securityagent/model/Endpoint.h>
13#include <aws/securityagent/model/LogLocation.h>
14#include <aws/securityagent/model/RiskType.h>
15#include <aws/securityagent/model/TaskExecutionStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityAgent {
27namespace Model {
28
36class Task {
37 public:
38 AWS_SECURITYAGENT_API Task() = default;
39 AWS_SECURITYAGENT_API Task(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYAGENT_API Task& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetTaskId() const { return m_taskId; }
48 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
49 template <typename TaskIdT = Aws::String>
50 void SetTaskId(TaskIdT&& value) {
51 m_taskIdHasBeenSet = true;
52 m_taskId = std::forward<TaskIdT>(value);
53 }
54 template <typename TaskIdT = Aws::String>
55 Task& WithTaskId(TaskIdT&& value) {
56 SetTaskId(std::forward<TaskIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetPentestId() const { return m_pentestId; }
66 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
67 template <typename PentestIdT = Aws::String>
68 void SetPentestId(PentestIdT&& value) {
69 m_pentestIdHasBeenSet = true;
70 m_pentestId = std::forward<PentestIdT>(value);
71 }
72 template <typename PentestIdT = Aws::String>
73 Task& WithPentestId(PentestIdT&& value) {
74 SetPentestId(std::forward<PentestIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetPentestJobId() const { return m_pentestJobId; }
84 inline bool PentestJobIdHasBeenSet() const { return m_pentestJobIdHasBeenSet; }
85 template <typename PentestJobIdT = Aws::String>
86 void SetPentestJobId(PentestJobIdT&& value) {
87 m_pentestJobIdHasBeenSet = true;
88 m_pentestJobId = std::forward<PentestJobIdT>(value);
89 }
90 template <typename PentestJobIdT = Aws::String>
91 Task& WithPentestJobId(PentestJobIdT&& value) {
92 SetPentestJobId(std::forward<PentestJobIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
102 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
103 template <typename AgentSpaceIdT = Aws::String>
104 void SetAgentSpaceId(AgentSpaceIdT&& value) {
105 m_agentSpaceIdHasBeenSet = true;
106 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
107 }
108 template <typename AgentSpaceIdT = Aws::String>
109 Task& WithAgentSpaceId(AgentSpaceIdT&& value) {
110 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetTitle() const { return m_title; }
120 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
121 template <typename TitleT = Aws::String>
122 void SetTitle(TitleT&& value) {
123 m_titleHasBeenSet = true;
124 m_title = std::forward<TitleT>(value);
125 }
126 template <typename TitleT = Aws::String>
127 Task& WithTitle(TitleT&& value) {
128 SetTitle(std::forward<TitleT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetDescription() const { return m_description; }
138 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
139 template <typename DescriptionT = Aws::String>
140 void SetDescription(DescriptionT&& value) {
141 m_descriptionHasBeenSet = true;
142 m_description = std::forward<DescriptionT>(value);
143 }
144 template <typename DescriptionT = Aws::String>
145 Task& WithDescription(DescriptionT&& value) {
146 SetDescription(std::forward<DescriptionT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
156 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
157 template <typename CategoriesT = Aws::Vector<Category>>
158 void SetCategories(CategoriesT&& value) {
159 m_categoriesHasBeenSet = true;
160 m_categories = std::forward<CategoriesT>(value);
161 }
162 template <typename CategoriesT = Aws::Vector<Category>>
163 Task& WithCategories(CategoriesT&& value) {
164 SetCategories(std::forward<CategoriesT>(value));
165 return *this;
166 }
167 template <typename CategoriesT = Category>
168 Task& AddCategories(CategoriesT&& value) {
169 m_categoriesHasBeenSet = true;
170 m_categories.emplace_back(std::forward<CategoriesT>(value));
171 return *this;
172 }
174
176
179 inline RiskType GetRiskType() const { return m_riskType; }
180 inline bool RiskTypeHasBeenSet() const { return m_riskTypeHasBeenSet; }
181 inline void SetRiskType(RiskType value) {
182 m_riskTypeHasBeenSet = true;
183 m_riskType = value;
184 }
185 inline Task& WithRiskType(RiskType value) {
186 SetRiskType(value);
187 return *this;
188 }
190
192
195 inline const Endpoint& GetTargetEndpoint() const { return m_targetEndpoint; }
196 inline bool TargetEndpointHasBeenSet() const { return m_targetEndpointHasBeenSet; }
197 template <typename TargetEndpointT = Endpoint>
198 void SetTargetEndpoint(TargetEndpointT&& value) {
199 m_targetEndpointHasBeenSet = true;
200 m_targetEndpoint = std::forward<TargetEndpointT>(value);
201 }
202 template <typename TargetEndpointT = Endpoint>
203 Task& WithTargetEndpoint(TargetEndpointT&& value) {
204 SetTargetEndpoint(std::forward<TargetEndpointT>(value));
205 return *this;
206 }
208
210
213 inline TaskExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
214 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
216 m_executionStatusHasBeenSet = true;
217 m_executionStatus = value;
218 }
220 SetExecutionStatus(value);
221 return *this;
222 }
224
226
229 inline const LogLocation& GetLogsLocation() const { return m_logsLocation; }
230 inline bool LogsLocationHasBeenSet() const { return m_logsLocationHasBeenSet; }
231 template <typename LogsLocationT = LogLocation>
232 void SetLogsLocation(LogsLocationT&& value) {
233 m_logsLocationHasBeenSet = true;
234 m_logsLocation = std::forward<LogsLocationT>(value);
235 }
236 template <typename LogsLocationT = LogLocation>
237 Task& WithLogsLocation(LogsLocationT&& value) {
238 SetLogsLocation(std::forward<LogsLocationT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
248 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
249 template <typename CreatedAtT = Aws::Utils::DateTime>
250 void SetCreatedAt(CreatedAtT&& value) {
251 m_createdAtHasBeenSet = true;
252 m_createdAt = std::forward<CreatedAtT>(value);
253 }
254 template <typename CreatedAtT = Aws::Utils::DateTime>
255 Task& WithCreatedAt(CreatedAtT&& value) {
256 SetCreatedAt(std::forward<CreatedAtT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
266 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
267 template <typename UpdatedAtT = Aws::Utils::DateTime>
268 void SetUpdatedAt(UpdatedAtT&& value) {
269 m_updatedAtHasBeenSet = true;
270 m_updatedAt = std::forward<UpdatedAtT>(value);
271 }
272 template <typename UpdatedAtT = Aws::Utils::DateTime>
273 Task& WithUpdatedAt(UpdatedAtT&& value) {
274 SetUpdatedAt(std::forward<UpdatedAtT>(value));
275 return *this;
276 }
278 private:
279 Aws::String m_taskId;
280
281 Aws::String m_pentestId;
282
283 Aws::String m_pentestJobId;
284
285 Aws::String m_agentSpaceId;
286
287 Aws::String m_title;
288
289 Aws::String m_description;
290
291 Aws::Vector<Category> m_categories;
292
293 RiskType m_riskType{RiskType::NOT_SET};
294
295 Endpoint m_targetEndpoint;
296
298
299 LogLocation m_logsLocation;
300
301 Aws::Utils::DateTime m_createdAt{};
302
303 Aws::Utils::DateTime m_updatedAt{};
304 bool m_taskIdHasBeenSet = false;
305 bool m_pentestIdHasBeenSet = false;
306 bool m_pentestJobIdHasBeenSet = false;
307 bool m_agentSpaceIdHasBeenSet = false;
308 bool m_titleHasBeenSet = false;
309 bool m_descriptionHasBeenSet = false;
310 bool m_categoriesHasBeenSet = false;
311 bool m_riskTypeHasBeenSet = false;
312 bool m_targetEndpointHasBeenSet = false;
313 bool m_executionStatusHasBeenSet = false;
314 bool m_logsLocationHasBeenSet = false;
315 bool m_createdAtHasBeenSet = false;
316 bool m_updatedAtHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace SecurityAgent
321} // namespace Aws
Task & WithCreatedAt(CreatedAtT &&value)
Definition Task.h:255
void SetCategories(CategoriesT &&value)
Definition Task.h:158
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Task.h:247
Task & WithLogsLocation(LogsLocationT &&value)
Definition Task.h:237
Task & WithDescription(DescriptionT &&value)
Definition Task.h:145
bool TitleHasBeenSet() const
Definition Task.h:120
AWS_SECURITYAGENT_API Task()=default
Task & WithRiskType(RiskType value)
Definition Task.h:185
bool PentestJobIdHasBeenSet() const
Definition Task.h:84
Task & WithTitle(TitleT &&value)
Definition Task.h:127
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition Task.h:104
const Aws::Vector< Category > & GetCategories() const
Definition Task.h:155
void SetExecutionStatus(TaskExecutionStatus value)
Definition Task.h:215
Task & WithTargetEndpoint(TargetEndpointT &&value)
Definition Task.h:203
void SetLogsLocation(LogsLocationT &&value)
Definition Task.h:232
const Aws::String & GetTaskId() const
Definition Task.h:47
bool CategoriesHasBeenSet() const
Definition Task.h:156
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Task.h:265
void SetCreatedAt(CreatedAtT &&value)
Definition Task.h:250
void SetDescription(DescriptionT &&value)
Definition Task.h:140
Task & WithTaskId(TaskIdT &&value)
Definition Task.h:55
Task & WithCategories(CategoriesT &&value)
Definition Task.h:163
bool RiskTypeHasBeenSet() const
Definition Task.h:180
Task & WithUpdatedAt(UpdatedAtT &&value)
Definition Task.h:273
bool TaskIdHasBeenSet() const
Definition Task.h:48
const Aws::String & GetTitle() const
Definition Task.h:119
bool ExecutionStatusHasBeenSet() const
Definition Task.h:214
void SetRiskType(RiskType value)
Definition Task.h:181
bool CreatedAtHasBeenSet() const
Definition Task.h:248
AWS_SECURITYAGENT_API Task(Aws::Utils::Json::JsonView jsonValue)
bool PentestIdHasBeenSet() const
Definition Task.h:66
RiskType GetRiskType() const
Definition Task.h:179
const Aws::String & GetAgentSpaceId() const
Definition Task.h:101
void SetTitle(TitleT &&value)
Definition Task.h:122
Task & WithPentestId(PentestIdT &&value)
Definition Task.h:73
bool AgentSpaceIdHasBeenSet() const
Definition Task.h:102
void SetTargetEndpoint(TargetEndpointT &&value)
Definition Task.h:198
const LogLocation & GetLogsLocation() const
Definition Task.h:229
bool TargetEndpointHasBeenSet() const
Definition Task.h:196
const Aws::String & GetDescription() const
Definition Task.h:137
bool DescriptionHasBeenSet() const
Definition Task.h:138
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPentestJobId(PentestJobIdT &&value)
Definition Task.h:86
const Aws::String & GetPentestJobId() const
Definition Task.h:83
Task & WithPentestJobId(PentestJobIdT &&value)
Definition Task.h:91
void SetTaskId(TaskIdT &&value)
Definition Task.h:50
bool LogsLocationHasBeenSet() const
Definition Task.h:230
const Endpoint & GetTargetEndpoint() const
Definition Task.h:195
Task & WithExecutionStatus(TaskExecutionStatus value)
Definition Task.h:219
TaskExecutionStatus GetExecutionStatus() const
Definition Task.h:213
void SetUpdatedAt(UpdatedAtT &&value)
Definition Task.h:268
AWS_SECURITYAGENT_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
Task & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition Task.h:109
bool UpdatedAtHasBeenSet() const
Definition Task.h:266
void SetPentestId(PentestIdT &&value)
Definition Task.h:68
Task & AddCategories(CategoriesT &&value)
Definition Task.h:168
const Aws::String & GetPentestId() const
Definition Task.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue