AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 Job& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
67 template<typename NameT = Aws::String>
68 Job& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
70
72
82 inline TestType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(TestType value) { m_typeHasBeenSet = true; m_type = value; }
85 inline Job& WithType(TestType value) { SetType(value); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
93 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
94 template<typename CreatedT = Aws::Utils::DateTime>
95 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
96 template<typename CreatedT = Aws::Utils::DateTime>
97 Job& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
99
101
108 inline ExecutionStatus GetStatus() const { return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(ExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
111 inline Job& WithStatus(ExecutionStatus value) { SetStatus(value); return *this;}
113
115
121 inline ExecutionResult GetResult() const { return m_result; }
122 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
123 inline void SetResult(ExecutionResult value) { m_resultHasBeenSet = true; m_result = value; }
124 inline Job& WithResult(ExecutionResult value) { SetResult(value); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
132 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
133 template<typename StartedT = Aws::Utils::DateTime>
134 void SetStarted(StartedT&& value) { m_startedHasBeenSet = true; m_started = std::forward<StartedT>(value); }
135 template<typename StartedT = Aws::Utils::DateTime>
136 Job& WithStarted(StartedT&& value) { SetStarted(std::forward<StartedT>(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetStopped() const { return m_stopped; }
144 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
145 template<typename StoppedT = Aws::Utils::DateTime>
146 void SetStopped(StoppedT&& value) { m_stoppedHasBeenSet = true; m_stopped = std::forward<StoppedT>(value); }
147 template<typename StoppedT = Aws::Utils::DateTime>
148 Job& WithStopped(StoppedT&& value) { SetStopped(std::forward<StoppedT>(value)); return *this;}
150
152
155 inline const Counters& GetCounters() const { return m_counters; }
156 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
157 template<typename CountersT = Counters>
158 void SetCounters(CountersT&& value) { m_countersHasBeenSet = true; m_counters = std::forward<CountersT>(value); }
159 template<typename CountersT = Counters>
160 Job& WithCounters(CountersT&& value) { SetCounters(std::forward<CountersT>(value)); return *this;}
162
164
167 inline const Aws::String& GetMessage() const { return m_message; }
168 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
169 template<typename MessageT = Aws::String>
170 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
171 template<typename MessageT = Aws::String>
172 Job& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
174
176
179 inline const Device& GetDevice() const { return m_device; }
180 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
181 template<typename DeviceT = Device>
182 void SetDevice(DeviceT&& value) { m_deviceHasBeenSet = true; m_device = std::forward<DeviceT>(value); }
183 template<typename DeviceT = Device>
184 Job& WithDevice(DeviceT&& value) { SetDevice(std::forward<DeviceT>(value)); return *this;}
186
188
191 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
192 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
193 template<typename InstanceArnT = Aws::String>
194 void SetInstanceArn(InstanceArnT&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::forward<InstanceArnT>(value); }
195 template<typename InstanceArnT = Aws::String>
196 Job& WithInstanceArn(InstanceArnT&& value) { SetInstanceArn(std::forward<InstanceArnT>(value)); return *this;}
198
200
203 inline const DeviceMinutes& GetDeviceMinutes() const { return m_deviceMinutes; }
204 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
205 template<typename DeviceMinutesT = DeviceMinutes>
206 void SetDeviceMinutes(DeviceMinutesT&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = std::forward<DeviceMinutesT>(value); }
207 template<typename DeviceMinutesT = DeviceMinutes>
208 Job& WithDeviceMinutes(DeviceMinutesT&& value) { SetDeviceMinutes(std::forward<DeviceMinutesT>(value)); return *this;}
210
212
215 inline const Aws::String& GetVideoEndpoint() const { return m_videoEndpoint; }
216 inline bool VideoEndpointHasBeenSet() const { return m_videoEndpointHasBeenSet; }
217 template<typename VideoEndpointT = Aws::String>
218 void SetVideoEndpoint(VideoEndpointT&& value) { m_videoEndpointHasBeenSet = true; m_videoEndpoint = std::forward<VideoEndpointT>(value); }
219 template<typename VideoEndpointT = Aws::String>
220 Job& WithVideoEndpoint(VideoEndpointT&& value) { SetVideoEndpoint(std::forward<VideoEndpointT>(value)); return *this;}
222
224
228 inline bool GetVideoCapture() const { return m_videoCapture; }
229 inline bool VideoCaptureHasBeenSet() const { return m_videoCaptureHasBeenSet; }
230 inline void SetVideoCapture(bool value) { m_videoCaptureHasBeenSet = true; m_videoCapture = value; }
231 inline Job& WithVideoCapture(bool value) { SetVideoCapture(value); return *this;}
233 private:
234
235 Aws::String m_arn;
236 bool m_arnHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
242 bool m_typeHasBeenSet = false;
243
244 Aws::Utils::DateTime m_created{};
245 bool m_createdHasBeenSet = false;
246
248 bool m_statusHasBeenSet = false;
249
251 bool m_resultHasBeenSet = false;
252
253 Aws::Utils::DateTime m_started{};
254 bool m_startedHasBeenSet = false;
255
256 Aws::Utils::DateTime m_stopped{};
257 bool m_stoppedHasBeenSet = false;
258
259 Counters m_counters;
260 bool m_countersHasBeenSet = false;
261
262 Aws::String m_message;
263 bool m_messageHasBeenSet = false;
264
265 Device m_device;
266 bool m_deviceHasBeenSet = false;
267
268 Aws::String m_instanceArn;
269 bool m_instanceArnHasBeenSet = false;
270
271 DeviceMinutes m_deviceMinutes;
272 bool m_deviceMinutesHasBeenSet = false;
273
274 Aws::String m_videoEndpoint;
275 bool m_videoEndpointHasBeenSet = false;
276
277 bool m_videoCapture{false};
278 bool m_videoCaptureHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace DeviceFarm
283} // namespace Aws
bool DeviceMinutesHasBeenSet() const
Definition Job.h:204
void SetName(NameT &&value)
Definition Job.h:66
bool VideoEndpointHasBeenSet() const
Definition Job.h:216
const Counters & GetCounters() const
Definition Job.h:155
bool NameHasBeenSet() const
Definition Job.h:64
void SetResult(ExecutionResult value)
Definition Job.h:123
const Device & GetDevice() const
Definition Job.h:179
void SetArn(ArnT &&value)
Definition Job.h:54
void SetStatus(ExecutionStatus value)
Definition Job.h:110
Job & WithVideoEndpoint(VideoEndpointT &&value)
Definition Job.h:220
const Aws::String & GetVideoEndpoint() const
Definition Job.h:215
bool StartedHasBeenSet() const
Definition Job.h:132
bool StatusHasBeenSet() const
Definition Job.h:109
Job & WithName(NameT &&value)
Definition Job.h:68
void SetVideoCapture(bool value)
Definition Job.h:230
Job & WithResult(ExecutionResult value)
Definition Job.h:124
const Aws::String & GetInstanceArn() const
Definition Job.h:191
Job & WithCreated(CreatedT &&value)
Definition Job.h:97
Job & WithStatus(ExecutionStatus value)
Definition Job.h:111
AWS_DEVICEFARM_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceMinutes(DeviceMinutesT &&value)
Definition Job.h:206
bool CreatedHasBeenSet() const
Definition Job.h:93
Job & WithStopped(StoppedT &&value)
Definition Job.h:148
void SetStopped(StoppedT &&value)
Definition Job.h:146
void SetVideoEndpoint(VideoEndpointT &&value)
Definition Job.h:218
Job & WithInstanceArn(InstanceArnT &&value)
Definition Job.h:196
const Aws::String & GetMessage() const
Definition Job.h:167
Job & WithArn(ArnT &&value)
Definition Job.h:56
Job & WithType(TestType value)
Definition Job.h:85
bool ArnHasBeenSet() const
Definition Job.h:52
const Aws::Utils::DateTime & GetCreated() const
Definition Job.h:92
bool TypeHasBeenSet() const
Definition Job.h:83
const Aws::String & GetName() const
Definition Job.h:63
bool CountersHasBeenSet() const
Definition Job.h:156
AWS_DEVICEFARM_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DeviceHasBeenSet() const
Definition Job.h:180
void SetDevice(DeviceT &&value)
Definition Job.h:182
bool ResultHasBeenSet() const
Definition Job.h:122
bool StoppedHasBeenSet() const
Definition Job.h:144
ExecutionResult GetResult() const
Definition Job.h:121
AWS_DEVICEFARM_API Job()=default
Job & WithMessage(MessageT &&value)
Definition Job.h:172
Job & WithDeviceMinutes(DeviceMinutesT &&value)
Definition Job.h:208
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageHasBeenSet() const
Definition Job.h:168
bool GetVideoCapture() const
Definition Job.h:228
const Aws::String & GetArn() const
Definition Job.h:51
Job & WithVideoCapture(bool value)
Definition Job.h:231
bool VideoCaptureHasBeenSet() const
Definition Job.h:229
void SetStarted(StartedT &&value)
Definition Job.h:134
void SetType(TestType value)
Definition Job.h:84
const Aws::Utils::DateTime & GetStarted() const
Definition Job.h:131
void SetCounters(CountersT &&value)
Definition Job.h:158
Job & WithStarted(StartedT &&value)
Definition Job.h:136
void SetInstanceArn(InstanceArnT &&value)
Definition Job.h:194
void SetMessage(MessageT &&value)
Definition Job.h:170
bool InstanceArnHasBeenSet() const
Definition Job.h:192
ExecutionStatus GetStatus() const
Definition Job.h:108
Job & WithDevice(DeviceT &&value)
Definition Job.h:184
const Aws::Utils::DateTime & GetStopped() const
Definition Job.h:143
void SetCreated(CreatedT &&value)
Definition Job.h:95
const DeviceMinutes & GetDeviceMinutes() const
Definition Job.h:203
TestType GetType() const
Definition Job.h:82
Job & WithCounters(CountersT &&value)
Definition Job.h:160
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue