AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
49 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
50 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
51 inline TaskListItem& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
52 inline TaskListItem& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
53 inline TaskListItem& WithTaskId(const char* value) { SetTaskId(value); return *this;}
55
57
60 inline const TaskStatus& GetStatus() const{ return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(const TaskStatus& value) { m_statusHasBeenSet = true; m_status = value; }
63 inline void SetStatus(TaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
64 inline TaskListItem& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;}
65 inline TaskListItem& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline TaskListItem& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline TaskListItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline TaskListItem& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline int GetCpus() const{ return m_cpus; }
87 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
88 inline void SetCpus(int value) { m_cpusHasBeenSet = true; m_cpus = value; }
89 inline TaskListItem& WithCpus(int value) { SetCpus(value); return *this;}
91
93
96 inline int GetMemory() const{ return m_memory; }
97 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
98 inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; }
99 inline TaskListItem& WithMemory(int value) { SetMemory(value); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
107 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
108 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
109 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
110 inline TaskListItem& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
111 inline TaskListItem& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
119 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
120 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
121 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
122 inline TaskListItem& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
123 inline TaskListItem& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetStopTime() const{ return m_stopTime; }
131 inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; }
132 inline void SetStopTime(const Aws::Utils::DateTime& value) { m_stopTimeHasBeenSet = true; m_stopTime = value; }
133 inline void SetStopTime(Aws::Utils::DateTime&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::move(value); }
134 inline TaskListItem& WithStopTime(const Aws::Utils::DateTime& value) { SetStopTime(value); return *this;}
135 inline TaskListItem& WithStopTime(Aws::Utils::DateTime&& value) { SetStopTime(std::move(value)); return *this;}
137
139
142 inline int GetGpus() const{ return m_gpus; }
143 inline bool GpusHasBeenSet() const { return m_gpusHasBeenSet; }
144 inline void SetGpus(int value) { m_gpusHasBeenSet = true; m_gpus = value; }
145 inline TaskListItem& WithGpus(int value) { SetGpus(value); return *this;}
147
149
152 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
153 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
154 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
155 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
156 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
157 inline TaskListItem& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
158 inline TaskListItem& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
159 inline TaskListItem& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
161 private:
162
163 Aws::String m_taskId;
164 bool m_taskIdHasBeenSet = false;
165
166 TaskStatus m_status;
167 bool m_statusHasBeenSet = false;
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 int m_cpus;
173 bool m_cpusHasBeenSet = false;
174
175 int m_memory;
176 bool m_memoryHasBeenSet = false;
177
178 Aws::Utils::DateTime m_creationTime;
179 bool m_creationTimeHasBeenSet = false;
180
181 Aws::Utils::DateTime m_startTime;
182 bool m_startTimeHasBeenSet = false;
183
184 Aws::Utils::DateTime m_stopTime;
185 bool m_stopTimeHasBeenSet = false;
186
187 int m_gpus;
188 bool m_gpusHasBeenSet = false;
189
190 Aws::String m_instanceType;
191 bool m_instanceTypeHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace Omics
196} // namespace Aws
void SetStatus(const TaskStatus &value)
const Aws::Utils::DateTime & GetStartTime() const
TaskListItem & WithTaskId(const Aws::String &value)
void SetTaskId(const char *value)
TaskListItem & WithTaskId(Aws::String &&value)
void SetInstanceType(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
TaskListItem & WithName(Aws::String &&value)
TaskListItem & WithStartTime(const Aws::Utils::DateTime &value)
void SetStatus(TaskStatus &&value)
void SetTaskId(const Aws::String &value)
TaskListItem & WithMemory(int value)
TaskListItem & WithInstanceType(Aws::String &&value)
const Aws::String & GetName() const
void SetInstanceType(Aws::String &&value)
void SetInstanceType(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetTaskId(Aws::String &&value)
void SetName(Aws::String &&value)
void SetStopTime(const Aws::Utils::DateTime &value)
void SetName(const char *value)
TaskListItem & WithCpus(int value)
AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationTime() const
const TaskStatus & GetStatus() const
TaskListItem & WithTaskId(const char *value)
const Aws::String & GetTaskId() const
TaskListItem & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetInstanceType() const
TaskListItem & WithCreationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
AWS_OMICS_API TaskListItem(Aws::Utils::Json::JsonView jsonValue)
void SetStopTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStopTime() const
void SetName(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
TaskListItem & WithName(const char *value)
TaskListItem & WithStatus(TaskStatus &&value)
TaskListItem & WithInstanceType(const Aws::String &value)
TaskListItem & WithInstanceType(const char *value)
TaskListItem & WithGpus(int value)
AWS_OMICS_API TaskListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskListItem & WithStatus(const TaskStatus &value)
TaskListItem & WithCreationTime(Aws::Utils::DateTime &&value)
TaskListItem & WithStopTime(const Aws::Utils::DateTime &value)
TaskListItem & WithStopTime(Aws::Utils::DateTime &&value)
TaskListItem & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue