7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/Priority.h>
12#include <aws/devops-agent/model/ReferenceOutput.h>
13#include <aws/devops-agent/model/TaskStatus.h>
14#include <aws/devops-agent/model/TaskType.h>
25namespace DevOpsAgent {
36 AWS_DEVOPSAGENT_API
Task() =
default;
47 template <
typename AgentSpaceIdT = Aws::String>
49 m_agentSpaceIdHasBeenSet =
true;
50 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
52 template <
typename AgentSpaceIdT = Aws::String>
65 template <
typename TaskIdT = Aws::String>
67 m_taskIdHasBeenSet =
true;
68 m_taskId = std::forward<TaskIdT>(value);
70 template <
typename TaskIdT = Aws::String>
83 template <
typename ExecutionIdT = Aws::String>
85 m_executionIdHasBeenSet =
true;
86 m_executionId = std::forward<ExecutionIdT>(value);
88 template <
typename ExecutionIdT = Aws::String>
101 template <
typename TitleT = Aws::String>
103 m_titleHasBeenSet =
true;
104 m_title = std::forward<TitleT>(value);
106 template <
typename TitleT = Aws::String>
108 SetTitle(std::forward<TitleT>(value));
119 template <
typename DescriptionT = Aws::String>
121 m_descriptionHasBeenSet =
true;
122 m_description = std::forward<DescriptionT>(value);
124 template <
typename DescriptionT = Aws::String>
137 template <
typename ReferenceT = ReferenceOutput>
139 m_referenceHasBeenSet =
true;
140 m_reference = std::forward<ReferenceT>(value);
142 template <
typename ReferenceT = ReferenceOutput>
156 m_taskTypeHasBeenSet =
true;
172 m_priorityHasBeenSet =
true;
188 m_statusHasBeenSet =
true;
203 template <
typename CreatedAtT = Aws::Utils::DateTime>
205 m_createdAtHasBeenSet =
true;
206 m_createdAt = std::forward<CreatedAtT>(value);
208 template <
typename CreatedAtT = Aws::Utils::DateTime>
221 template <
typename UpdatedAtT = Aws::Utils::DateTime>
223 m_updatedAtHasBeenSet =
true;
224 m_updatedAt = std::forward<UpdatedAtT>(value);
226 template <
typename UpdatedAtT = Aws::Utils::DateTime>
240 m_versionHasBeenSet =
true;
255 template <
typename SupportMetadataT = Aws::Utils::Document>
257 m_supportMetadataHasBeenSet =
true;
258 m_supportMetadata = std::forward<SupportMetadataT>(value);
260 template <
typename SupportMetadataT = Aws::Utils::Document>
273 template <
typename MetadataT = Aws::Utils::Document>
275 m_metadataHasBeenSet =
true;
276 m_metadata = std::forward<MetadataT>(value);
278 template <
typename MetadataT = Aws::Utils::Document>
291 template <
typename PrimaryTaskIdT = Aws::String>
293 m_primaryTaskIdHasBeenSet =
true;
294 m_primaryTaskId = std::forward<PrimaryTaskIdT>(value);
296 template <
typename PrimaryTaskIdT = Aws::String>
309 template <
typename StatusReasonT = Aws::String>
311 m_statusReasonHasBeenSet =
true;
312 m_statusReason = std::forward<StatusReasonT>(value);
314 template <
typename StatusReasonT = Aws::String>
328 m_hasLinkedTasksHasBeenSet =
true;
329 m_hasLinkedTasks = value;
369 bool m_hasLinkedTasks{
false};
370 bool m_agentSpaceIdHasBeenSet =
false;
371 bool m_taskIdHasBeenSet =
false;
372 bool m_executionIdHasBeenSet =
false;
373 bool m_titleHasBeenSet =
false;
374 bool m_descriptionHasBeenSet =
false;
375 bool m_referenceHasBeenSet =
false;
376 bool m_taskTypeHasBeenSet =
false;
377 bool m_priorityHasBeenSet =
false;
378 bool m_statusHasBeenSet =
false;
379 bool m_createdAtHasBeenSet =
false;
380 bool m_updatedAtHasBeenSet =
false;
381 bool m_versionHasBeenSet =
false;
382 bool m_supportMetadataHasBeenSet =
false;
383 bool m_metadataHasBeenSet =
false;
384 bool m_primaryTaskIdHasBeenSet =
false;
385 bool m_statusReasonHasBeenSet =
false;
386 bool m_hasLinkedTasksHasBeenSet =
false;
Aws::Utils::DocumentView GetMetadata() const
bool StatusHasBeenSet() const
Task & WithTitle(TitleT &&value)
Task & WithMetadata(MetadataT &&value)
TaskType GetTaskType() const
TaskStatus GetStatus() const
const Aws::String & GetExecutionId() const
const Aws::String & GetAgentSpaceId() const
bool HasLinkedTasksHasBeenSet() const
Aws::Utils::DocumentView GetSupportMetadata() const
const Aws::String & GetTaskId() const
void SetPrimaryTaskId(PrimaryTaskIdT &&value)
const Aws::String & GetTitle() const
void SetVersion(int value)
void SetUpdatedAt(UpdatedAtT &&value)
AWS_DEVOPSAGENT_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatusReason(StatusReasonT &&value)
Task & WithTaskId(TaskIdT &&value)
AWS_DEVOPSAGENT_API Task()=default
bool ReferenceHasBeenSet() const
void SetSupportMetadata(SupportMetadataT &&value)
Task & WithStatusReason(StatusReasonT &&value)
const Aws::String & GetStatusReason() const
bool TaskIdHasBeenSet() const
bool ExecutionIdHasBeenSet() const
void SetTaskType(TaskType value)
bool UpdatedAtHasBeenSet() const
Task & WithHasLinkedTasks(bool value)
void SetAgentSpaceId(AgentSpaceIdT &&value)
Task & WithDescription(DescriptionT &&value)
Task & WithVersion(int value)
AWS_DEVOPSAGENT_API Task(Aws::Utils::Json::JsonView jsonValue)
Task & WithTaskType(TaskType value)
Task & WithPrimaryTaskId(PrimaryTaskIdT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
bool TaskTypeHasBeenSet() const
void SetExecutionId(ExecutionIdT &&value)
Task & WithPriority(Priority value)
bool VersionHasBeenSet() const
bool CreatedAtHasBeenSet() const
Priority GetPriority() const
bool PriorityHasBeenSet() const
bool PrimaryTaskIdHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetTaskId(TaskIdT &&value)
bool MetadataHasBeenSet() const
void SetTitle(TitleT &&value)
bool DescriptionHasBeenSet() const
void SetPriority(Priority value)
Task & WithReference(ReferenceT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
bool AgentSpaceIdHasBeenSet() const
bool GetHasLinkedTasks() const
bool SupportMetadataHasBeenSet() const
void SetStatus(TaskStatus value)
void SetDescription(DescriptionT &&value)
Task & WithStatus(TaskStatus value)
bool TitleHasBeenSet() const
const ReferenceOutput & GetReference() const
Task & WithAgentSpaceId(AgentSpaceIdT &&value)
Task & WithCreatedAt(CreatedAtT &&value)
Task & WithSupportMetadata(SupportMetadataT &&value)
bool StatusReasonHasBeenSet() const
void SetMetadata(MetadataT &&value)
const Aws::String & GetDescription() const
void SetHasLinkedTasks(bool value)
Task & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetPrimaryTaskId() const
Task & WithExecutionId(ExecutionIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetReference(ReferenceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue