AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
TaskListItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/omics/Omics_EXPORTS.h>
10#include <aws/omics/model/TaskStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Omics {
22namespace Model {
23
30 public:
31 AWS_OMICS_API TaskListItem() = default;
32 AWS_OMICS_API TaskListItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTaskId() const { return m_taskId; }
41 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
42 template <typename TaskIdT = Aws::String>
43 void SetTaskId(TaskIdT&& value) {
44 m_taskIdHasBeenSet = true;
45 m_taskId = std::forward<TaskIdT>(value);
46 }
47 template <typename TaskIdT = Aws::String>
48 TaskListItem& WithTaskId(TaskIdT&& value) {
49 SetTaskId(std::forward<TaskIdT>(value));
50 return *this;
51 }
53
55
58 inline TaskStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(TaskStatus value) {
61 m_statusHasBeenSet = true;
62 m_status = value;
63 }
65 SetStatus(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
82 TaskListItem& WithName(NameT&& value) {
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
92 inline int GetCpus() const { return m_cpus; }
93 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
94 inline void SetCpus(int value) {
95 m_cpusHasBeenSet = true;
96 m_cpus = value;
97 }
98 inline TaskListItem& WithCpus(int value) {
99 SetCpus(value);
100 return *this;
101 }
103
105
109 inline bool GetCacheHit() const { return m_cacheHit; }
110 inline bool CacheHitHasBeenSet() const { return m_cacheHitHasBeenSet; }
111 inline void SetCacheHit(bool value) {
112 m_cacheHitHasBeenSet = true;
113 m_cacheHit = value;
114 }
115 inline TaskListItem& WithCacheHit(bool value) {
116 SetCacheHit(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetCacheS3Uri() const { return m_cacheS3Uri; }
126 inline bool CacheS3UriHasBeenSet() const { return m_cacheS3UriHasBeenSet; }
127 template <typename CacheS3UriT = Aws::String>
128 void SetCacheS3Uri(CacheS3UriT&& value) {
129 m_cacheS3UriHasBeenSet = true;
130 m_cacheS3Uri = std::forward<CacheS3UriT>(value);
131 }
132 template <typename CacheS3UriT = Aws::String>
133 TaskListItem& WithCacheS3Uri(CacheS3UriT&& value) {
134 SetCacheS3Uri(std::forward<CacheS3UriT>(value));
135 return *this;
136 }
138
140
143 inline int GetMemory() const { return m_memory; }
144 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
145 inline void SetMemory(int value) {
146 m_memoryHasBeenSet = true;
147 m_memory = value;
148 }
149 inline TaskListItem& WithMemory(int value) {
150 SetMemory(value);
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
160 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
161 template <typename CreationTimeT = Aws::Utils::DateTime>
162 void SetCreationTime(CreationTimeT&& value) {
163 m_creationTimeHasBeenSet = true;
164 m_creationTime = std::forward<CreationTimeT>(value);
165 }
166 template <typename CreationTimeT = Aws::Utils::DateTime>
167 TaskListItem& WithCreationTime(CreationTimeT&& value) {
168 SetCreationTime(std::forward<CreationTimeT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
178 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
179 template <typename StartTimeT = Aws::Utils::DateTime>
180 void SetStartTime(StartTimeT&& value) {
181 m_startTimeHasBeenSet = true;
182 m_startTime = std::forward<StartTimeT>(value);
183 }
184 template <typename StartTimeT = Aws::Utils::DateTime>
185 TaskListItem& WithStartTime(StartTimeT&& value) {
186 SetStartTime(std::forward<StartTimeT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetStopTime() const { return m_stopTime; }
196 inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; }
197 template <typename StopTimeT = Aws::Utils::DateTime>
198 void SetStopTime(StopTimeT&& value) {
199 m_stopTimeHasBeenSet = true;
200 m_stopTime = std::forward<StopTimeT>(value);
201 }
202 template <typename StopTimeT = Aws::Utils::DateTime>
203 TaskListItem& WithStopTime(StopTimeT&& value) {
204 SetStopTime(std::forward<StopTimeT>(value));
205 return *this;
206 }
208
210
213 inline int GetGpus() const { return m_gpus; }
214 inline bool GpusHasBeenSet() const { return m_gpusHasBeenSet; }
215 inline void SetGpus(int value) {
216 m_gpusHasBeenSet = true;
217 m_gpus = value;
218 }
219 inline TaskListItem& WithGpus(int value) {
220 SetGpus(value);
221 return *this;
222 }
224
226
229 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
230 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
231 template <typename InstanceTypeT = Aws::String>
232 void SetInstanceType(InstanceTypeT&& value) {
233 m_instanceTypeHasBeenSet = true;
234 m_instanceType = std::forward<InstanceTypeT>(value);
235 }
236 template <typename InstanceTypeT = Aws::String>
237 TaskListItem& WithInstanceType(InstanceTypeT&& value) {
238 SetInstanceType(std::forward<InstanceTypeT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_taskId;
244
246
247 Aws::String m_name;
248
249 int m_cpus{0};
250
251 bool m_cacheHit{false};
252
253 Aws::String m_cacheS3Uri;
254
255 int m_memory{0};
256
257 Aws::Utils::DateTime m_creationTime{};
258
259 Aws::Utils::DateTime m_startTime{};
260
261 Aws::Utils::DateTime m_stopTime{};
262
263 int m_gpus{0};
264
265 Aws::String m_instanceType;
266 bool m_taskIdHasBeenSet = false;
267 bool m_statusHasBeenSet = false;
268 bool m_nameHasBeenSet = false;
269 bool m_cpusHasBeenSet = false;
270 bool m_cacheHitHasBeenSet = false;
271 bool m_cacheS3UriHasBeenSet = false;
272 bool m_memoryHasBeenSet = false;
273 bool m_creationTimeHasBeenSet = false;
274 bool m_startTimeHasBeenSet = false;
275 bool m_stopTimeHasBeenSet = false;
276 bool m_gpusHasBeenSet = false;
277 bool m_instanceTypeHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace Omics
282} // namespace Aws
TaskListItem & WithTaskId(TaskIdT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetName(NameT &&value)
TaskListItem & WithMemory(int value)
const Aws::String & GetCacheS3Uri() const
void SetCreationTime(CreationTimeT &&value)
TaskListItem & WithInstanceType(InstanceTypeT &&value)
void SetCacheS3Uri(CacheS3UriT &&value)
const Aws::String & GetName() const
TaskListItem & WithStartTime(StartTimeT &&value)
TaskListItem & WithCpus(int value)
AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStopTime(StopTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
TaskListItem & WithStatus(TaskStatus value)
const Aws::String & GetTaskId() const
void SetStatus(TaskStatus value)
TaskListItem & WithStopTime(StopTimeT &&value)
const Aws::String & GetInstanceType() const
void SetInstanceType(InstanceTypeT &&value)
AWS_OMICS_API TaskListItem(Aws::Utils::Json::JsonView jsonValue)
TaskListItem & WithCacheS3Uri(CacheS3UriT &&value)
const Aws::Utils::DateTime & GetStopTime() const
void SetTaskId(TaskIdT &&value)
TaskListItem & WithName(NameT &&value)
TaskListItem & WithCacheHit(bool value)
TaskListItem & WithGpus(int value)
TaskListItem & WithCreationTime(CreationTimeT &&value)
void SetStartTime(StartTimeT &&value)
AWS_OMICS_API TaskListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OMICS_API TaskListItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue