AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskSummary.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/deadline/model/TaskRunStatus.h>
11#include <aws/deadline/model/TaskTargetRunStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/deadline/model/TaskParameterValue.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace deadline
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_DEADLINE_API TaskSummary();
40 AWS_DEADLINE_API TaskSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEADLINE_API TaskSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetTaskId() const{ return m_taskId; }
50 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
51 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
52 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
53 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
54 inline TaskSummary& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
55 inline TaskSummary& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
56 inline TaskSummary& WithTaskId(const char* value) { SetTaskId(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
64 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
65 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
66 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
67 inline TaskSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
68 inline TaskSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
76 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
77 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
78 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
79 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
80 inline TaskSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
81 inline TaskSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
82 inline TaskSummary& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
84
86
89 inline const TaskRunStatus& GetRunStatus() const{ return m_runStatus; }
90 inline bool RunStatusHasBeenSet() const { return m_runStatusHasBeenSet; }
91 inline void SetRunStatus(const TaskRunStatus& value) { m_runStatusHasBeenSet = true; m_runStatus = value; }
92 inline void SetRunStatus(TaskRunStatus&& value) { m_runStatusHasBeenSet = true; m_runStatus = std::move(value); }
93 inline TaskSummary& WithRunStatus(const TaskRunStatus& value) { SetRunStatus(value); return *this;}
94 inline TaskSummary& WithRunStatus(TaskRunStatus&& value) { SetRunStatus(std::move(value)); return *this;}
96
98
101 inline const TaskTargetRunStatus& GetTargetRunStatus() const{ return m_targetRunStatus; }
102 inline bool TargetRunStatusHasBeenSet() const { return m_targetRunStatusHasBeenSet; }
103 inline void SetTargetRunStatus(const TaskTargetRunStatus& value) { m_targetRunStatusHasBeenSet = true; m_targetRunStatus = value; }
104 inline void SetTargetRunStatus(TaskTargetRunStatus&& value) { m_targetRunStatusHasBeenSet = true; m_targetRunStatus = std::move(value); }
105 inline TaskSummary& WithTargetRunStatus(const TaskTargetRunStatus& value) { SetTargetRunStatus(value); return *this;}
106 inline TaskSummary& WithTargetRunStatus(TaskTargetRunStatus&& value) { SetTargetRunStatus(std::move(value)); return *this;}
108
110
113 inline int GetFailureRetryCount() const{ return m_failureRetryCount; }
114 inline bool FailureRetryCountHasBeenSet() const { return m_failureRetryCountHasBeenSet; }
115 inline void SetFailureRetryCount(int value) { m_failureRetryCountHasBeenSet = true; m_failureRetryCount = value; }
116 inline TaskSummary& WithFailureRetryCount(int value) { SetFailureRetryCount(value); return *this;}
118
120
123 inline const Aws::Map<Aws::String, TaskParameterValue>& GetParameters() const{ return m_parameters; }
124 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
125 inline void SetParameters(const Aws::Map<Aws::String, TaskParameterValue>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
126 inline void SetParameters(Aws::Map<Aws::String, TaskParameterValue>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
128 inline TaskSummary& WithParameters(Aws::Map<Aws::String, TaskParameterValue>&& value) { SetParameters(std::move(value)); return *this;}
129 inline TaskSummary& AddParameters(const Aws::String& key, const TaskParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
130 inline TaskSummary& AddParameters(Aws::String&& key, const TaskParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
131 inline TaskSummary& AddParameters(const Aws::String& key, TaskParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
132 inline TaskSummary& AddParameters(Aws::String&& key, TaskParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
133 inline TaskSummary& AddParameters(const char* key, TaskParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
134 inline TaskSummary& AddParameters(const char* key, const TaskParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
136
138
141 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
142 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
143 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
144 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
145 inline TaskSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
146 inline TaskSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
154 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
155 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
156 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
157 inline TaskSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
158 inline TaskSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
160
162
165 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
166 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
167 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
168 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
169 inline TaskSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
170 inline TaskSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
172
174
177 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
178 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
179 inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; }
180 inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); }
181 inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); }
182 inline TaskSummary& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
183 inline TaskSummary& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
184 inline TaskSummary& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
186
188
191 inline const Aws::String& GetLatestSessionActionId() const{ return m_latestSessionActionId; }
192 inline bool LatestSessionActionIdHasBeenSet() const { return m_latestSessionActionIdHasBeenSet; }
193 inline void SetLatestSessionActionId(const Aws::String& value) { m_latestSessionActionIdHasBeenSet = true; m_latestSessionActionId = value; }
194 inline void SetLatestSessionActionId(Aws::String&& value) { m_latestSessionActionIdHasBeenSet = true; m_latestSessionActionId = std::move(value); }
195 inline void SetLatestSessionActionId(const char* value) { m_latestSessionActionIdHasBeenSet = true; m_latestSessionActionId.assign(value); }
196 inline TaskSummary& WithLatestSessionActionId(const Aws::String& value) { SetLatestSessionActionId(value); return *this;}
197 inline TaskSummary& WithLatestSessionActionId(Aws::String&& value) { SetLatestSessionActionId(std::move(value)); return *this;}
198 inline TaskSummary& WithLatestSessionActionId(const char* value) { SetLatestSessionActionId(value); return *this;}
200 private:
201
202 Aws::String m_taskId;
203 bool m_taskIdHasBeenSet = false;
204
205 Aws::Utils::DateTime m_createdAt;
206 bool m_createdAtHasBeenSet = false;
207
208 Aws::String m_createdBy;
209 bool m_createdByHasBeenSet = false;
210
211 TaskRunStatus m_runStatus;
212 bool m_runStatusHasBeenSet = false;
213
214 TaskTargetRunStatus m_targetRunStatus;
215 bool m_targetRunStatusHasBeenSet = false;
216
217 int m_failureRetryCount;
218 bool m_failureRetryCountHasBeenSet = false;
219
221 bool m_parametersHasBeenSet = false;
222
223 Aws::Utils::DateTime m_startedAt;
224 bool m_startedAtHasBeenSet = false;
225
226 Aws::Utils::DateTime m_endedAt;
227 bool m_endedAtHasBeenSet = false;
228
229 Aws::Utils::DateTime m_updatedAt;
230 bool m_updatedAtHasBeenSet = false;
231
232 Aws::String m_updatedBy;
233 bool m_updatedByHasBeenSet = false;
234
235 Aws::String m_latestSessionActionId;
236 bool m_latestSessionActionIdHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace deadline
241} // namespace Aws
const Aws::String & GetCreatedBy() const
Definition TaskSummary.h:75
void SetParameters(const Aws::Map< Aws::String, TaskParameterValue > &value)
TaskSummary & WithEndedAt(Aws::Utils::DateTime &&value)
void SetRunStatus(TaskRunStatus &&value)
Definition TaskSummary.h:92
void SetLatestSessionActionId(const char *value)
TaskSummary & AddParameters(Aws::String &&key, const TaskParameterValue &value)
void SetUpdatedBy(const Aws::String &value)
TaskSummary & WithTargetRunStatus(const TaskTargetRunStatus &value)
void SetParameters(Aws::Map< Aws::String, TaskParameterValue > &&value)
void SetLatestSessionActionId(Aws::String &&value)
TaskSummary & WithLatestSessionActionId(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
TaskSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetUpdatedBy(const char *value)
void SetStartedAt(Aws::Utils::DateTime &&value)
TaskSummary & WithUpdatedBy(Aws::String &&value)
AWS_DEADLINE_API TaskSummary(Aws::Utils::Json::JsonView jsonValue)
TaskSummary & WithRunStatus(TaskRunStatus &&value)
Definition TaskSummary.h:94
void SetLatestSessionActionId(const Aws::String &value)
TaskSummary & WithFailureRetryCount(int value)
TaskSummary & AddParameters(Aws::String &&key, TaskParameterValue &&value)
AWS_DEADLINE_API TaskSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedBy(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition TaskSummary.h:66
const Aws::Map< Aws::String, TaskParameterValue > & GetParameters() const
TaskSummary & WithLatestSessionActionId(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetTaskId(Aws::String &&value)
Definition TaskSummary.h:52
void SetEndedAt(const Aws::Utils::DateTime &value)
TaskSummary & WithCreatedBy(const Aws::String &value)
Definition TaskSummary.h:80
void SetTargetRunStatus(const TaskTargetRunStatus &value)
TaskSummary & WithParameters(Aws::Map< Aws::String, TaskParameterValue > &&value)
TaskSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
TaskSummary & WithParameters(const Aws::Map< Aws::String, TaskParameterValue > &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition TaskSummary.h:65
const Aws::Utils::DateTime & GetStartedAt() const
void SetCreatedBy(const Aws::String &value)
Definition TaskSummary.h:77
TaskSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition TaskSummary.h:67
void SetCreatedBy(Aws::String &&value)
Definition TaskSummary.h:78
TaskSummary & AddParameters(const Aws::String &key, const TaskParameterValue &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndedAt(Aws::Utils::DateTime &&value)
TaskSummary & AddParameters(const char *key, const TaskParameterValue &value)
TaskSummary & AddParameters(const Aws::String &key, TaskParameterValue &&value)
void SetCreatedBy(const char *value)
Definition TaskSummary.h:79
TaskSummary & WithLatestSessionActionId(const char *value)
TaskSummary & WithUpdatedBy(const char *value)
TaskSummary & WithEndedAt(const Aws::Utils::DateTime &value)
void SetTaskId(const char *value)
Definition TaskSummary.h:53
void SetRunStatus(const TaskRunStatus &value)
Definition TaskSummary.h:91
const Aws::String & GetLatestSessionActionId() const
TaskSummary & AddParameters(const char *key, TaskParameterValue &&value)
TaskSummary & WithStartedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition TaskSummary.h:63
const TaskRunStatus & GetRunStatus() const
Definition TaskSummary.h:89
TaskSummary & WithTaskId(const Aws::String &value)
Definition TaskSummary.h:54
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
TaskSummary & WithTaskId(Aws::String &&value)
Definition TaskSummary.h:55
void SetStartedAt(const Aws::Utils::DateTime &value)
TaskSummary & WithUpdatedBy(const Aws::String &value)
void SetTaskId(const Aws::String &value)
Definition TaskSummary.h:51
TaskSummary & WithCreatedBy(Aws::String &&value)
Definition TaskSummary.h:81
TaskSummary & WithCreatedBy(const char *value)
Definition TaskSummary.h:82
TaskSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition TaskSummary.h:68
const TaskTargetRunStatus & GetTargetRunStatus() const
const Aws::String & GetTaskId() const
Definition TaskSummary.h:49
const Aws::String & GetUpdatedBy() const
TaskSummary & WithTaskId(const char *value)
Definition TaskSummary.h:56
TaskSummary & WithTargetRunStatus(TaskTargetRunStatus &&value)
TaskSummary & WithStartedAt(Aws::Utils::DateTime &&value)
TaskSummary & WithRunStatus(const TaskRunStatus &value)
Definition TaskSummary.h:93
void SetTargetRunStatus(TaskTargetRunStatus &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue