AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRemoteAccessSessionRequest.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devicefarm/model/CreateRemoteAccessSessionConfiguration.h>
11#include <aws/devicefarm/model/InteractionMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DeviceFarm
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_DEVICEFARM_API CreateRemoteAccessSessionRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateRemoteAccessSession"; }
37
38 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
49 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
50 template<typename ProjectArnT = Aws::String>
51 void SetProjectArn(ProjectArnT&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::forward<ProjectArnT>(value); }
52 template<typename ProjectArnT = Aws::String>
53 CreateRemoteAccessSessionRequest& WithProjectArn(ProjectArnT&& value) { SetProjectArn(std::forward<ProjectArnT>(value)); return *this;}
55
57
61 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
62 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
63 template<typename DeviceArnT = Aws::String>
64 void SetDeviceArn(DeviceArnT&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::forward<DeviceArnT>(value); }
65 template<typename DeviceArnT = Aws::String>
66 CreateRemoteAccessSessionRequest& WithDeviceArn(DeviceArnT&& value) { SetDeviceArn(std::forward<DeviceArnT>(value)); return *this;}
68
70
74 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
75 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
76 template<typename InstanceArnT = Aws::String>
77 void SetInstanceArn(InstanceArnT&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::forward<InstanceArnT>(value); }
78 template<typename InstanceArnT = Aws::String>
79 CreateRemoteAccessSessionRequest& WithInstanceArn(InstanceArnT&& value) { SetInstanceArn(std::forward<InstanceArnT>(value)); return *this;}
81
83
91 inline const Aws::String& GetSshPublicKey() const { return m_sshPublicKey; }
92 inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
93 template<typename SshPublicKeyT = Aws::String>
94 void SetSshPublicKey(SshPublicKeyT&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::forward<SshPublicKeyT>(value); }
95 template<typename SshPublicKeyT = Aws::String>
96 CreateRemoteAccessSessionRequest& WithSshPublicKey(SshPublicKeyT&& value) { SetSshPublicKey(std::forward<SshPublicKeyT>(value)); return *this;}
98
100
106 inline bool GetRemoteDebugEnabled() const { return m_remoteDebugEnabled; }
107 inline bool RemoteDebugEnabledHasBeenSet() const { return m_remoteDebugEnabledHasBeenSet; }
108 inline void SetRemoteDebugEnabled(bool value) { m_remoteDebugEnabledHasBeenSet = true; m_remoteDebugEnabled = value; }
111
113
117 inline bool GetRemoteRecordEnabled() const { return m_remoteRecordEnabled; }
118 inline bool RemoteRecordEnabledHasBeenSet() const { return m_remoteRecordEnabledHasBeenSet; }
119 inline void SetRemoteRecordEnabled(bool value) { m_remoteRecordEnabledHasBeenSet = true; m_remoteRecordEnabled = value; }
122
124
128 inline const Aws::String& GetRemoteRecordAppArn() const { return m_remoteRecordAppArn; }
129 inline bool RemoteRecordAppArnHasBeenSet() const { return m_remoteRecordAppArnHasBeenSet; }
130 template<typename RemoteRecordAppArnT = Aws::String>
131 void SetRemoteRecordAppArn(RemoteRecordAppArnT&& value) { m_remoteRecordAppArnHasBeenSet = true; m_remoteRecordAppArn = std::forward<RemoteRecordAppArnT>(value); }
132 template<typename RemoteRecordAppArnT = Aws::String>
133 CreateRemoteAccessSessionRequest& WithRemoteRecordAppArn(RemoteRecordAppArnT&& value) { SetRemoteRecordAppArn(std::forward<RemoteRecordAppArnT>(value)); return *this;}
135
137
140 inline const Aws::String& GetName() const { return m_name; }
141 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
142 template<typename NameT = Aws::String>
143 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
144 template<typename NameT = Aws::String>
145 CreateRemoteAccessSessionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
147
149
158 inline const Aws::String& GetClientId() const { return m_clientId; }
159 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
160 template<typename ClientIdT = Aws::String>
161 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
162 template<typename ClientIdT = Aws::String>
163 CreateRemoteAccessSessionRequest& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
165
167
170 inline const CreateRemoteAccessSessionConfiguration& GetConfiguration() const { return m_configuration; }
171 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
172 template<typename ConfigurationT = CreateRemoteAccessSessionConfiguration>
173 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
174 template<typename ConfigurationT = CreateRemoteAccessSessionConfiguration>
175 CreateRemoteAccessSessionRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
177
179
190 inline InteractionMode GetInteractionMode() const { return m_interactionMode; }
191 inline bool InteractionModeHasBeenSet() const { return m_interactionModeHasBeenSet; }
192 inline void SetInteractionMode(InteractionMode value) { m_interactionModeHasBeenSet = true; m_interactionMode = value; }
195
197
204 inline bool GetSkipAppResign() const { return m_skipAppResign; }
205 inline bool SkipAppResignHasBeenSet() const { return m_skipAppResignHasBeenSet; }
206 inline void SetSkipAppResign(bool value) { m_skipAppResignHasBeenSet = true; m_skipAppResign = value; }
207 inline CreateRemoteAccessSessionRequest& WithSkipAppResign(bool value) { SetSkipAppResign(value); return *this;}
209 private:
210
211 Aws::String m_projectArn;
212 bool m_projectArnHasBeenSet = false;
213
214 Aws::String m_deviceArn;
215 bool m_deviceArnHasBeenSet = false;
216
217 Aws::String m_instanceArn;
218 bool m_instanceArnHasBeenSet = false;
219
220 Aws::String m_sshPublicKey;
221 bool m_sshPublicKeyHasBeenSet = false;
222
223 bool m_remoteDebugEnabled{false};
224 bool m_remoteDebugEnabledHasBeenSet = false;
225
226 bool m_remoteRecordEnabled{false};
227 bool m_remoteRecordEnabledHasBeenSet = false;
228
229 Aws::String m_remoteRecordAppArn;
230 bool m_remoteRecordAppArnHasBeenSet = false;
231
232 Aws::String m_name;
233 bool m_nameHasBeenSet = false;
234
235 Aws::String m_clientId;
236 bool m_clientIdHasBeenSet = false;
237
238 CreateRemoteAccessSessionConfiguration m_configuration;
239 bool m_configurationHasBeenSet = false;
240
241 InteractionMode m_interactionMode{InteractionMode::NOT_SET};
242 bool m_interactionModeHasBeenSet = false;
243
244 bool m_skipAppResign{false};
245 bool m_skipAppResignHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace DeviceFarm
250} // namespace Aws
CreateRemoteAccessSessionRequest & WithRemoteRecordEnabled(bool value)
CreateRemoteAccessSessionRequest & WithDeviceArn(DeviceArnT &&value)
CreateRemoteAccessSessionRequest & WithSshPublicKey(SshPublicKeyT &&value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DEVICEFARM_API CreateRemoteAccessSessionRequest()=default
CreateRemoteAccessSessionRequest & WithClientId(ClientIdT &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
CreateRemoteAccessSessionRequest & WithConfiguration(ConfigurationT &&value)
CreateRemoteAccessSessionRequest & WithRemoteDebugEnabled(bool value)
CreateRemoteAccessSessionRequest & WithInteractionMode(InteractionMode value)
CreateRemoteAccessSessionRequest & WithRemoteRecordAppArn(RemoteRecordAppArnT &&value)
CreateRemoteAccessSessionRequest & WithInstanceArn(InstanceArnT &&value)
const CreateRemoteAccessSessionConfiguration & GetConfiguration() const
CreateRemoteAccessSessionRequest & WithProjectArn(ProjectArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String