AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Omics
26{
27namespace Model
28{
30 {
31 public:
32 AWS_OMICS_API GetRunTaskResult();
35
36
38
41 inline const Aws::String& GetTaskId() const{ return m_taskId; }
42 inline void SetTaskId(const Aws::String& value) { m_taskId = value; }
43 inline void SetTaskId(Aws::String&& value) { m_taskId = std::move(value); }
44 inline void SetTaskId(const char* value) { m_taskId.assign(value); }
45 inline GetRunTaskResult& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
46 inline GetRunTaskResult& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
47 inline GetRunTaskResult& WithTaskId(const char* value) { SetTaskId(value); return *this;}
49
51
54 inline const TaskStatus& GetStatus() const{ return m_status; }
55 inline void SetStatus(const TaskStatus& value) { m_status = value; }
56 inline void SetStatus(TaskStatus&& value) { m_status = std::move(value); }
57 inline GetRunTaskResult& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;}
58 inline GetRunTaskResult& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;}
60
62
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline void SetName(const Aws::String& value) { m_name = value; }
67 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
68 inline void SetName(const char* value) { m_name.assign(value); }
69 inline GetRunTaskResult& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline GetRunTaskResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline GetRunTaskResult& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline int GetCpus() const{ return m_cpus; }
79 inline void SetCpus(int value) { m_cpus = value; }
80 inline GetRunTaskResult& WithCpus(int value) { SetCpus(value); return *this;}
82
84
87 inline int GetMemory() const{ return m_memory; }
88 inline void SetMemory(int value) { m_memory = value; }
89 inline GetRunTaskResult& WithMemory(int value) { SetMemory(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
97 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
98 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
99 inline GetRunTaskResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
100 inline GetRunTaskResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
108 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
109 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
110 inline GetRunTaskResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
111 inline GetRunTaskResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetStopTime() const{ return m_stopTime; }
119 inline void SetStopTime(const Aws::Utils::DateTime& value) { m_stopTime = value; }
120 inline void SetStopTime(Aws::Utils::DateTime&& value) { m_stopTime = std::move(value); }
121 inline GetRunTaskResult& WithStopTime(const Aws::Utils::DateTime& value) { SetStopTime(value); return *this;}
122 inline GetRunTaskResult& WithStopTime(Aws::Utils::DateTime&& value) { SetStopTime(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
130 inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; }
131 inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = std::move(value); }
132 inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); }
133 inline GetRunTaskResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
134 inline GetRunTaskResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
135 inline GetRunTaskResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
137
139
142 inline const Aws::String& GetLogStream() const{ return m_logStream; }
143 inline void SetLogStream(const Aws::String& value) { m_logStream = value; }
144 inline void SetLogStream(Aws::String&& value) { m_logStream = std::move(value); }
145 inline void SetLogStream(const char* value) { m_logStream.assign(value); }
146 inline GetRunTaskResult& WithLogStream(const Aws::String& value) { SetLogStream(value); return *this;}
147 inline GetRunTaskResult& WithLogStream(Aws::String&& value) { SetLogStream(std::move(value)); return *this;}
148 inline GetRunTaskResult& WithLogStream(const char* value) { SetLogStream(value); return *this;}
150
152
155 inline int GetGpus() const{ return m_gpus; }
156 inline void SetGpus(int value) { m_gpus = value; }
157 inline GetRunTaskResult& WithGpus(int value) { SetGpus(value); return *this;}
159
161
164 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
165 inline void SetInstanceType(const Aws::String& value) { m_instanceType = value; }
166 inline void SetInstanceType(Aws::String&& value) { m_instanceType = std::move(value); }
167 inline void SetInstanceType(const char* value) { m_instanceType.assign(value); }
168 inline GetRunTaskResult& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
169 inline GetRunTaskResult& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
170 inline GetRunTaskResult& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
172
174
177 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
178 inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; }
179 inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); }
180 inline void SetFailureReason(const char* value) { m_failureReason.assign(value); }
181 inline GetRunTaskResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
182 inline GetRunTaskResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
183 inline GetRunTaskResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
185
187
188 inline const Aws::String& GetRequestId() const{ return m_requestId; }
189 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
190 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
191 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
192 inline GetRunTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
193 inline GetRunTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
194 inline GetRunTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
196 private:
197
198 Aws::String m_taskId;
199
200 TaskStatus m_status;
201
202 Aws::String m_name;
203
204 int m_cpus;
205
206 int m_memory;
207
208 Aws::Utils::DateTime m_creationTime;
209
210 Aws::Utils::DateTime m_startTime;
211
212 Aws::Utils::DateTime m_stopTime;
213
214 Aws::String m_statusMessage;
215
216 Aws::String m_logStream;
217
218 int m_gpus;
219
220 Aws::String m_instanceType;
221
222 Aws::String m_failureReason;
223
224 Aws::String m_requestId;
225 };
226
227} // namespace Model
228} // namespace Omics
229} // namespace Aws
const Aws::String & GetRequestId() const
const TaskStatus & GetStatus() const
const Aws::Utils::DateTime & GetStartTime() const
GetRunTaskResult & WithTaskId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetFailureReason(const char *value)
void SetStopTime(const Aws::Utils::DateTime &value)
GetRunTaskResult & WithFailureReason(const Aws::String &value)
const Aws::String & GetTaskId() const
GetRunTaskResult & WithStartTime(Aws::Utils::DateTime &&value)
GetRunTaskResult & WithCreationTime(const Aws::Utils::DateTime &value)
GetRunTaskResult & WithTaskId(Aws::String &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetTaskId(const Aws::String &value)
GetRunTaskResult & WithFailureReason(Aws::String &&value)
const Aws::String & GetInstanceType() const
GetRunTaskResult & WithStatusMessage(const Aws::String &value)
GetRunTaskResult & WithLogStream(Aws::String &&value)
void SetInstanceType(const Aws::String &value)
GetRunTaskResult & WithStatus(TaskStatus &&value)
AWS_OMICS_API GetRunTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStatus(const TaskStatus &value)
GetRunTaskResult & WithRequestId(const char *value)
GetRunTaskResult & WithStopTime(const Aws::Utils::DateTime &value)
GetRunTaskResult & WithCreationTime(Aws::Utils::DateTime &&value)
void SetStatusMessage(const Aws::String &value)
void SetName(Aws::String &&value)
GetRunTaskResult & WithMemory(int value)
void SetInstanceType(const char *value)
void SetTaskId(Aws::String &&value)
GetRunTaskResult & WithGpus(int value)
GetRunTaskResult & WithInstanceType(const char *value)
const Aws::String & GetName() const
void SetStatus(TaskStatus &&value)
const Aws::String & GetLogStream() const
GetRunTaskResult & WithCpus(int value)
AWS_OMICS_API GetRunTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLogStream(Aws::String &&value)
GetRunTaskResult & WithRequestId(const Aws::String &value)
GetRunTaskResult & WithLogStream(const char *value)
GetRunTaskResult & WithName(const char *value)
GetRunTaskResult & WithLogStream(const Aws::String &value)
void SetStatusMessage(Aws::String &&value)
GetRunTaskResult & WithName(const Aws::String &value)
const Aws::String & GetStatusMessage() const
void SetStartTime(Aws::Utils::DateTime &&value)
void SetStatusMessage(const char *value)
GetRunTaskResult & WithFailureReason(const char *value)
GetRunTaskResult & WithStatus(const TaskStatus &value)
GetRunTaskResult & WithStatusMessage(Aws::String &&value)
const Aws::String & GetFailureReason() const
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetLogStream(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
GetRunTaskResult & WithInstanceType(Aws::String &&value)
void SetInstanceType(Aws::String &&value)
void SetRequestId(Aws::String &&value)
GetRunTaskResult & WithTaskId(const char *value)
const Aws::Utils::DateTime & GetStopTime() const
GetRunTaskResult & WithInstanceType(const Aws::String &value)
GetRunTaskResult & WithStartTime(const Aws::Utils::DateTime &value)
GetRunTaskResult & WithRequestId(Aws::String &&value)
void SetName(const Aws::String &value)
void SetRequestId(const Aws::String &value)
void SetStopTime(Aws::Utils::DateTime &&value)
void SetFailureReason(const Aws::String &value)
GetRunTaskResult & WithStopTime(Aws::Utils::DateTime &&value)
void SetFailureReason(Aws::String &&value)
GetRunTaskResult & WithStatusMessage(const char *value)
GetRunTaskResult & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue