AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
GetRunTaskResult.h
1
6#pragma once
7#include <aws/omics/Omics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/omics/model/TaskStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/omics/model/ImageDetails.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Omics
27{
28namespace Model
29{
31 {
32 public:
33 AWS_OMICS_API GetRunTaskResult() = default;
36
37
39
42 inline const Aws::String& GetTaskId() const { return m_taskId; }
43 template<typename TaskIdT = Aws::String>
44 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
45 template<typename TaskIdT = Aws::String>
46 GetRunTaskResult& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
48
50
53 inline TaskStatus GetStatus() const { return m_status; }
54 inline void SetStatus(TaskStatus value) { m_statusHasBeenSet = true; m_status = value; }
55 inline GetRunTaskResult& WithStatus(TaskStatus value) { SetStatus(value); return *this;}
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 GetRunTaskResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline int GetCpus() const { return m_cpus; }
74 inline void SetCpus(int value) { m_cpusHasBeenSet = true; m_cpus = value; }
75 inline GetRunTaskResult& WithCpus(int value) { SetCpus(value); return *this;}
77
79
83 inline bool GetCacheHit() const { return m_cacheHit; }
84 inline void SetCacheHit(bool value) { m_cacheHitHasBeenSet = true; m_cacheHit = value; }
85 inline GetRunTaskResult& WithCacheHit(bool value) { SetCacheHit(value); return *this;}
87
89
92 inline const Aws::String& GetCacheS3Uri() const { return m_cacheS3Uri; }
93 template<typename CacheS3UriT = Aws::String>
94 void SetCacheS3Uri(CacheS3UriT&& value) { m_cacheS3UriHasBeenSet = true; m_cacheS3Uri = std::forward<CacheS3UriT>(value); }
95 template<typename CacheS3UriT = Aws::String>
96 GetRunTaskResult& WithCacheS3Uri(CacheS3UriT&& value) { SetCacheS3Uri(std::forward<CacheS3UriT>(value)); return *this;}
98
100
103 inline int GetMemory() const { return m_memory; }
104 inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; }
105 inline GetRunTaskResult& WithMemory(int value) { SetMemory(value); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
113 template<typename CreationTimeT = Aws::Utils::DateTime>
114 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
115 template<typename CreationTimeT = Aws::Utils::DateTime>
116 GetRunTaskResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
124 template<typename StartTimeT = Aws::Utils::DateTime>
125 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
126 template<typename StartTimeT = Aws::Utils::DateTime>
127 GetRunTaskResult& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetStopTime() const { return m_stopTime; }
135 template<typename StopTimeT = Aws::Utils::DateTime>
136 void SetStopTime(StopTimeT&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::forward<StopTimeT>(value); }
137 template<typename StopTimeT = Aws::Utils::DateTime>
138 GetRunTaskResult& WithStopTime(StopTimeT&& value) { SetStopTime(std::forward<StopTimeT>(value)); return *this;}
140
142
145 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
146 template<typename StatusMessageT = Aws::String>
147 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
148 template<typename StatusMessageT = Aws::String>
149 GetRunTaskResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
151
153
156 inline const Aws::String& GetLogStream() const { return m_logStream; }
157 template<typename LogStreamT = Aws::String>
158 void SetLogStream(LogStreamT&& value) { m_logStreamHasBeenSet = true; m_logStream = std::forward<LogStreamT>(value); }
159 template<typename LogStreamT = Aws::String>
160 GetRunTaskResult& WithLogStream(LogStreamT&& value) { SetLogStream(std::forward<LogStreamT>(value)); return *this;}
162
164
167 inline int GetGpus() const { return m_gpus; }
168 inline void SetGpus(int value) { m_gpusHasBeenSet = true; m_gpus = value; }
169 inline GetRunTaskResult& WithGpus(int value) { SetGpus(value); return *this;}
171
173
176 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
177 template<typename InstanceTypeT = Aws::String>
178 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
179 template<typename InstanceTypeT = Aws::String>
180 GetRunTaskResult& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
182
184
187 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
188 template<typename FailureReasonT = Aws::String>
189 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
190 template<typename FailureReasonT = Aws::String>
191 GetRunTaskResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
193
195
198 inline const ImageDetails& GetImageDetails() const { return m_imageDetails; }
199 template<typename ImageDetailsT = ImageDetails>
200 void SetImageDetails(ImageDetailsT&& value) { m_imageDetailsHasBeenSet = true; m_imageDetails = std::forward<ImageDetailsT>(value); }
201 template<typename ImageDetailsT = ImageDetails>
202 GetRunTaskResult& WithImageDetails(ImageDetailsT&& value) { SetImageDetails(std::forward<ImageDetailsT>(value)); return *this;}
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 template<typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
210 template<typename RequestIdT = Aws::String>
211 GetRunTaskResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
213 private:
214
215 Aws::String m_taskId;
216 bool m_taskIdHasBeenSet = false;
217
219 bool m_statusHasBeenSet = false;
220
221 Aws::String m_name;
222 bool m_nameHasBeenSet = false;
223
224 int m_cpus{0};
225 bool m_cpusHasBeenSet = false;
226
227 bool m_cacheHit{false};
228 bool m_cacheHitHasBeenSet = false;
229
230 Aws::String m_cacheS3Uri;
231 bool m_cacheS3UriHasBeenSet = false;
232
233 int m_memory{0};
234 bool m_memoryHasBeenSet = false;
235
236 Aws::Utils::DateTime m_creationTime{};
237 bool m_creationTimeHasBeenSet = false;
238
239 Aws::Utils::DateTime m_startTime{};
240 bool m_startTimeHasBeenSet = false;
241
242 Aws::Utils::DateTime m_stopTime{};
243 bool m_stopTimeHasBeenSet = false;
244
245 Aws::String m_statusMessage;
246 bool m_statusMessageHasBeenSet = false;
247
248 Aws::String m_logStream;
249 bool m_logStreamHasBeenSet = false;
250
251 int m_gpus{0};
252 bool m_gpusHasBeenSet = false;
253
254 Aws::String m_instanceType;
255 bool m_instanceTypeHasBeenSet = false;
256
257 Aws::String m_failureReason;
258 bool m_failureReasonHasBeenSet = false;
259
260 ImageDetails m_imageDetails;
261 bool m_imageDetailsHasBeenSet = false;
262
263 Aws::String m_requestId;
264 bool m_requestIdHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace Omics
269} // namespace Aws
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetTaskId() const
GetRunTaskResult & WithName(NameT &&value)
const Aws::String & GetInstanceType() const
GetRunTaskResult & WithCreationTime(CreationTimeT &&value)
void SetImageDetails(ImageDetailsT &&value)
AWS_OMICS_API GetRunTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRunTaskResult & WithImageDetails(ImageDetailsT &&value)
GetRunTaskResult & WithMemory(int value)
void SetStartTime(StartTimeT &&value)
GetRunTaskResult & WithTaskId(TaskIdT &&value)
void SetLogStream(LogStreamT &&value)
GetRunTaskResult & WithCacheHit(bool value)
GetRunTaskResult & WithStatus(TaskStatus value)
GetRunTaskResult & WithGpus(int value)
void SetCacheS3Uri(CacheS3UriT &&value)
void SetInstanceType(InstanceTypeT &&value)
GetRunTaskResult & WithFailureReason(FailureReasonT &&value)
const Aws::String & GetName() const
GetRunTaskResult & WithStartTime(StartTimeT &&value)
const Aws::String & GetLogStream() const
GetRunTaskResult & WithCpus(int value)
AWS_OMICS_API GetRunTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStatusMessage(StatusMessageT &&value)
GetRunTaskResult & WithStatusMessage(StatusMessageT &&value)
const ImageDetails & GetImageDetails() const
const Aws::String & GetStatusMessage() const
GetRunTaskResult & WithStopTime(StopTimeT &&value)
AWS_OMICS_API GetRunTaskResult()=default
const Aws::String & GetFailureReason() const
void SetRequestId(RequestIdT &&value)
void SetFailureReason(FailureReasonT &&value)
const Aws::Utils::DateTime & GetStopTime() const
GetRunTaskResult & WithLogStream(LogStreamT &&value)
GetRunTaskResult & WithCacheS3Uri(CacheS3UriT &&value)
const Aws::String & GetCacheS3Uri() const
GetRunTaskResult & WithInstanceType(InstanceTypeT &&value)
void SetCreationTime(CreationTimeT &&value)
GetRunTaskResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue