AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Task.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/TaskPriority.h>
9#include <aws/assurance/model/TaskStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace Assurance {
23namespace Model {
24
30class Task {
31 public:
32 AWS_ASSURANCE_API Task() = default;
33 AWS_ASSURANCE_API Task(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ASSURANCE_API Task& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetEnvironment() const { return m_environment; }
42 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
43 template <typename EnvironmentT = Aws::String>
44 void SetEnvironment(EnvironmentT&& value) {
45 m_environmentHasBeenSet = true;
46 m_environment = std::forward<EnvironmentT>(value);
47 }
48 template <typename EnvironmentT = Aws::String>
49 Task& WithEnvironment(EnvironmentT&& value) {
50 SetEnvironment(std::forward<EnvironmentT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetProject() const { return m_project; }
60 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
61 template <typename ProjectT = Aws::String>
62 void SetProject(ProjectT&& value) {
63 m_projectHasBeenSet = true;
64 m_project = std::forward<ProjectT>(value);
65 }
66 template <typename ProjectT = Aws::String>
67 Task& WithProject(ProjectT&& value) {
68 SetProject(std::forward<ProjectT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFramework() const { return m_framework; }
78 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
79 template <typename FrameworkT = Aws::String>
80 void SetFramework(FrameworkT&& value) {
81 m_frameworkHasBeenSet = true;
82 m_framework = std::forward<FrameworkT>(value);
83 }
84 template <typename FrameworkT = Aws::String>
85 Task& WithFramework(FrameworkT&& value) {
86 SetFramework(std::forward<FrameworkT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
96 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
97 template <typename FrameworkVersionT = Aws::String>
98 void SetFrameworkVersion(FrameworkVersionT&& value) {
99 m_frameworkVersionHasBeenSet = true;
100 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
101 }
102 template <typename FrameworkVersionT = Aws::String>
103 Task& WithFrameworkVersion(FrameworkVersionT&& value) {
104 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetControlId() const { return m_controlId; }
115 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
116 template <typename ControlIdT = Aws::String>
117 void SetControlId(ControlIdT&& value) {
118 m_controlIdHasBeenSet = true;
119 m_controlId = std::forward<ControlIdT>(value);
120 }
121 template <typename ControlIdT = Aws::String>
122 Task& WithControlId(ControlIdT&& value) {
123 SetControlId(std::forward<ControlIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetTaskId() const { return m_taskId; }
133 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
134 template <typename TaskIdT = Aws::String>
135 void SetTaskId(TaskIdT&& value) {
136 m_taskIdHasBeenSet = true;
137 m_taskId = std::forward<TaskIdT>(value);
138 }
139 template <typename TaskIdT = Aws::String>
140 Task& WithTaskId(TaskIdT&& value) {
141 SetTaskId(std::forward<TaskIdT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetTitle() const { return m_title; }
151 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
152 template <typename TitleT = Aws::String>
153 void SetTitle(TitleT&& value) {
154 m_titleHasBeenSet = true;
155 m_title = std::forward<TitleT>(value);
156 }
157 template <typename TitleT = Aws::String>
158 Task& WithTitle(TitleT&& value) {
159 SetTitle(std::forward<TitleT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetDescription() const { return m_description; }
169 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
170 template <typename DescriptionT = Aws::String>
171 void SetDescription(DescriptionT&& value) {
172 m_descriptionHasBeenSet = true;
173 m_description = std::forward<DescriptionT>(value);
174 }
175 template <typename DescriptionT = Aws::String>
176 Task& WithDescription(DescriptionT&& value) {
177 SetDescription(std::forward<DescriptionT>(value));
178 return *this;
179 }
181
183
186 inline TaskStatus GetStatus() const { return m_status; }
187 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
188 inline void SetStatus(TaskStatus value) {
189 m_statusHasBeenSet = true;
190 m_status = value;
191 }
192 inline Task& WithStatus(TaskStatus value) {
193 SetStatus(value);
194 return *this;
195 }
197
199
202 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
203 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
204 template <typename CreatedByT = Aws::String>
205 void SetCreatedBy(CreatedByT&& value) {
206 m_createdByHasBeenSet = true;
207 m_createdBy = std::forward<CreatedByT>(value);
208 }
209 template <typename CreatedByT = Aws::String>
210 Task& WithCreatedBy(CreatedByT&& value) {
211 SetCreatedBy(std::forward<CreatedByT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetDueAt() const { return m_dueAt; }
221 inline bool DueAtHasBeenSet() const { return m_dueAtHasBeenSet; }
222 template <typename DueAtT = Aws::Utils::DateTime>
223 void SetDueAt(DueAtT&& value) {
224 m_dueAtHasBeenSet = true;
225 m_dueAt = std::forward<DueAtT>(value);
226 }
227 template <typename DueAtT = Aws::Utils::DateTime>
228 Task& WithDueAt(DueAtT&& value) {
229 SetDueAt(std::forward<DueAtT>(value));
230 return *this;
231 }
233
235
238 inline TaskPriority GetPriority() const { return m_priority; }
239 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
240 inline void SetPriority(TaskPriority value) {
241 m_priorityHasBeenSet = true;
242 m_priority = value;
243 }
245 SetPriority(value);
246 return *this;
247 }
249
251
254 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
255 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
256 template <typename CreatedAtT = Aws::Utils::DateTime>
257 void SetCreatedAt(CreatedAtT&& value) {
258 m_createdAtHasBeenSet = true;
259 m_createdAt = std::forward<CreatedAtT>(value);
260 }
261 template <typename CreatedAtT = Aws::Utils::DateTime>
262 Task& WithCreatedAt(CreatedAtT&& value) {
263 SetCreatedAt(std::forward<CreatedAtT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
273 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
274 template <typename UpdatedAtT = Aws::Utils::DateTime>
275 void SetUpdatedAt(UpdatedAtT&& value) {
276 m_updatedAtHasBeenSet = true;
277 m_updatedAt = std::forward<UpdatedAtT>(value);
278 }
279 template <typename UpdatedAtT = Aws::Utils::DateTime>
280 Task& WithUpdatedAt(UpdatedAtT&& value) {
281 SetUpdatedAt(std::forward<UpdatedAtT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_environment;
287
288 Aws::String m_project;
289
290 Aws::String m_framework;
291
292 Aws::String m_frameworkVersion;
293
294 Aws::String m_controlId;
295
296 Aws::String m_taskId;
297
298 Aws::String m_title;
299
300 Aws::String m_description;
301
303
304 Aws::String m_createdBy;
305
306 Aws::Utils::DateTime m_dueAt{};
307
309
310 Aws::Utils::DateTime m_createdAt{};
311
312 Aws::Utils::DateTime m_updatedAt{};
313 bool m_environmentHasBeenSet = false;
314 bool m_projectHasBeenSet = false;
315 bool m_frameworkHasBeenSet = false;
316 bool m_frameworkVersionHasBeenSet = false;
317 bool m_controlIdHasBeenSet = false;
318 bool m_taskIdHasBeenSet = false;
319 bool m_titleHasBeenSet = false;
320 bool m_descriptionHasBeenSet = false;
321 bool m_statusHasBeenSet = false;
322 bool m_createdByHasBeenSet = false;
323 bool m_dueAtHasBeenSet = false;
324 bool m_priorityHasBeenSet = false;
325 bool m_createdAtHasBeenSet = false;
326 bool m_updatedAtHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace Assurance
331} // namespace Aws
AWS_ASSURANCE_API Task & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetTaskId(TaskIdT &&value)
Definition Task.h:135
void SetControlId(ControlIdT &&value)
Definition Task.h:117
bool EnvironmentHasBeenSet() const
Definition Task.h:42
const Aws::String & GetProject() const
Definition Task.h:59
void SetPriority(TaskPriority value)
Definition Task.h:240
bool DueAtHasBeenSet() const
Definition Task.h:221
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Task.h:254
bool CreatedAtHasBeenSet() const
Definition Task.h:255
bool UpdatedAtHasBeenSet() const
Definition Task.h:273
Task & WithUpdatedAt(UpdatedAtT &&value)
Definition Task.h:280
Task & WithDescription(DescriptionT &&value)
Definition Task.h:176
bool TaskIdHasBeenSet() const
Definition Task.h:133
Task & WithFramework(FrameworkT &&value)
Definition Task.h:85
Task & WithTaskId(TaskIdT &&value)
Definition Task.h:140
Task & WithProject(ProjectT &&value)
Definition Task.h:67
Task & WithPriority(TaskPriority value)
Definition Task.h:244
bool FrameworkHasBeenSet() const
Definition Task.h:78
void SetUpdatedAt(UpdatedAtT &&value)
Definition Task.h:275
bool TitleHasBeenSet() const
Definition Task.h:151
const Aws::String & GetControlId() const
Definition Task.h:114
Task & WithEnvironment(EnvironmentT &&value)
Definition Task.h:49
const Aws::String & GetFrameworkVersion() const
Definition Task.h:95
AWS_ASSURANCE_API Task()=default
const Aws::String & GetTitle() const
Definition Task.h:150
void SetFramework(FrameworkT &&value)
Definition Task.h:80
bool ControlIdHasBeenSet() const
Definition Task.h:115
Task & WithTitle(TitleT &&value)
Definition Task.h:158
Task & WithStatus(TaskStatus value)
Definition Task.h:192
const Aws::String & GetCreatedBy() const
Definition Task.h:202
const Aws::String & GetTaskId() const
Definition Task.h:132
bool DescriptionHasBeenSet() const
Definition Task.h:169
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetDescription(DescriptionT &&value)
Definition Task.h:171
const Aws::String & GetFramework() const
Definition Task.h:77
bool ProjectHasBeenSet() const
Definition Task.h:60
Task & WithCreatedBy(CreatedByT &&value)
Definition Task.h:210
void SetFrameworkVersion(FrameworkVersionT &&value)
Definition Task.h:98
bool FrameworkVersionHasBeenSet() const
Definition Task.h:96
void SetCreatedAt(CreatedAtT &&value)
Definition Task.h:257
Task & WithFrameworkVersion(FrameworkVersionT &&value)
Definition Task.h:103
const Aws::String & GetEnvironment() const
Definition Task.h:41
Task & WithCreatedAt(CreatedAtT &&value)
Definition Task.h:262
AWS_ASSURANCE_API Task(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetCreatedBy(CreatedByT &&value)
Definition Task.h:205
TaskStatus GetStatus() const
Definition Task.h:186
void SetTitle(TitleT &&value)
Definition Task.h:153
void SetStatus(TaskStatus value)
Definition Task.h:188
const Aws::String & GetDescription() const
Definition Task.h:168
void SetEnvironment(EnvironmentT &&value)
Definition Task.h:44
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Task.h:272
TaskPriority GetPriority() const
Definition Task.h:238
bool StatusHasBeenSet() const
Definition Task.h:187
void SetDueAt(DueAtT &&value)
Definition Task.h:223
bool CreatedByHasBeenSet() const
Definition Task.h:203
const Aws::Utils::DateTime & GetDueAt() const
Definition Task.h:220
Task & WithControlId(ControlIdT &&value)
Definition Task.h:122
Task & WithDueAt(DueAtT &&value)
Definition Task.h:228
bool PriorityHasBeenSet() const
Definition Task.h:239
void SetProject(ProjectT &&value)
Definition Task.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String