AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RemoteAccessSession.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/devicefarm/model/ExecutionStatus.h>
11#include <aws/devicefarm/model/ExecutionResult.h>
12#include <aws/devicefarm/model/Device.h>
13#include <aws/devicefarm/model/BillingMethod.h>
14#include <aws/devicefarm/model/DeviceMinutes.h>
15#include <aws/devicefarm/model/InteractionMode.h>
16#include <aws/devicefarm/model/VpcConfig.h>
17#include <aws/devicefarm/model/DeviceProxy.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace DeviceFarm
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_DEVICEFARM_API RemoteAccessSession() = default;
45 AWS_DEVICEFARM_API RemoteAccessSession(Aws::Utils::Json::JsonView jsonValue);
47 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
56 template<typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
58 template<typename ArnT = Aws::String>
59 RemoteAccessSession& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
70 template<typename NameT = Aws::String>
71 RemoteAccessSession& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
79 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
80 template<typename CreatedT = Aws::Utils::DateTime>
81 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
82 template<typename CreatedT = Aws::Utils::DateTime>
83 RemoteAccessSession& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
85
87
94 inline ExecutionStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(ExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
97 inline RemoteAccessSession& WithStatus(ExecutionStatus value) { SetStatus(value); return *this;}
99
101
107 inline ExecutionResult GetResult() const { return m_result; }
108 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
109 inline void SetResult(ExecutionResult value) { m_resultHasBeenSet = true; m_result = value; }
110 inline RemoteAccessSession& WithResult(ExecutionResult value) { SetResult(value); return *this;}
112
114
117 inline const Aws::String& GetMessage() const { return m_message; }
118 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
119 template<typename MessageT = Aws::String>
120 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
121 template<typename MessageT = Aws::String>
122 RemoteAccessSession& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
130 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
131 template<typename StartedT = Aws::Utils::DateTime>
132 void SetStarted(StartedT&& value) { m_startedHasBeenSet = true; m_started = std::forward<StartedT>(value); }
133 template<typename StartedT = Aws::Utils::DateTime>
134 RemoteAccessSession& WithStarted(StartedT&& value) { SetStarted(std::forward<StartedT>(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetStopped() const { return m_stopped; }
142 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
143 template<typename StoppedT = Aws::Utils::DateTime>
144 void SetStopped(StoppedT&& value) { m_stoppedHasBeenSet = true; m_stopped = std::forward<StoppedT>(value); }
145 template<typename StoppedT = Aws::Utils::DateTime>
146 RemoteAccessSession& WithStopped(StoppedT&& value) { SetStopped(std::forward<StoppedT>(value)); return *this;}
148
150
153 inline const Device& GetDevice() const { return m_device; }
154 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
155 template<typename DeviceT = Device>
156 void SetDevice(DeviceT&& value) { m_deviceHasBeenSet = true; m_device = std::forward<DeviceT>(value); }
157 template<typename DeviceT = Device>
158 RemoteAccessSession& WithDevice(DeviceT&& value) { SetDevice(std::forward<DeviceT>(value)); return *this;}
160
162
165 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
166 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
167 template<typename InstanceArnT = Aws::String>
168 void SetInstanceArn(InstanceArnT&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::forward<InstanceArnT>(value); }
169 template<typename InstanceArnT = Aws::String>
170 RemoteAccessSession& WithInstanceArn(InstanceArnT&& value) { SetInstanceArn(std::forward<InstanceArnT>(value)); return *this;}
172
174
180 inline bool GetRemoteDebugEnabled() const { return m_remoteDebugEnabled; }
181 inline bool RemoteDebugEnabledHasBeenSet() const { return m_remoteDebugEnabledHasBeenSet; }
182 inline void SetRemoteDebugEnabled(bool value) { m_remoteDebugEnabledHasBeenSet = true; m_remoteDebugEnabled = value; }
183 inline RemoteAccessSession& WithRemoteDebugEnabled(bool value) { SetRemoteDebugEnabled(value); return *this;}
185
187
191 inline bool GetRemoteRecordEnabled() const { return m_remoteRecordEnabled; }
192 inline bool RemoteRecordEnabledHasBeenSet() const { return m_remoteRecordEnabledHasBeenSet; }
193 inline void SetRemoteRecordEnabled(bool value) { m_remoteRecordEnabledHasBeenSet = true; m_remoteRecordEnabled = value; }
194 inline RemoteAccessSession& WithRemoteRecordEnabled(bool value) { SetRemoteRecordEnabled(value); return *this;}
196
198
201 inline const Aws::String& GetRemoteRecordAppArn() const { return m_remoteRecordAppArn; }
202 inline bool RemoteRecordAppArnHasBeenSet() const { return m_remoteRecordAppArnHasBeenSet; }
203 template<typename RemoteRecordAppArnT = Aws::String>
204 void SetRemoteRecordAppArn(RemoteRecordAppArnT&& value) { m_remoteRecordAppArnHasBeenSet = true; m_remoteRecordAppArn = std::forward<RemoteRecordAppArnT>(value); }
205 template<typename RemoteRecordAppArnT = Aws::String>
206 RemoteAccessSession& WithRemoteRecordAppArn(RemoteRecordAppArnT&& value) { SetRemoteRecordAppArn(std::forward<RemoteRecordAppArnT>(value)); return *this;}
208
210
217 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
218 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
219 template<typename HostAddressT = Aws::String>
220 void SetHostAddress(HostAddressT&& value) { m_hostAddressHasBeenSet = true; m_hostAddress = std::forward<HostAddressT>(value); }
221 template<typename HostAddressT = Aws::String>
222 RemoteAccessSession& WithHostAddress(HostAddressT&& value) { SetHostAddress(std::forward<HostAddressT>(value)); return *this;}
224
226
233 inline const Aws::String& GetClientId() const { return m_clientId; }
234 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
235 template<typename ClientIdT = Aws::String>
236 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
237 template<typename ClientIdT = Aws::String>
238 RemoteAccessSession& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
240
242
249 inline BillingMethod GetBillingMethod() const { return m_billingMethod; }
250 inline bool BillingMethodHasBeenSet() const { return m_billingMethodHasBeenSet; }
251 inline void SetBillingMethod(BillingMethod value) { m_billingMethodHasBeenSet = true; m_billingMethod = value; }
254
256
260 inline const DeviceMinutes& GetDeviceMinutes() const { return m_deviceMinutes; }
261 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
262 template<typename DeviceMinutesT = DeviceMinutes>
263 void SetDeviceMinutes(DeviceMinutesT&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = std::forward<DeviceMinutesT>(value); }
264 template<typename DeviceMinutesT = DeviceMinutes>
265 RemoteAccessSession& WithDeviceMinutes(DeviceMinutesT&& value) { SetDeviceMinutes(std::forward<DeviceMinutesT>(value)); return *this;}
267
269
272 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
273 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
274 template<typename EndpointT = Aws::String>
275 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
276 template<typename EndpointT = Aws::String>
277 RemoteAccessSession& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
279
281
288 inline const Aws::String& GetDeviceUdid() const { return m_deviceUdid; }
289 inline bool DeviceUdidHasBeenSet() const { return m_deviceUdidHasBeenSet; }
290 template<typename DeviceUdidT = Aws::String>
291 void SetDeviceUdid(DeviceUdidT&& value) { m_deviceUdidHasBeenSet = true; m_deviceUdid = std::forward<DeviceUdidT>(value); }
292 template<typename DeviceUdidT = Aws::String>
293 RemoteAccessSession& WithDeviceUdid(DeviceUdidT&& value) { SetDeviceUdid(std::forward<DeviceUdidT>(value)); return *this;}
295
297
308 inline InteractionMode GetInteractionMode() const { return m_interactionMode; }
309 inline bool InteractionModeHasBeenSet() const { return m_interactionModeHasBeenSet; }
310 inline void SetInteractionMode(InteractionMode value) { m_interactionModeHasBeenSet = true; m_interactionMode = value; }
313
315
322 inline bool GetSkipAppResign() const { return m_skipAppResign; }
323 inline bool SkipAppResignHasBeenSet() const { return m_skipAppResignHasBeenSet; }
324 inline void SetSkipAppResign(bool value) { m_skipAppResignHasBeenSet = true; m_skipAppResign = value; }
325 inline RemoteAccessSession& WithSkipAppResign(bool value) { SetSkipAppResign(value); return *this;}
327
329
332 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
333 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
334 template<typename VpcConfigT = VpcConfig>
335 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
336 template<typename VpcConfigT = VpcConfig>
337 RemoteAccessSession& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
339
341
344 inline const DeviceProxy& GetDeviceProxy() const { return m_deviceProxy; }
345 inline bool DeviceProxyHasBeenSet() const { return m_deviceProxyHasBeenSet; }
346 template<typename DeviceProxyT = DeviceProxy>
347 void SetDeviceProxy(DeviceProxyT&& value) { m_deviceProxyHasBeenSet = true; m_deviceProxy = std::forward<DeviceProxyT>(value); }
348 template<typename DeviceProxyT = DeviceProxy>
349 RemoteAccessSession& WithDeviceProxy(DeviceProxyT&& value) { SetDeviceProxy(std::forward<DeviceProxyT>(value)); return *this;}
351 private:
352
353 Aws::String m_arn;
354 bool m_arnHasBeenSet = false;
355
356 Aws::String m_name;
357 bool m_nameHasBeenSet = false;
358
359 Aws::Utils::DateTime m_created{};
360 bool m_createdHasBeenSet = false;
361
363 bool m_statusHasBeenSet = false;
364
366 bool m_resultHasBeenSet = false;
367
368 Aws::String m_message;
369 bool m_messageHasBeenSet = false;
370
371 Aws::Utils::DateTime m_started{};
372 bool m_startedHasBeenSet = false;
373
374 Aws::Utils::DateTime m_stopped{};
375 bool m_stoppedHasBeenSet = false;
376
377 Device m_device;
378 bool m_deviceHasBeenSet = false;
379
380 Aws::String m_instanceArn;
381 bool m_instanceArnHasBeenSet = false;
382
383 bool m_remoteDebugEnabled{false};
384 bool m_remoteDebugEnabledHasBeenSet = false;
385
386 bool m_remoteRecordEnabled{false};
387 bool m_remoteRecordEnabledHasBeenSet = false;
388
389 Aws::String m_remoteRecordAppArn;
390 bool m_remoteRecordAppArnHasBeenSet = false;
391
392 Aws::String m_hostAddress;
393 bool m_hostAddressHasBeenSet = false;
394
395 Aws::String m_clientId;
396 bool m_clientIdHasBeenSet = false;
397
398 BillingMethod m_billingMethod{BillingMethod::NOT_SET};
399 bool m_billingMethodHasBeenSet = false;
400
401 DeviceMinutes m_deviceMinutes;
402 bool m_deviceMinutesHasBeenSet = false;
403
404 Aws::String m_endpoint;
405 bool m_endpointHasBeenSet = false;
406
407 Aws::String m_deviceUdid;
408 bool m_deviceUdidHasBeenSet = false;
409
410 InteractionMode m_interactionMode{InteractionMode::NOT_SET};
411 bool m_interactionModeHasBeenSet = false;
412
413 bool m_skipAppResign{false};
414 bool m_skipAppResignHasBeenSet = false;
415
416 VpcConfig m_vpcConfig;
417 bool m_vpcConfigHasBeenSet = false;
418
419 DeviceProxy m_deviceProxy;
420 bool m_deviceProxyHasBeenSet = false;
421 };
422
423} // namespace Model
424} // namespace DeviceFarm
425} // 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 & WithClientId(ClientIdT &&value)
RemoteAccessSession & WithRemoteRecordAppArn(RemoteRecordAppArnT &&value)
RemoteAccessSession & WithBillingMethod(BillingMethod value)
RemoteAccessSession & WithDeviceUdid(DeviceUdidT &&value)
RemoteAccessSession & WithStatus(ExecutionStatus value)
void SetRemoteRecordAppArn(RemoteRecordAppArnT &&value)
AWS_DEVICEFARM_API RemoteAccessSession(Aws::Utils::Json::JsonView jsonValue)
RemoteAccessSession & WithSkipAppResign(bool value)
RemoteAccessSession & WithResult(ExecutionResult value)
const Aws::Utils::DateTime & GetStarted() const
RemoteAccessSession & WithEndpoint(EndpointT &&value)
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 & WithRemoteDebugEnabled(bool value)
RemoteAccessSession & WithMessage(MessageT &&value)
RemoteAccessSession & WithArn(ArnT &&value)
RemoteAccessSession & WithStopped(StoppedT &&value)
RemoteAccessSession & WithDevice(DeviceT &&value)
RemoteAccessSession & WithRemoteRecordEnabled(bool value)
RemoteAccessSession & WithName(NameT &&value)
RemoteAccessSession & WithInteractionMode(InteractionMode value)
RemoteAccessSession & WithHostAddress(HostAddressT &&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