AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
TaskSummary.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/TaskStatistics.h>
9#include <aws/context/model/TaskStatus.h>
10#include <aws/context/model/TaskStatusReasonCode.h>
11#include <aws/context/model/TaskType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace Context {
25namespace Model {
26
36 public:
37 AWS_CONTEXT_API TaskSummary() = default;
38 AWS_CONTEXT_API TaskSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_CONTEXT_API TaskSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
55 TaskSummary& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetArn() const { return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 template <typename ArnT = Aws::String>
68 void SetArn(ArnT&& value) {
69 m_arnHasBeenSet = true;
70 m_arn = std::forward<ArnT>(value);
71 }
72 template <typename ArnT = Aws::String>
73 TaskSummary& WithArn(ArnT&& value) {
74 SetArn(std::forward<ArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetAgentContextId() const { return m_agentContextId; }
84 inline bool AgentContextIdHasBeenSet() const { return m_agentContextIdHasBeenSet; }
85 template <typename AgentContextIdT = Aws::String>
86 void SetAgentContextId(AgentContextIdT&& value) {
87 m_agentContextIdHasBeenSet = true;
88 m_agentContextId = std::forward<AgentContextIdT>(value);
89 }
90 template <typename AgentContextIdT = Aws::String>
91 TaskSummary& WithAgentContextId(AgentContextIdT&& value) {
92 SetAgentContextId(std::forward<AgentContextIdT>(value));
93 return *this;
94 }
96
98
103 inline TaskType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(TaskType value) {
106 m_typeHasBeenSet = true;
107 m_type = value;
108 }
110 SetType(value);
111 return *this;
112 }
114
116
122 inline TaskStatus GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
124 inline void SetStatus(TaskStatus value) {
125 m_statusHasBeenSet = true;
126 m_status = value;
127 }
129 SetStatus(value);
130 return *this;
131 }
133
135
138 inline const Aws::String& GetDescription() const { return m_description; }
139 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
140 template <typename DescriptionT = Aws::String>
141 void SetDescription(DescriptionT&& value) {
142 m_descriptionHasBeenSet = true;
143 m_description = std::forward<DescriptionT>(value);
144 }
145 template <typename DescriptionT = Aws::String>
146 TaskSummary& WithDescription(DescriptionT&& value) {
147 SetDescription(std::forward<DescriptionT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
157 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
158 template <typename CreatedAtT = Aws::Utils::DateTime>
159 void SetCreatedAt(CreatedAtT&& value) {
160 m_createdAtHasBeenSet = true;
161 m_createdAt = std::forward<CreatedAtT>(value);
162 }
163 template <typename CreatedAtT = Aws::Utils::DateTime>
164 TaskSummary& WithCreatedAt(CreatedAtT&& value) {
165 SetCreatedAt(std::forward<CreatedAtT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
176 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
177 template <typename UpdatedAtT = Aws::Utils::DateTime>
178 void SetUpdatedAt(UpdatedAtT&& value) {
179 m_updatedAtHasBeenSet = true;
180 m_updatedAt = std::forward<UpdatedAtT>(value);
181 }
182 template <typename UpdatedAtT = Aws::Utils::DateTime>
183 TaskSummary& WithUpdatedAt(UpdatedAtT&& value) {
184 SetUpdatedAt(std::forward<UpdatedAtT>(value));
185 return *this;
186 }
188
190
201 inline TaskStatusReasonCode GetStatusReasonCode() const { return m_statusReasonCode; }
202 inline bool StatusReasonCodeHasBeenSet() const { return m_statusReasonCodeHasBeenSet; }
204 m_statusReasonCodeHasBeenSet = true;
205 m_statusReasonCode = value;
206 }
208 SetStatusReasonCode(value);
209 return *this;
210 }
212
214
217 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
218 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
219 template <typename StatusMessageT = Aws::String>
220 void SetStatusMessage(StatusMessageT&& value) {
221 m_statusMessageHasBeenSet = true;
222 m_statusMessage = std::forward<StatusMessageT>(value);
223 }
224 template <typename StatusMessageT = Aws::String>
225 TaskSummary& WithStatusMessage(StatusMessageT&& value) {
226 SetStatusMessage(std::forward<StatusMessageT>(value));
227 return *this;
228 }
230
232
237 inline const TaskStatistics& GetStatistics() const { return m_statistics; }
238 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
239 template <typename StatisticsT = TaskStatistics>
240 void SetStatistics(StatisticsT&& value) {
241 m_statisticsHasBeenSet = true;
242 m_statistics = std::forward<StatisticsT>(value);
243 }
244 template <typename StatisticsT = TaskStatistics>
245 TaskSummary& WithStatistics(StatisticsT&& value) {
246 SetStatistics(std::forward<StatisticsT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_id;
252
253 Aws::String m_arn;
254
255 Aws::String m_agentContextId;
256
258
260
261 Aws::String m_description;
262
263 Aws::Utils::DateTime m_createdAt{};
264
265 Aws::Utils::DateTime m_updatedAt{};
266
268
269 Aws::String m_statusMessage;
270
271 TaskStatistics m_statistics;
272 bool m_idHasBeenSet = false;
273 bool m_arnHasBeenSet = false;
274 bool m_agentContextIdHasBeenSet = false;
275 bool m_typeHasBeenSet = false;
276 bool m_statusHasBeenSet = false;
277 bool m_descriptionHasBeenSet = false;
278 bool m_createdAtHasBeenSet = false;
279 bool m_updatedAtHasBeenSet = false;
280 bool m_statusReasonCodeHasBeenSet = false;
281 bool m_statusMessageHasBeenSet = false;
282 bool m_statisticsHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace Context
287} // namespace Aws
TaskSummary & WithDescription(DescriptionT &&value)
TaskSummary & WithType(TaskType value)
const Aws::String & GetAgentContextId() const
Definition TaskSummary.h:83
TaskSummary & WithStatusMessage(StatusMessageT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
TaskSummary & WithStatistics(StatisticsT &&value)
const TaskStatistics & GetStatistics() const
TaskSummary & WithUpdatedAt(UpdatedAtT &&value)
TaskSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetStatusMessage() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetStatusReasonCode(TaskStatusReasonCode value)
AWS_CONTEXT_API TaskSummary()=default
void SetStatistics(StatisticsT &&value)
void SetDescription(DescriptionT &&value)
AWS_CONTEXT_API TaskSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TaskSummary & WithAgentContextId(AgentContextIdT &&value)
Definition TaskSummary.h:91
TaskSummary & WithStatus(TaskStatus value)
void SetStatus(TaskStatus value)
void SetStatusMessage(StatusMessageT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
TaskSummary & WithId(IdT &&value)
Definition TaskSummary.h:55
const Aws::String & GetDescription() const
TaskSummary & WithStatusReasonCode(TaskStatusReasonCode value)
const Aws::String & GetArn() const
Definition TaskSummary.h:65
AWS_CONTEXT_API TaskSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetId() const
Definition TaskSummary.h:47
TaskStatusReasonCode GetStatusReasonCode() const
void SetAgentContextId(AgentContextIdT &&value)
Definition TaskSummary.h:86
void SetType(TaskType value)
TaskSummary & WithArn(ArnT &&value)
Definition TaskSummary.h:73
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String