AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetTaskResult.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{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace deadline
29{
30namespace Model
31{
33 {
34 public:
35 AWS_DEADLINE_API GetTaskResult();
38
39
41
44 inline const Aws::String& GetTaskId() const{ return m_taskId; }
45 inline void SetTaskId(const Aws::String& value) { m_taskId = value; }
46 inline void SetTaskId(Aws::String&& value) { m_taskId = std::move(value); }
47 inline void SetTaskId(const char* value) { m_taskId.assign(value); }
48 inline GetTaskResult& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
49 inline GetTaskResult& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
50 inline GetTaskResult& WithTaskId(const char* value) { SetTaskId(value); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
58 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
59 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
60 inline GetTaskResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
61 inline GetTaskResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
69 inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
70 inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
71 inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
72 inline GetTaskResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
73 inline GetTaskResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
74 inline GetTaskResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
76
78
81 inline const TaskRunStatus& GetRunStatus() const{ return m_runStatus; }
82 inline void SetRunStatus(const TaskRunStatus& value) { m_runStatus = value; }
83 inline void SetRunStatus(TaskRunStatus&& value) { m_runStatus = std::move(value); }
84 inline GetTaskResult& WithRunStatus(const TaskRunStatus& value) { SetRunStatus(value); return *this;}
85 inline GetTaskResult& WithRunStatus(TaskRunStatus&& value) { SetRunStatus(std::move(value)); return *this;}
87
89
92 inline const TaskTargetRunStatus& GetTargetRunStatus() const{ return m_targetRunStatus; }
93 inline void SetTargetRunStatus(const TaskTargetRunStatus& value) { m_targetRunStatus = value; }
94 inline void SetTargetRunStatus(TaskTargetRunStatus&& value) { m_targetRunStatus = std::move(value); }
95 inline GetTaskResult& WithTargetRunStatus(const TaskTargetRunStatus& value) { SetTargetRunStatus(value); return *this;}
96 inline GetTaskResult& WithTargetRunStatus(TaskTargetRunStatus&& value) { SetTargetRunStatus(std::move(value)); return *this;}
98
100
103 inline int GetFailureRetryCount() const{ return m_failureRetryCount; }
104 inline void SetFailureRetryCount(int value) { m_failureRetryCount = value; }
105 inline GetTaskResult& WithFailureRetryCount(int value) { SetFailureRetryCount(value); return *this;}
107
109
112 inline const Aws::Map<Aws::String, TaskParameterValue>& GetParameters() const{ return m_parameters; }
113 inline void SetParameters(const Aws::Map<Aws::String, TaskParameterValue>& value) { m_parameters = value; }
114 inline void SetParameters(Aws::Map<Aws::String, TaskParameterValue>&& value) { m_parameters = std::move(value); }
116 inline GetTaskResult& WithParameters(Aws::Map<Aws::String, TaskParameterValue>&& value) { SetParameters(std::move(value)); return *this;}
117 inline GetTaskResult& AddParameters(const Aws::String& key, const TaskParameterValue& value) { m_parameters.emplace(key, value); return *this; }
118 inline GetTaskResult& AddParameters(Aws::String&& key, const TaskParameterValue& value) { m_parameters.emplace(std::move(key), value); return *this; }
119 inline GetTaskResult& AddParameters(const Aws::String& key, TaskParameterValue&& value) { m_parameters.emplace(key, std::move(value)); return *this; }
120 inline GetTaskResult& AddParameters(Aws::String&& key, TaskParameterValue&& value) { m_parameters.emplace(std::move(key), std::move(value)); return *this; }
121 inline GetTaskResult& AddParameters(const char* key, TaskParameterValue&& value) { m_parameters.emplace(key, std::move(value)); return *this; }
122 inline GetTaskResult& AddParameters(const char* key, const TaskParameterValue& value) { m_parameters.emplace(key, value); return *this; }
124
126
129 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
130 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
131 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); }
132 inline GetTaskResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
133 inline GetTaskResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
141 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAt = value; }
142 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAt = std::move(value); }
143 inline GetTaskResult& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
144 inline GetTaskResult& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
152 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
153 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
154 inline GetTaskResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
155 inline GetTaskResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
157
159
162 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
163 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
164 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
165 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
166 inline GetTaskResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
167 inline GetTaskResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
168 inline GetTaskResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
170
172
175 inline const Aws::String& GetLatestSessionActionId() const{ return m_latestSessionActionId; }
176 inline void SetLatestSessionActionId(const Aws::String& value) { m_latestSessionActionId = value; }
177 inline void SetLatestSessionActionId(Aws::String&& value) { m_latestSessionActionId = std::move(value); }
178 inline void SetLatestSessionActionId(const char* value) { m_latestSessionActionId.assign(value); }
180 inline GetTaskResult& WithLatestSessionActionId(Aws::String&& value) { SetLatestSessionActionId(std::move(value)); return *this;}
181 inline GetTaskResult& WithLatestSessionActionId(const char* value) { SetLatestSessionActionId(value); return *this;}
183
185
186 inline const Aws::String& GetRequestId() const{ return m_requestId; }
187 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
188 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
189 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
190 inline GetTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
191 inline GetTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
192 inline GetTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
194 private:
195
196 Aws::String m_taskId;
197
198 Aws::Utils::DateTime m_createdAt;
199
200 Aws::String m_createdBy;
201
202 TaskRunStatus m_runStatus;
203
204 TaskTargetRunStatus m_targetRunStatus;
205
206 int m_failureRetryCount;
207
209
210 Aws::Utils::DateTime m_startedAt;
211
212 Aws::Utils::DateTime m_endedAt;
213
214 Aws::Utils::DateTime m_updatedAt;
215
216 Aws::String m_updatedBy;
217
218 Aws::String m_latestSessionActionId;
219
220 Aws::String m_requestId;
221 };
222
223} // namespace Model
224} // namespace deadline
225} // namespace Aws
void SetEndedAt(const Aws::Utils::DateTime &value)
GetTaskResult & WithLatestSessionActionId(const char *value)
GetTaskResult & WithRequestId(const Aws::String &value)
GetTaskResult & AddParameters(const Aws::String &key, const TaskParameterValue &value)
void SetCreatedBy(Aws::String &&value)
GetTaskResult & WithEndedAt(Aws::Utils::DateTime &&value)
void SetParameters(Aws::Map< Aws::String, TaskParameterValue > &&value)
const Aws::Map< Aws::String, TaskParameterValue > & GetParameters() const
void SetTaskId(const Aws::String &value)
GetTaskResult & WithParameters(const Aws::Map< Aws::String, TaskParameterValue > &value)
GetTaskResult & WithCreatedBy(const char *value)
GetTaskResult & WithRunStatus(TaskRunStatus &&value)
void SetRequestId(const Aws::String &value)
GetTaskResult & WithTargetRunStatus(const TaskTargetRunStatus &value)
const Aws::String & GetLatestSessionActionId() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetTaskResult & WithRequestId(const char *value)
GetTaskResult & WithRequestId(Aws::String &&value)
GetTaskResult & WithTaskId(const Aws::String &value)
GetTaskResult & WithLatestSessionActionId(const Aws::String &value)
void SetParameters(const Aws::Map< Aws::String, TaskParameterValue > &value)
void SetRunStatus(const TaskRunStatus &value)
AWS_DEADLINE_API GetTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRunStatus(TaskRunStatus &&value)
void SetUpdatedBy(Aws::String &&value)
const Aws::String & GetUpdatedBy() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const TaskTargetRunStatus & GetTargetRunStatus() const
const Aws::String & GetRequestId() const
GetTaskResult & AddParameters(Aws::String &&key, TaskParameterValue &&value)
const Aws::String & GetTaskId() const
void SetCreatedBy(const Aws::String &value)
GetTaskResult & WithParameters(Aws::Map< Aws::String, TaskParameterValue > &&value)
void SetCreatedBy(const char *value)
GetTaskResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
GetTaskResult & WithUpdatedBy(const char *value)
void SetUpdatedBy(const Aws::String &value)
void SetTargetRunStatus(TaskTargetRunStatus &&value)
GetTaskResult & WithTaskId(Aws::String &&value)
void SetLatestSessionActionId(const char *value)
GetTaskResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetTaskId(Aws::String &&value)
GetTaskResult & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetCreatedBy() const
void SetTargetRunStatus(const TaskTargetRunStatus &value)
GetTaskResult & WithStartedAt(const Aws::Utils::DateTime &value)
GetTaskResult & WithUpdatedBy(const Aws::String &value)
const TaskRunStatus & GetRunStatus() const
AWS_DEADLINE_API GetTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTaskResult & WithStartedAt(Aws::Utils::DateTime &&value)
GetTaskResult & AddParameters(Aws::String &&key, const TaskParameterValue &value)
GetTaskResult & AddParameters(const Aws::String &key, TaskParameterValue &&value)
GetTaskResult & AddParameters(const char *key, const TaskParameterValue &value)
GetTaskResult & WithEndedAt(const Aws::Utils::DateTime &value)
GetTaskResult & WithTargetRunStatus(TaskTargetRunStatus &&value)
GetTaskResult & WithUpdatedBy(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
GetTaskResult & WithTaskId(const char *value)
GetTaskResult & WithCreatedBy(const Aws::String &value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetEndedAt(Aws::Utils::DateTime &&value)
GetTaskResult & WithRunStatus(const TaskRunStatus &value)
GetTaskResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetRequestId(Aws::String &&value)
const Aws::Utils::DateTime & GetEndedAt() const
GetTaskResult & WithLatestSessionActionId(Aws::String &&value)
void SetStartedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetLatestSessionActionId(Aws::String &&value)
GetTaskResult & WithFailureRetryCount(int value)
GetTaskResult & WithCreatedBy(Aws::String &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetRequestId(const char *value)
void SetUpdatedBy(const char *value)
GetTaskResult & AddParameters(const char *key, TaskParameterValue &&value)
void SetLatestSessionActionId(const Aws::String &value)
void SetTaskId(const char *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