AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Job.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/Counters.h>
11#include <aws/devicefarm/model/Device.h>
12#include <aws/devicefarm/model/DeviceMinutes.h>
13#include <aws/devicefarm/model/ExecutionResult.h>
14#include <aws/devicefarm/model/ExecutionStatus.h>
15#include <aws/devicefarm/model/TestType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DeviceFarm {
27namespace Model {
28
34class Job {
35 public:
36 AWS_DEVICEFARM_API Job() = default;
37 AWS_DEVICEFARM_API Job(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
53 Job& WithArn(ArnT&& value) {
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 Job& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
88 inline TestType GetType() const { return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(TestType value) {
91 m_typeHasBeenSet = true;
92 m_type = value;
93 }
94 inline Job& WithType(TestType value) {
95 SetType(value);
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
105 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
106 template <typename CreatedT = Aws::Utils::DateTime>
107 void SetCreated(CreatedT&& value) {
108 m_createdHasBeenSet = true;
109 m_created = std::forward<CreatedT>(value);
110 }
111 template <typename CreatedT = Aws::Utils::DateTime>
112 Job& WithCreated(CreatedT&& value) {
113 SetCreated(std::forward<CreatedT>(value));
114 return *this;
115 }
117
119
126 inline ExecutionStatus GetStatus() const { return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 inline void SetStatus(ExecutionStatus value) {
129 m_statusHasBeenSet = true;
130 m_status = value;
131 }
133 SetStatus(value);
134 return *this;
135 }
137
139
145 inline ExecutionResult GetResult() const { return m_result; }
146 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
147 inline void SetResult(ExecutionResult value) {
148 m_resultHasBeenSet = true;
149 m_result = value;
150 }
152 SetResult(value);
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
162 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
163 template <typename StartedT = Aws::Utils::DateTime>
164 void SetStarted(StartedT&& value) {
165 m_startedHasBeenSet = true;
166 m_started = std::forward<StartedT>(value);
167 }
168 template <typename StartedT = Aws::Utils::DateTime>
169 Job& WithStarted(StartedT&& value) {
170 SetStarted(std::forward<StartedT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetStopped() const { return m_stopped; }
180 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
181 template <typename StoppedT = Aws::Utils::DateTime>
182 void SetStopped(StoppedT&& value) {
183 m_stoppedHasBeenSet = true;
184 m_stopped = std::forward<StoppedT>(value);
185 }
186 template <typename StoppedT = Aws::Utils::DateTime>
187 Job& WithStopped(StoppedT&& value) {
188 SetStopped(std::forward<StoppedT>(value));
189 return *this;
190 }
192
194
197 inline const Counters& GetCounters() const { return m_counters; }
198 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
199 template <typename CountersT = Counters>
200 void SetCounters(CountersT&& value) {
201 m_countersHasBeenSet = true;
202 m_counters = std::forward<CountersT>(value);
203 }
204 template <typename CountersT = Counters>
205 Job& WithCounters(CountersT&& value) {
206 SetCounters(std::forward<CountersT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::String& GetMessage() const { return m_message; }
216 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
217 template <typename MessageT = Aws::String>
218 void SetMessage(MessageT&& value) {
219 m_messageHasBeenSet = true;
220 m_message = std::forward<MessageT>(value);
221 }
222 template <typename MessageT = Aws::String>
223 Job& WithMessage(MessageT&& value) {
224 SetMessage(std::forward<MessageT>(value));
225 return *this;
226 }
228
230
233 inline const Device& GetDevice() const { return m_device; }
234 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
235 template <typename DeviceT = Device>
236 void SetDevice(DeviceT&& value) {
237 m_deviceHasBeenSet = true;
238 m_device = std::forward<DeviceT>(value);
239 }
240 template <typename DeviceT = Device>
241 Job& WithDevice(DeviceT&& value) {
242 SetDevice(std::forward<DeviceT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
252 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
253 template <typename InstanceArnT = Aws::String>
254 void SetInstanceArn(InstanceArnT&& value) {
255 m_instanceArnHasBeenSet = true;
256 m_instanceArn = std::forward<InstanceArnT>(value);
257 }
258 template <typename InstanceArnT = Aws::String>
259 Job& WithInstanceArn(InstanceArnT&& value) {
260 SetInstanceArn(std::forward<InstanceArnT>(value));
261 return *this;
262 }
264
266
269 inline const DeviceMinutes& GetDeviceMinutes() const { return m_deviceMinutes; }
270 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
271 template <typename DeviceMinutesT = DeviceMinutes>
272 void SetDeviceMinutes(DeviceMinutesT&& value) {
273 m_deviceMinutesHasBeenSet = true;
274 m_deviceMinutes = std::forward<DeviceMinutesT>(value);
275 }
276 template <typename DeviceMinutesT = DeviceMinutes>
277 Job& WithDeviceMinutes(DeviceMinutesT&& value) {
278 SetDeviceMinutes(std::forward<DeviceMinutesT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetVideoEndpoint() const { return m_videoEndpoint; }
288 inline bool VideoEndpointHasBeenSet() const { return m_videoEndpointHasBeenSet; }
289 template <typename VideoEndpointT = Aws::String>
290 void SetVideoEndpoint(VideoEndpointT&& value) {
291 m_videoEndpointHasBeenSet = true;
292 m_videoEndpoint = std::forward<VideoEndpointT>(value);
293 }
294 template <typename VideoEndpointT = Aws::String>
295 Job& WithVideoEndpoint(VideoEndpointT&& value) {
296 SetVideoEndpoint(std::forward<VideoEndpointT>(value));
297 return *this;
298 }
300
302
306 inline bool GetVideoCapture() const { return m_videoCapture; }
307 inline bool VideoCaptureHasBeenSet() const { return m_videoCaptureHasBeenSet; }
308 inline void SetVideoCapture(bool value) {
309 m_videoCaptureHasBeenSet = true;
310 m_videoCapture = value;
311 }
312 inline Job& WithVideoCapture(bool value) {
313 SetVideoCapture(value);
314 return *this;
315 }
317 private:
318 Aws::String m_arn;
319
320 Aws::String m_name;
321
323
324 Aws::Utils::DateTime m_created{};
325
327
329
330 Aws::Utils::DateTime m_started{};
331
332 Aws::Utils::DateTime m_stopped{};
333
334 Counters m_counters;
335
336 Aws::String m_message;
337
338 Device m_device;
339
340 Aws::String m_instanceArn;
341
342 DeviceMinutes m_deviceMinutes;
343
344 Aws::String m_videoEndpoint;
345
346 bool m_videoCapture{false};
347 bool m_arnHasBeenSet = false;
348 bool m_nameHasBeenSet = false;
349 bool m_typeHasBeenSet = false;
350 bool m_createdHasBeenSet = false;
351 bool m_statusHasBeenSet = false;
352 bool m_resultHasBeenSet = false;
353 bool m_startedHasBeenSet = false;
354 bool m_stoppedHasBeenSet = false;
355 bool m_countersHasBeenSet = false;
356 bool m_messageHasBeenSet = false;
357 bool m_deviceHasBeenSet = false;
358 bool m_instanceArnHasBeenSet = false;
359 bool m_deviceMinutesHasBeenSet = false;
360 bool m_videoEndpointHasBeenSet = false;
361 bool m_videoCaptureHasBeenSet = false;
362};
363
364} // namespace Model
365} // namespace DeviceFarm
366} // namespace Aws
bool DeviceMinutesHasBeenSet() const
Definition Job.h:270
void SetName(NameT &&value)
Definition Job.h:66
bool VideoEndpointHasBeenSet() const
Definition Job.h:288
const Counters & GetCounters() const
Definition Job.h:197
bool NameHasBeenSet() const
Definition Job.h:64
void SetResult(ExecutionResult value)
Definition Job.h:147
const Device & GetDevice() const
Definition Job.h:233
void SetArn(ArnT &&value)
Definition Job.h:48
void SetStatus(ExecutionStatus value)
Definition Job.h:128
Job & WithVideoEndpoint(VideoEndpointT &&value)
Definition Job.h:295
const Aws::String & GetVideoEndpoint() const
Definition Job.h:287
bool StartedHasBeenSet() const
Definition Job.h:162
bool StatusHasBeenSet() const
Definition Job.h:127
Job & WithName(NameT &&value)
Definition Job.h:71
void SetVideoCapture(bool value)
Definition Job.h:308
Job & WithResult(ExecutionResult value)
Definition Job.h:151
const Aws::String & GetInstanceArn() const
Definition Job.h:251
Job & WithCreated(CreatedT &&value)
Definition Job.h:112
Job & WithStatus(ExecutionStatus value)
Definition Job.h:132
AWS_DEVICEFARM_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceMinutes(DeviceMinutesT &&value)
Definition Job.h:272
bool CreatedHasBeenSet() const
Definition Job.h:105
Job & WithStopped(StoppedT &&value)
Definition Job.h:187
void SetStopped(StoppedT &&value)
Definition Job.h:182
void SetVideoEndpoint(VideoEndpointT &&value)
Definition Job.h:290
Job & WithInstanceArn(InstanceArnT &&value)
Definition Job.h:259
const Aws::String & GetMessage() const
Definition Job.h:215
Job & WithArn(ArnT &&value)
Definition Job.h:53
Job & WithType(TestType value)
Definition Job.h:94
bool ArnHasBeenSet() const
Definition Job.h:46
const Aws::Utils::DateTime & GetCreated() const
Definition Job.h:104
bool TypeHasBeenSet() const
Definition Job.h:89
const Aws::String & GetName() const
Definition Job.h:63
bool CountersHasBeenSet() const
Definition Job.h:198
AWS_DEVICEFARM_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DeviceHasBeenSet() const
Definition Job.h:234
void SetDevice(DeviceT &&value)
Definition Job.h:236
bool ResultHasBeenSet() const
Definition Job.h:146
bool StoppedHasBeenSet() const
Definition Job.h:180
ExecutionResult GetResult() const
Definition Job.h:145
AWS_DEVICEFARM_API Job()=default
Job & WithMessage(MessageT &&value)
Definition Job.h:223
Job & WithDeviceMinutes(DeviceMinutesT &&value)
Definition Job.h:277
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageHasBeenSet() const
Definition Job.h:216
bool GetVideoCapture() const
Definition Job.h:306
const Aws::String & GetArn() const
Definition Job.h:45
Job & WithVideoCapture(bool value)
Definition Job.h:312
bool VideoCaptureHasBeenSet() const
Definition Job.h:307
void SetStarted(StartedT &&value)
Definition Job.h:164
void SetType(TestType value)
Definition Job.h:90
const Aws::Utils::DateTime & GetStarted() const
Definition Job.h:161
void SetCounters(CountersT &&value)
Definition Job.h:200
Job & WithStarted(StartedT &&value)
Definition Job.h:169
void SetInstanceArn(InstanceArnT &&value)
Definition Job.h:254
void SetMessage(MessageT &&value)
Definition Job.h:218
bool InstanceArnHasBeenSet() const
Definition Job.h:252
ExecutionStatus GetStatus() const
Definition Job.h:126
Job & WithDevice(DeviceT &&value)
Definition Job.h:241
const Aws::Utils::DateTime & GetStopped() const
Definition Job.h:179
void SetCreated(CreatedT &&value)
Definition Job.h:107
const DeviceMinutes & GetDeviceMinutes() const
Definition Job.h:269
TestType GetType() const
Definition Job.h:88
Job & WithCounters(CountersT &&value)
Definition Job.h:205
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue