AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Job.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/model/TestType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/devicefarm/model/ExecutionStatus.h>
12#include <aws/devicefarm/model/ExecutionResult.h>
13#include <aws/devicefarm/model/Counters.h>
14#include <aws/devicefarm/model/Device.h>
15#include <aws/devicefarm/model/DeviceMinutes.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace DeviceFarm
29{
30namespace Model
31{
32
38 class Job
39 {
40 public:
41 AWS_DEVICEFARM_API Job();
42 AWS_DEVICEFARM_API Job(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DEVICEFARM_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline Job& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline Job& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline Job& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline Job& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline Job& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline Job& WithName(const char* value) { SetName(value); return *this;}
74
76
86 inline const TestType& GetType() const{ return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
89 inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
90 inline Job& WithType(const TestType& value) { SetType(value); return *this;}
91 inline Job& WithType(TestType&& value) { SetType(std::move(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
99 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
100 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
101 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
102 inline Job& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
103 inline Job& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
105
107
114 inline const ExecutionStatus& GetStatus() const{ return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
117 inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
118 inline Job& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
119 inline Job& WithStatus(ExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
121
123
129 inline const ExecutionResult& GetResult() const{ return m_result; }
130 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
131 inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
132 inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
133 inline Job& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
134 inline Job& WithResult(ExecutionResult&& value) { SetResult(std::move(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
142 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
143 inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
144 inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = std::move(value); }
145 inline Job& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
146 inline Job& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetStopped() const{ return m_stopped; }
154 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
155 inline void SetStopped(const Aws::Utils::DateTime& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
156 inline void SetStopped(Aws::Utils::DateTime&& value) { m_stoppedHasBeenSet = true; m_stopped = std::move(value); }
157 inline Job& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
158 inline Job& WithStopped(Aws::Utils::DateTime&& value) { SetStopped(std::move(value)); return *this;}
160
162
165 inline const Counters& GetCounters() const{ return m_counters; }
166 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
167 inline void SetCounters(const Counters& value) { m_countersHasBeenSet = true; m_counters = value; }
168 inline void SetCounters(Counters&& value) { m_countersHasBeenSet = true; m_counters = std::move(value); }
169 inline Job& WithCounters(const Counters& value) { SetCounters(value); return *this;}
170 inline Job& WithCounters(Counters&& value) { SetCounters(std::move(value)); return *this;}
172
174
177 inline const Aws::String& GetMessage() const{ return m_message; }
178 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
179 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
180 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
181 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
182 inline Job& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
183 inline Job& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
184 inline Job& WithMessage(const char* value) { SetMessage(value); return *this;}
186
188
191 inline const Device& GetDevice() const{ return m_device; }
192 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
193 inline void SetDevice(const Device& value) { m_deviceHasBeenSet = true; m_device = value; }
194 inline void SetDevice(Device&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); }
195 inline Job& WithDevice(const Device& value) { SetDevice(value); return *this;}
196 inline Job& WithDevice(Device&& value) { SetDevice(std::move(value)); return *this;}
198
200
203 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
204 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
205 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
206 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
207 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
208 inline Job& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
209 inline Job& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
210 inline Job& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
212
214
217 inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
218 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
219 inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
220 inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = std::move(value); }
221 inline Job& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
222 inline Job& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(std::move(value)); return *this;}
224
226
229 inline const Aws::String& GetVideoEndpoint() const{ return m_videoEndpoint; }
230 inline bool VideoEndpointHasBeenSet() const { return m_videoEndpointHasBeenSet; }
231 inline void SetVideoEndpoint(const Aws::String& value) { m_videoEndpointHasBeenSet = true; m_videoEndpoint = value; }
232 inline void SetVideoEndpoint(Aws::String&& value) { m_videoEndpointHasBeenSet = true; m_videoEndpoint = std::move(value); }
233 inline void SetVideoEndpoint(const char* value) { m_videoEndpointHasBeenSet = true; m_videoEndpoint.assign(value); }
234 inline Job& WithVideoEndpoint(const Aws::String& value) { SetVideoEndpoint(value); return *this;}
235 inline Job& WithVideoEndpoint(Aws::String&& value) { SetVideoEndpoint(std::move(value)); return *this;}
236 inline Job& WithVideoEndpoint(const char* value) { SetVideoEndpoint(value); return *this;}
238
240
244 inline bool GetVideoCapture() const{ return m_videoCapture; }
245 inline bool VideoCaptureHasBeenSet() const { return m_videoCaptureHasBeenSet; }
246 inline void SetVideoCapture(bool value) { m_videoCaptureHasBeenSet = true; m_videoCapture = value; }
247 inline Job& WithVideoCapture(bool value) { SetVideoCapture(value); return *this;}
249 private:
250
251 Aws::String m_arn;
252 bool m_arnHasBeenSet = false;
253
254 Aws::String m_name;
255 bool m_nameHasBeenSet = false;
256
257 TestType m_type;
258 bool m_typeHasBeenSet = false;
259
260 Aws::Utils::DateTime m_created;
261 bool m_createdHasBeenSet = false;
262
263 ExecutionStatus m_status;
264 bool m_statusHasBeenSet = false;
265
266 ExecutionResult m_result;
267 bool m_resultHasBeenSet = false;
268
269 Aws::Utils::DateTime m_started;
270 bool m_startedHasBeenSet = false;
271
272 Aws::Utils::DateTime m_stopped;
273 bool m_stoppedHasBeenSet = false;
274
275 Counters m_counters;
276 bool m_countersHasBeenSet = false;
277
278 Aws::String m_message;
279 bool m_messageHasBeenSet = false;
280
281 Device m_device;
282 bool m_deviceHasBeenSet = false;
283
284 Aws::String m_instanceArn;
285 bool m_instanceArnHasBeenSet = false;
286
287 DeviceMinutes m_deviceMinutes;
288 bool m_deviceMinutesHasBeenSet = false;
289
290 Aws::String m_videoEndpoint;
291 bool m_videoEndpointHasBeenSet = false;
292
293 bool m_videoCapture;
294 bool m_videoCaptureHasBeenSet = false;
295 };
296
297} // namespace Model
298} // namespace DeviceFarm
299} // namespace Aws
void SetStopped(Aws::Utils::DateTime &&value)
Definition Job.h:156
Job & WithCounters(Counters &&value)
Definition Job.h:170
bool DeviceMinutesHasBeenSet() const
Definition Job.h:218
Job & WithDevice(Device &&value)
Definition Job.h:196
void SetStatus(const ExecutionStatus &value)
Definition Job.h:116
Job & WithMessage(const char *value)
Definition Job.h:184
Job & WithName(const Aws::String &value)
Definition Job.h:70
Job & WithType(TestType &&value)
Definition Job.h:91
bool VideoEndpointHasBeenSet() const
Definition Job.h:230
void SetCreated(const Aws::Utils::DateTime &value)
Definition Job.h:100
const Counters & GetCounters() const
Definition Job.h:165
bool NameHasBeenSet() const
Definition Job.h:66
Job & WithArn(const Aws::String &value)
Definition Job.h:56
void SetStatus(ExecutionStatus &&value)
Definition Job.h:117
const Device & GetDevice() const
Definition Job.h:191
void SetType(TestType &&value)
Definition Job.h:89
void SetName(Aws::String &&value)
Definition Job.h:68
Job & WithDeviceMinutes(DeviceMinutes &&value)
Definition Job.h:222
Job & WithVideoEndpoint(const Aws::String &value)
Definition Job.h:234
void SetMessage(const char *value)
Definition Job.h:181
void SetArn(const char *value)
Definition Job.h:55
const Aws::String & GetVideoEndpoint() const
Definition Job.h:229
bool StartedHasBeenSet() const
Definition Job.h:142
void SetVideoEndpoint(const char *value)
Definition Job.h:233
Job & WithCounters(const Counters &value)
Definition Job.h:169
bool StatusHasBeenSet() const
Definition Job.h:115
void SetResult(const ExecutionResult &value)
Definition Job.h:131
void SetVideoEndpoint(const Aws::String &value)
Definition Job.h:231
void SetInstanceArn(const char *value)
Definition Job.h:207
Job & WithInstanceArn(const char *value)
Definition Job.h:210
void SetVideoCapture(bool value)
Definition Job.h:246
void SetDevice(const Device &value)
Definition Job.h:193
const Aws::String & GetInstanceArn() const
Definition Job.h:203
AWS_DEVICEFARM_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceMinutes(DeviceMinutes &&value)
Definition Job.h:220
Job & WithVideoEndpoint(Aws::String &&value)
Definition Job.h:235
bool CreatedHasBeenSet() const
Definition Job.h:99
Job & WithName(Aws::String &&value)
Definition Job.h:71
void SetDevice(Device &&value)
Definition Job.h:194
Job & WithArn(const char *value)
Definition Job.h:58
const Aws::String & GetMessage() const
Definition Job.h:177
bool ArnHasBeenSet() const
Definition Job.h:52
void SetMessage(const Aws::String &value)
Definition Job.h:179
const Aws::Utils::DateTime & GetCreated() const
Definition Job.h:98
Job & WithStopped(Aws::Utils::DateTime &&value)
Definition Job.h:158
bool TypeHasBeenSet() const
Definition Job.h:87
void SetMessage(Aws::String &&value)
Definition Job.h:180
void SetCreated(Aws::Utils::DateTime &&value)
Definition Job.h:101
const Aws::String & GetName() const
Definition Job.h:65
bool CountersHasBeenSet() const
Definition Job.h:166
AWS_DEVICEFARM_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DeviceHasBeenSet() const
Definition Job.h:192
Job & WithDevice(const Device &value)
Definition Job.h:195
bool ResultHasBeenSet() const
Definition Job.h:130
bool StoppedHasBeenSet() const
Definition Job.h:154
void SetVideoEndpoint(Aws::String &&value)
Definition Job.h:232
const TestType & GetType() const
Definition Job.h:86
AWS_DEVICEFARM_API Job()
Job & WithDeviceMinutes(const DeviceMinutes &value)
Definition Job.h:221
Job & WithCreated(const Aws::Utils::DateTime &value)
Definition Job.h:102
Job & WithMessage(Aws::String &&value)
Definition Job.h:183
void SetStarted(const Aws::Utils::DateTime &value)
Definition Job.h:143
Job & WithStarted(Aws::Utils::DateTime &&value)
Definition Job.h:146
void SetStarted(Aws::Utils::DateTime &&value)
Definition Job.h:144
Job & WithCreated(Aws::Utils::DateTime &&value)
Definition Job.h:103
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageHasBeenSet() const
Definition Job.h:178
Job & WithStatus(const ExecutionStatus &value)
Definition Job.h:118
bool GetVideoCapture() const
Definition Job.h:244
const ExecutionStatus & GetStatus() const
Definition Job.h:114
Job & WithInstanceArn(const Aws::String &value)
Definition Job.h:208
Job & WithArn(Aws::String &&value)
Definition Job.h:57
Job & WithVideoEndpoint(const char *value)
Definition Job.h:236
const ExecutionResult & GetResult() const
Definition Job.h:129
const Aws::String & GetArn() const
Definition Job.h:51
Job & WithResult(const ExecutionResult &value)
Definition Job.h:133
Job & WithVideoCapture(bool value)
Definition Job.h:247
void SetInstanceArn(const Aws::String &value)
Definition Job.h:205
void SetInstanceArn(Aws::String &&value)
Definition Job.h:206
bool VideoCaptureHasBeenSet() const
Definition Job.h:245
void SetType(const TestType &value)
Definition Job.h:88
void SetStopped(const Aws::Utils::DateTime &value)
Definition Job.h:155
Job & WithType(const TestType &value)
Definition Job.h:90
void SetDeviceMinutes(const DeviceMinutes &value)
Definition Job.h:219
const Aws::Utils::DateTime & GetStarted() const
Definition Job.h:141
void SetName(const char *value)
Definition Job.h:69
void SetArn(Aws::String &&value)
Definition Job.h:54
Job & WithStarted(const Aws::Utils::DateTime &value)
Definition Job.h:145
Job & WithInstanceArn(Aws::String &&value)
Definition Job.h:209
void SetArn(const Aws::String &value)
Definition Job.h:53
void SetCounters(Counters &&value)
Definition Job.h:168
void SetCounters(const Counters &value)
Definition Job.h:167
void SetName(const Aws::String &value)
Definition Job.h:67
Job & WithStopped(const Aws::Utils::DateTime &value)
Definition Job.h:157
Job & WithStatus(ExecutionStatus &&value)
Definition Job.h:119
Job & WithName(const char *value)
Definition Job.h:72
bool InstanceArnHasBeenSet() const
Definition Job.h:204
Job & WithResult(ExecutionResult &&value)
Definition Job.h:134
Job & WithMessage(const Aws::String &value)
Definition Job.h:182
const Aws::Utils::DateTime & GetStopped() const
Definition Job.h:153
const DeviceMinutes & GetDeviceMinutes() const
Definition Job.h:217
void SetResult(ExecutionResult &&value)
Definition Job.h:132
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue