AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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/JobInsights.h>
16#include <aws/devicefarm/model/TestType.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DeviceFarm {
28namespace Model {
29
35class Job {
36 public:
37 AWS_DEVICEFARM_API Job() = default;
38 AWS_DEVICEFARM_API Job(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
54 Job& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 Job& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
89 inline TestType GetType() const { return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(TestType value) {
92 m_typeHasBeenSet = true;
93 m_type = value;
94 }
95 inline Job& WithType(TestType value) {
96 SetType(value);
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
106 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
107 template <typename CreatedT = Aws::Utils::DateTime>
108 void SetCreated(CreatedT&& value) {
109 m_createdHasBeenSet = true;
110 m_created = std::forward<CreatedT>(value);
111 }
112 template <typename CreatedT = Aws::Utils::DateTime>
113 Job& WithCreated(CreatedT&& value) {
114 SetCreated(std::forward<CreatedT>(value));
115 return *this;
116 }
118
120
127 inline ExecutionStatus GetStatus() const { return m_status; }
128 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 inline void SetStatus(ExecutionStatus value) {
130 m_statusHasBeenSet = true;
131 m_status = value;
132 }
134 SetStatus(value);
135 return *this;
136 }
138
140
146 inline ExecutionResult GetResult() const { return m_result; }
147 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
148 inline void SetResult(ExecutionResult value) {
149 m_resultHasBeenSet = true;
150 m_result = value;
151 }
153 SetResult(value);
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
163 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
164 template <typename StartedT = Aws::Utils::DateTime>
165 void SetStarted(StartedT&& value) {
166 m_startedHasBeenSet = true;
167 m_started = std::forward<StartedT>(value);
168 }
169 template <typename StartedT = Aws::Utils::DateTime>
170 Job& WithStarted(StartedT&& value) {
171 SetStarted(std::forward<StartedT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetStopped() const { return m_stopped; }
181 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
182 template <typename StoppedT = Aws::Utils::DateTime>
183 void SetStopped(StoppedT&& value) {
184 m_stoppedHasBeenSet = true;
185 m_stopped = std::forward<StoppedT>(value);
186 }
187 template <typename StoppedT = Aws::Utils::DateTime>
188 Job& WithStopped(StoppedT&& value) {
189 SetStopped(std::forward<StoppedT>(value));
190 return *this;
191 }
193
195
198 inline const Counters& GetCounters() const { return m_counters; }
199 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
200 template <typename CountersT = Counters>
201 void SetCounters(CountersT&& value) {
202 m_countersHasBeenSet = true;
203 m_counters = std::forward<CountersT>(value);
204 }
205 template <typename CountersT = Counters>
206 Job& WithCounters(CountersT&& value) {
207 SetCounters(std::forward<CountersT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::String& GetMessage() const { return m_message; }
217 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
218 template <typename MessageT = Aws::String>
219 void SetMessage(MessageT&& value) {
220 m_messageHasBeenSet = true;
221 m_message = std::forward<MessageT>(value);
222 }
223 template <typename MessageT = Aws::String>
224 Job& WithMessage(MessageT&& value) {
225 SetMessage(std::forward<MessageT>(value));
226 return *this;
227 }
229
231
234 inline const Device& GetDevice() const { return m_device; }
235 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
236 template <typename DeviceT = Device>
237 void SetDevice(DeviceT&& value) {
238 m_deviceHasBeenSet = true;
239 m_device = std::forward<DeviceT>(value);
240 }
241 template <typename DeviceT = Device>
242 Job& WithDevice(DeviceT&& value) {
243 SetDevice(std::forward<DeviceT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
253 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
254 template <typename InstanceArnT = Aws::String>
255 void SetInstanceArn(InstanceArnT&& value) {
256 m_instanceArnHasBeenSet = true;
257 m_instanceArn = std::forward<InstanceArnT>(value);
258 }
259 template <typename InstanceArnT = Aws::String>
260 Job& WithInstanceArn(InstanceArnT&& value) {
261 SetInstanceArn(std::forward<InstanceArnT>(value));
262 return *this;
263 }
265
267
270 inline const DeviceMinutes& GetDeviceMinutes() const { return m_deviceMinutes; }
271 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
272 template <typename DeviceMinutesT = DeviceMinutes>
273 void SetDeviceMinutes(DeviceMinutesT&& value) {
274 m_deviceMinutesHasBeenSet = true;
275 m_deviceMinutes = std::forward<DeviceMinutesT>(value);
276 }
277 template <typename DeviceMinutesT = DeviceMinutes>
278 Job& WithDeviceMinutes(DeviceMinutesT&& value) {
279 SetDeviceMinutes(std::forward<DeviceMinutesT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetVideoEndpoint() const { return m_videoEndpoint; }
289 inline bool VideoEndpointHasBeenSet() const { return m_videoEndpointHasBeenSet; }
290 template <typename VideoEndpointT = Aws::String>
291 void SetVideoEndpoint(VideoEndpointT&& value) {
292 m_videoEndpointHasBeenSet = true;
293 m_videoEndpoint = std::forward<VideoEndpointT>(value);
294 }
295 template <typename VideoEndpointT = Aws::String>
296 Job& WithVideoEndpoint(VideoEndpointT&& value) {
297 SetVideoEndpoint(std::forward<VideoEndpointT>(value));
298 return *this;
299 }
301
303
307 inline bool GetVideoCapture() const { return m_videoCapture; }
308 inline bool VideoCaptureHasBeenSet() const { return m_videoCaptureHasBeenSet; }
309 inline void SetVideoCapture(bool value) {
310 m_videoCaptureHasBeenSet = true;
311 m_videoCapture = value;
312 }
313 inline Job& WithVideoCapture(bool value) {
314 SetVideoCapture(value);
315 return *this;
316 }
318
320
325 inline const JobInsights& GetInsights() const { return m_insights; }
326 inline bool InsightsHasBeenSet() const { return m_insightsHasBeenSet; }
327 template <typename InsightsT = JobInsights>
328 void SetInsights(InsightsT&& value) {
329 m_insightsHasBeenSet = true;
330 m_insights = std::forward<InsightsT>(value);
331 }
332 template <typename InsightsT = JobInsights>
333 Job& WithInsights(InsightsT&& value) {
334 SetInsights(std::forward<InsightsT>(value));
335 return *this;
336 }
338 private:
339 Aws::String m_arn;
340
341 Aws::String m_name;
342
344
345 Aws::Utils::DateTime m_created{};
346
348
350
351 Aws::Utils::DateTime m_started{};
352
353 Aws::Utils::DateTime m_stopped{};
354
355 Counters m_counters;
356
357 Aws::String m_message;
358
359 Device m_device;
360
361 Aws::String m_instanceArn;
362
363 DeviceMinutes m_deviceMinutes;
364
365 Aws::String m_videoEndpoint;
366
367 bool m_videoCapture{false};
368
369 JobInsights m_insights;
370 bool m_arnHasBeenSet = false;
371 bool m_nameHasBeenSet = false;
372 bool m_typeHasBeenSet = false;
373 bool m_createdHasBeenSet = false;
374 bool m_statusHasBeenSet = false;
375 bool m_resultHasBeenSet = false;
376 bool m_startedHasBeenSet = false;
377 bool m_stoppedHasBeenSet = false;
378 bool m_countersHasBeenSet = false;
379 bool m_messageHasBeenSet = false;
380 bool m_deviceHasBeenSet = false;
381 bool m_instanceArnHasBeenSet = false;
382 bool m_deviceMinutesHasBeenSet = false;
383 bool m_videoEndpointHasBeenSet = false;
384 bool m_videoCaptureHasBeenSet = false;
385 bool m_insightsHasBeenSet = false;
386};
387
388} // namespace Model
389} // namespace DeviceFarm
390} // namespace Aws
bool DeviceMinutesHasBeenSet() const
Definition Job.h:271
void SetName(NameT &&value)
Definition Job.h:67
bool VideoEndpointHasBeenSet() const
Definition Job.h:289
const Counters & GetCounters() const
Definition Job.h:198
bool NameHasBeenSet() const
Definition Job.h:65
void SetResult(ExecutionResult value)
Definition Job.h:148
const Device & GetDevice() const
Definition Job.h:234
void SetArn(ArnT &&value)
Definition Job.h:49
void SetStatus(ExecutionStatus value)
Definition Job.h:129
Job & WithVideoEndpoint(VideoEndpointT &&value)
Definition Job.h:296
const Aws::String & GetVideoEndpoint() const
Definition Job.h:288
bool StartedHasBeenSet() const
Definition Job.h:163
bool StatusHasBeenSet() const
Definition Job.h:128
Job & WithName(NameT &&value)
Definition Job.h:72
void SetVideoCapture(bool value)
Definition Job.h:309
Job & WithResult(ExecutionResult value)
Definition Job.h:152
const Aws::String & GetInstanceArn() const
Definition Job.h:252
Job & WithCreated(CreatedT &&value)
Definition Job.h:113
Job & WithStatus(ExecutionStatus value)
Definition Job.h:133
AWS_DEVICEFARM_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceMinutes(DeviceMinutesT &&value)
Definition Job.h:273
bool CreatedHasBeenSet() const
Definition Job.h:106
Job & WithStopped(StoppedT &&value)
Definition Job.h:188
void SetStopped(StoppedT &&value)
Definition Job.h:183
void SetVideoEndpoint(VideoEndpointT &&value)
Definition Job.h:291
Job & WithInstanceArn(InstanceArnT &&value)
Definition Job.h:260
const Aws::String & GetMessage() const
Definition Job.h:216
Job & WithArn(ArnT &&value)
Definition Job.h:54
bool InsightsHasBeenSet() const
Definition Job.h:326
Job & WithType(TestType value)
Definition Job.h:95
bool ArnHasBeenSet() const
Definition Job.h:47
const Aws::Utils::DateTime & GetCreated() const
Definition Job.h:105
bool TypeHasBeenSet() const
Definition Job.h:90
const Aws::String & GetName() const
Definition Job.h:64
bool CountersHasBeenSet() const
Definition Job.h:199
AWS_DEVICEFARM_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DeviceHasBeenSet() const
Definition Job.h:235
void SetInsights(InsightsT &&value)
Definition Job.h:328
void SetDevice(DeviceT &&value)
Definition Job.h:237
bool ResultHasBeenSet() const
Definition Job.h:147
bool StoppedHasBeenSet() const
Definition Job.h:181
ExecutionResult GetResult() const
Definition Job.h:146
AWS_DEVICEFARM_API Job()=default
Job & WithMessage(MessageT &&value)
Definition Job.h:224
Job & WithDeviceMinutes(DeviceMinutesT &&value)
Definition Job.h:278
const JobInsights & GetInsights() const
Definition Job.h:325
Job & WithInsights(InsightsT &&value)
Definition Job.h:333
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageHasBeenSet() const
Definition Job.h:217
bool GetVideoCapture() const
Definition Job.h:307
const Aws::String & GetArn() const
Definition Job.h:46
Job & WithVideoCapture(bool value)
Definition Job.h:313
bool VideoCaptureHasBeenSet() const
Definition Job.h:308
void SetStarted(StartedT &&value)
Definition Job.h:165
void SetType(TestType value)
Definition Job.h:91
const Aws::Utils::DateTime & GetStarted() const
Definition Job.h:162
void SetCounters(CountersT &&value)
Definition Job.h:201
Job & WithStarted(StartedT &&value)
Definition Job.h:170
void SetInstanceArn(InstanceArnT &&value)
Definition Job.h:255
void SetMessage(MessageT &&value)
Definition Job.h:219
bool InstanceArnHasBeenSet() const
Definition Job.h:253
ExecutionStatus GetStatus() const
Definition Job.h:127
Job & WithDevice(DeviceT &&value)
Definition Job.h:242
const Aws::Utils::DateTime & GetStopped() const
Definition Job.h:180
void SetCreated(CreatedT &&value)
Definition Job.h:108
const DeviceMinutes & GetDeviceMinutes() const
Definition Job.h:270
TestType GetType() const
Definition Job.h:89
Job & WithCounters(CountersT &&value)
Definition Job.h:206
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue