AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TaskListItem.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{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Omics
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_OMICS_API TaskListItem() = default;
37 AWS_OMICS_API TaskListItem(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetTaskId() const { return m_taskId; }
47 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
48 template<typename TaskIdT = Aws::String>
49 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
50 template<typename TaskIdT = Aws::String>
51 TaskListItem& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
53
55
58 inline TaskStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(TaskStatus value) { m_statusHasBeenSet = true; m_status = value; }
61 inline TaskListItem& WithStatus(TaskStatus value) { SetStatus(value); return *this;}
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 TaskListItem& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
80 inline int GetCpus() const { return m_cpus; }
81 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
82 inline void SetCpus(int value) { m_cpusHasBeenSet = true; m_cpus = value; }
83 inline TaskListItem& WithCpus(int value) { SetCpus(value); return *this;}
85
87
91 inline bool GetCacheHit() const { return m_cacheHit; }
92 inline bool CacheHitHasBeenSet() const { return m_cacheHitHasBeenSet; }
93 inline void SetCacheHit(bool value) { m_cacheHitHasBeenSet = true; m_cacheHit = value; }
94 inline TaskListItem& WithCacheHit(bool value) { SetCacheHit(value); return *this;}
96
98
101 inline const Aws::String& GetCacheS3Uri() const { return m_cacheS3Uri; }
102 inline bool CacheS3UriHasBeenSet() const { return m_cacheS3UriHasBeenSet; }
103 template<typename CacheS3UriT = Aws::String>
104 void SetCacheS3Uri(CacheS3UriT&& value) { m_cacheS3UriHasBeenSet = true; m_cacheS3Uri = std::forward<CacheS3UriT>(value); }
105 template<typename CacheS3UriT = Aws::String>
106 TaskListItem& WithCacheS3Uri(CacheS3UriT&& value) { SetCacheS3Uri(std::forward<CacheS3UriT>(value)); return *this;}
108
110
113 inline int GetMemory() const { return m_memory; }
114 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
115 inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; }
116 inline TaskListItem& WithMemory(int value) { SetMemory(value); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
124 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
125 template<typename CreationTimeT = Aws::Utils::DateTime>
126 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
127 template<typename CreationTimeT = Aws::Utils::DateTime>
128 TaskListItem& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
136 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
137 template<typename StartTimeT = Aws::Utils::DateTime>
138 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
139 template<typename StartTimeT = Aws::Utils::DateTime>
140 TaskListItem& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetStopTime() const { return m_stopTime; }
148 inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; }
149 template<typename StopTimeT = Aws::Utils::DateTime>
150 void SetStopTime(StopTimeT&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::forward<StopTimeT>(value); }
151 template<typename StopTimeT = Aws::Utils::DateTime>
152 TaskListItem& WithStopTime(StopTimeT&& value) { SetStopTime(std::forward<StopTimeT>(value)); return *this;}
154
156
159 inline int GetGpus() const { return m_gpus; }
160 inline bool GpusHasBeenSet() const { return m_gpusHasBeenSet; }
161 inline void SetGpus(int value) { m_gpusHasBeenSet = true; m_gpus = value; }
162 inline TaskListItem& WithGpus(int value) { SetGpus(value); return *this;}
164
166
169 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
170 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
171 template<typename InstanceTypeT = Aws::String>
172 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
173 template<typename InstanceTypeT = Aws::String>
174 TaskListItem& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
176 private:
177
178 Aws::String m_taskId;
179 bool m_taskIdHasBeenSet = false;
180
182 bool m_statusHasBeenSet = false;
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
187 int m_cpus{0};
188 bool m_cpusHasBeenSet = false;
189
190 bool m_cacheHit{false};
191 bool m_cacheHitHasBeenSet = false;
192
193 Aws::String m_cacheS3Uri;
194 bool m_cacheS3UriHasBeenSet = false;
195
196 int m_memory{0};
197 bool m_memoryHasBeenSet = false;
198
199 Aws::Utils::DateTime m_creationTime{};
200 bool m_creationTimeHasBeenSet = false;
201
202 Aws::Utils::DateTime m_startTime{};
203 bool m_startTimeHasBeenSet = false;
204
205 Aws::Utils::DateTime m_stopTime{};
206 bool m_stopTimeHasBeenSet = false;
207
208 int m_gpus{0};
209 bool m_gpusHasBeenSet = false;
210
211 Aws::String m_instanceType;
212 bool m_instanceTypeHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace Omics
217} // 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