AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RemoteAccessSession.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/BillingMethod.h>
11#include <aws/devicefarm/model/Device.h>
12#include <aws/devicefarm/model/DeviceMinutes.h>
13#include <aws/devicefarm/model/DeviceProxy.h>
14#include <aws/devicefarm/model/ExecutionResult.h>
15#include <aws/devicefarm/model/ExecutionStatus.h>
16#include <aws/devicefarm/model/RemoteAccessEndpoints.h>
17#include <aws/devicefarm/model/VpcConfig.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace DeviceFarm {
29namespace Model {
30
38 public:
39 AWS_DEVICEFARM_API RemoteAccessSession() = default;
40 AWS_DEVICEFARM_API RemoteAccessSession(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template <typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) {
52 m_arnHasBeenSet = true;
53 m_arn = std::forward<ArnT>(value);
54 }
55 template <typename ArnT = Aws::String>
57 SetArn(std::forward<ArnT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 RemoteAccessSession& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
85 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
86 template <typename CreatedT = Aws::Utils::DateTime>
87 void SetCreated(CreatedT&& value) {
88 m_createdHasBeenSet = true;
89 m_created = std::forward<CreatedT>(value);
90 }
91 template <typename CreatedT = Aws::Utils::DateTime>
92 RemoteAccessSession& WithCreated(CreatedT&& value) {
93 SetCreated(std::forward<CreatedT>(value));
94 return *this;
95 }
97
99
106 inline ExecutionStatus GetStatus() const { return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(ExecutionStatus value) {
109 m_statusHasBeenSet = true;
110 m_status = value;
111 }
113 SetStatus(value);
114 return *this;
115 }
117
119
125 inline ExecutionResult GetResult() const { return m_result; }
126 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
127 inline void SetResult(ExecutionResult value) {
128 m_resultHasBeenSet = true;
129 m_result = value;
130 }
132 SetResult(value);
133 return *this;
134 }
136
138
141 inline const Aws::String& GetMessage() const { return m_message; }
142 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
143 template <typename MessageT = Aws::String>
144 void SetMessage(MessageT&& value) {
145 m_messageHasBeenSet = true;
146 m_message = std::forward<MessageT>(value);
147 }
148 template <typename MessageT = Aws::String>
149 RemoteAccessSession& WithMessage(MessageT&& value) {
150 SetMessage(std::forward<MessageT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
160 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
161 template <typename StartedT = Aws::Utils::DateTime>
162 void SetStarted(StartedT&& value) {
163 m_startedHasBeenSet = true;
164 m_started = std::forward<StartedT>(value);
165 }
166 template <typename StartedT = Aws::Utils::DateTime>
167 RemoteAccessSession& WithStarted(StartedT&& value) {
168 SetStarted(std::forward<StartedT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetStopped() const { return m_stopped; }
178 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
179 template <typename StoppedT = Aws::Utils::DateTime>
180 void SetStopped(StoppedT&& value) {
181 m_stoppedHasBeenSet = true;
182 m_stopped = std::forward<StoppedT>(value);
183 }
184 template <typename StoppedT = Aws::Utils::DateTime>
185 RemoteAccessSession& WithStopped(StoppedT&& value) {
186 SetStopped(std::forward<StoppedT>(value));
187 return *this;
188 }
190
192
195 inline const Device& GetDevice() const { return m_device; }
196 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
197 template <typename DeviceT = Device>
198 void SetDevice(DeviceT&& value) {
199 m_deviceHasBeenSet = true;
200 m_device = std::forward<DeviceT>(value);
201 }
202 template <typename DeviceT = Device>
203 RemoteAccessSession& WithDevice(DeviceT&& value) {
204 SetDevice(std::forward<DeviceT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
214 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
215 template <typename InstanceArnT = Aws::String>
216 void SetInstanceArn(InstanceArnT&& value) {
217 m_instanceArnHasBeenSet = true;
218 m_instanceArn = std::forward<InstanceArnT>(value);
219 }
220 template <typename InstanceArnT = Aws::String>
221 RemoteAccessSession& WithInstanceArn(InstanceArnT&& value) {
222 SetInstanceArn(std::forward<InstanceArnT>(value));
223 return *this;
224 }
226
228
235 inline BillingMethod GetBillingMethod() const { return m_billingMethod; }
236 inline bool BillingMethodHasBeenSet() const { return m_billingMethodHasBeenSet; }
237 inline void SetBillingMethod(BillingMethod value) {
238 m_billingMethodHasBeenSet = true;
239 m_billingMethod = value;
240 }
242 SetBillingMethod(value);
243 return *this;
244 }
246
248
252 inline const DeviceMinutes& GetDeviceMinutes() const { return m_deviceMinutes; }
253 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
254 template <typename DeviceMinutesT = DeviceMinutes>
255 void SetDeviceMinutes(DeviceMinutesT&& value) {
256 m_deviceMinutesHasBeenSet = true;
257 m_deviceMinutes = std::forward<DeviceMinutesT>(value);
258 }
259 template <typename DeviceMinutesT = DeviceMinutes>
260 RemoteAccessSession& WithDeviceMinutes(DeviceMinutesT&& value) {
261 SetDeviceMinutes(std::forward<DeviceMinutesT>(value));
262 return *this;
263 }
265
267
274 inline const Aws::String& GetDeviceUdid() const { return m_deviceUdid; }
275 inline bool DeviceUdidHasBeenSet() const { return m_deviceUdidHasBeenSet; }
276 template <typename DeviceUdidT = Aws::String>
277 void SetDeviceUdid(DeviceUdidT&& value) {
278 m_deviceUdidHasBeenSet = true;
279 m_deviceUdid = std::forward<DeviceUdidT>(value);
280 }
281 template <typename DeviceUdidT = Aws::String>
282 RemoteAccessSession& WithDeviceUdid(DeviceUdidT&& value) {
283 SetDeviceUdid(std::forward<DeviceUdidT>(value));
284 return *this;
285 }
287
289
296 inline bool GetSkipAppResign() const { return m_skipAppResign; }
297 inline bool SkipAppResignHasBeenSet() const { return m_skipAppResignHasBeenSet; }
298 inline void SetSkipAppResign(bool value) {
299 m_skipAppResignHasBeenSet = true;
300 m_skipAppResign = value;
301 }
303 SetSkipAppResign(value);
304 return *this;
305 }
307
309
312 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
313 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
314 template <typename VpcConfigT = VpcConfig>
315 void SetVpcConfig(VpcConfigT&& value) {
316 m_vpcConfigHasBeenSet = true;
317 m_vpcConfig = std::forward<VpcConfigT>(value);
318 }
319 template <typename VpcConfigT = VpcConfig>
320 RemoteAccessSession& WithVpcConfig(VpcConfigT&& value) {
321 SetVpcConfig(std::forward<VpcConfigT>(value));
322 return *this;
323 }
325
327
330 inline const DeviceProxy& GetDeviceProxy() const { return m_deviceProxy; }
331 inline bool DeviceProxyHasBeenSet() const { return m_deviceProxyHasBeenSet; }
332 template <typename DeviceProxyT = DeviceProxy>
333 void SetDeviceProxy(DeviceProxyT&& value) {
334 m_deviceProxyHasBeenSet = true;
335 m_deviceProxy = std::forward<DeviceProxyT>(value);
336 }
337 template <typename DeviceProxyT = DeviceProxy>
338 RemoteAccessSession& WithDeviceProxy(DeviceProxyT&& value) {
339 SetDeviceProxy(std::forward<DeviceProxyT>(value));
340 return *this;
341 }
343
345
348 inline const Aws::String& GetAppUpload() const { return m_appUpload; }
349 inline bool AppUploadHasBeenSet() const { return m_appUploadHasBeenSet; }
350 template <typename AppUploadT = Aws::String>
351 void SetAppUpload(AppUploadT&& value) {
352 m_appUploadHasBeenSet = true;
353 m_appUpload = std::forward<AppUploadT>(value);
354 }
355 template <typename AppUploadT = Aws::String>
356 RemoteAccessSession& WithAppUpload(AppUploadT&& value) {
357 SetAppUpload(std::forward<AppUploadT>(value));
358 return *this;
359 }
361
363
364 inline const RemoteAccessEndpoints& GetEndpoints() const { return m_endpoints; }
365 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
366 template <typename EndpointsT = RemoteAccessEndpoints>
367 void SetEndpoints(EndpointsT&& value) {
368 m_endpointsHasBeenSet = true;
369 m_endpoints = std::forward<EndpointsT>(value);
370 }
371 template <typename EndpointsT = RemoteAccessEndpoints>
372 RemoteAccessSession& WithEndpoints(EndpointsT&& value) {
373 SetEndpoints(std::forward<EndpointsT>(value));
374 return *this;
375 }
377 private:
378 Aws::String m_arn;
379
380 Aws::String m_name;
381
382 Aws::Utils::DateTime m_created{};
383
385
387
388 Aws::String m_message;
389
390 Aws::Utils::DateTime m_started{};
391
392 Aws::Utils::DateTime m_stopped{};
393
394 Device m_device;
395
396 Aws::String m_instanceArn;
397
398 BillingMethod m_billingMethod{BillingMethod::NOT_SET};
399
400 DeviceMinutes m_deviceMinutes;
401
402 Aws::String m_deviceUdid;
403
404 bool m_skipAppResign{false};
405
406 VpcConfig m_vpcConfig;
407
408 DeviceProxy m_deviceProxy;
409
410 Aws::String m_appUpload;
411
412 RemoteAccessEndpoints m_endpoints;
413 bool m_arnHasBeenSet = false;
414 bool m_nameHasBeenSet = false;
415 bool m_createdHasBeenSet = false;
416 bool m_statusHasBeenSet = false;
417 bool m_resultHasBeenSet = false;
418 bool m_messageHasBeenSet = false;
419 bool m_startedHasBeenSet = false;
420 bool m_stoppedHasBeenSet = false;
421 bool m_deviceHasBeenSet = false;
422 bool m_instanceArnHasBeenSet = false;
423 bool m_billingMethodHasBeenSet = false;
424 bool m_deviceMinutesHasBeenSet = false;
425 bool m_deviceUdidHasBeenSet = false;
426 bool m_skipAppResignHasBeenSet = false;
427 bool m_vpcConfigHasBeenSet = false;
428 bool m_deviceProxyHasBeenSet = false;
429 bool m_appUploadHasBeenSet = false;
430 bool m_endpointsHasBeenSet = false;
431};
432
433} // namespace Model
434} // namespace DeviceFarm
435} // namespace Aws
RemoteAccessSession & WithCreated(CreatedT &&value)
AWS_DEVICEFARM_API RemoteAccessSession()=default
const Aws::Utils::DateTime & GetStopped() const
RemoteAccessSession & WithStarted(StartedT &&value)
RemoteAccessSession & WithDeviceProxy(DeviceProxyT &&value)
RemoteAccessSession & WithBillingMethod(BillingMethod value)
RemoteAccessSession & WithDeviceUdid(DeviceUdidT &&value)
RemoteAccessSession & WithStatus(ExecutionStatus value)
AWS_DEVICEFARM_API RemoteAccessSession(Aws::Utils::Json::JsonView jsonValue)
RemoteAccessSession & WithSkipAppResign(bool value)
RemoteAccessSession & WithResult(ExecutionResult value)
RemoteAccessSession & WithAppUpload(AppUploadT &&value)
const Aws::Utils::DateTime & GetStarted() const
const Aws::Utils::DateTime & GetCreated() const
RemoteAccessSession & WithDeviceMinutes(DeviceMinutesT &&value)
AWS_DEVICEFARM_API RemoteAccessSession & operator=(Aws::Utils::Json::JsonView jsonValue)
RemoteAccessSession & WithInstanceArn(InstanceArnT &&value)
RemoteAccessSession & WithEndpoints(EndpointsT &&value)
RemoteAccessSession & WithMessage(MessageT &&value)
RemoteAccessSession & WithArn(ArnT &&value)
const RemoteAccessEndpoints & GetEndpoints() const
RemoteAccessSession & WithStopped(StoppedT &&value)
RemoteAccessSession & WithDevice(DeviceT &&value)
RemoteAccessSession & WithName(NameT &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
RemoteAccessSession & WithVpcConfig(VpcConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue