AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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