AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
WorkspaceAccessProperties.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/workspaces/WorkSpaces_EXPORTS.h>
9#include <aws/workspaces/model/AccessEndpointConfig.h>
10#include <aws/workspaces/model/AccessPropertyValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace WorkSpaces {
21namespace Model {
22
32 public:
33 AWS_WORKSPACES_API WorkspaceAccessProperties() = default;
34 AWS_WORKSPACES_API WorkspaceAccessProperties(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACES_API WorkspaceAccessProperties& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline AccessPropertyValue GetDeviceTypeWindows() const { return m_deviceTypeWindows; }
44 inline bool DeviceTypeWindowsHasBeenSet() const { return m_deviceTypeWindowsHasBeenSet; }
46 m_deviceTypeWindowsHasBeenSet = true;
47 m_deviceTypeWindows = value;
48 }
54
56
59 inline AccessPropertyValue GetDeviceTypeOsx() const { return m_deviceTypeOsx; }
60 inline bool DeviceTypeOsxHasBeenSet() const { return m_deviceTypeOsxHasBeenSet; }
62 m_deviceTypeOsxHasBeenSet = true;
63 m_deviceTypeOsx = value;
64 }
66 SetDeviceTypeOsx(value);
67 return *this;
68 }
70
72
76 inline AccessPropertyValue GetDeviceTypeWeb() const { return m_deviceTypeWeb; }
77 inline bool DeviceTypeWebHasBeenSet() const { return m_deviceTypeWebHasBeenSet; }
79 m_deviceTypeWebHasBeenSet = true;
80 m_deviceTypeWeb = value;
81 }
83 SetDeviceTypeWeb(value);
84 return *this;
85 }
87
89
92 inline AccessPropertyValue GetDeviceTypeIos() const { return m_deviceTypeIos; }
93 inline bool DeviceTypeIosHasBeenSet() const { return m_deviceTypeIosHasBeenSet; }
95 m_deviceTypeIosHasBeenSet = true;
96 m_deviceTypeIos = value;
97 }
99 SetDeviceTypeIos(value);
100 return *this;
101 }
103
105
109 inline AccessPropertyValue GetDeviceTypeAndroid() const { return m_deviceTypeAndroid; }
110 inline bool DeviceTypeAndroidHasBeenSet() const { return m_deviceTypeAndroidHasBeenSet; }
112 m_deviceTypeAndroidHasBeenSet = true;
113 m_deviceTypeAndroid = value;
114 }
120
122
125 inline AccessPropertyValue GetDeviceTypeChromeOs() const { return m_deviceTypeChromeOs; }
126 inline bool DeviceTypeChromeOsHasBeenSet() const { return m_deviceTypeChromeOsHasBeenSet; }
128 m_deviceTypeChromeOsHasBeenSet = true;
129 m_deviceTypeChromeOs = value;
130 }
136
138
142 inline AccessPropertyValue GetDeviceTypeZeroClient() const { return m_deviceTypeZeroClient; }
143 inline bool DeviceTypeZeroClientHasBeenSet() const { return m_deviceTypeZeroClientHasBeenSet; }
145 m_deviceTypeZeroClientHasBeenSet = true;
146 m_deviceTypeZeroClient = value;
147 }
153
155
158 inline AccessPropertyValue GetDeviceTypeLinux() const { return m_deviceTypeLinux; }
159 inline bool DeviceTypeLinuxHasBeenSet() const { return m_deviceTypeLinuxHasBeenSet; }
161 m_deviceTypeLinuxHasBeenSet = true;
162 m_deviceTypeLinux = value;
163 }
165 SetDeviceTypeLinux(value);
166 return *this;
167 }
169
171
175 inline AccessPropertyValue GetDeviceTypeWorkSpacesThinClient() const { return m_deviceTypeWorkSpacesThinClient; }
176 inline bool DeviceTypeWorkSpacesThinClientHasBeenSet() const { return m_deviceTypeWorkSpacesThinClientHasBeenSet; }
178 m_deviceTypeWorkSpacesThinClientHasBeenSet = true;
179 m_deviceTypeWorkSpacesThinClient = value;
180 }
186
188
191 inline const AccessEndpointConfig& GetAccessEndpointConfig() const { return m_accessEndpointConfig; }
192 inline bool AccessEndpointConfigHasBeenSet() const { return m_accessEndpointConfigHasBeenSet; }
193 template <typename AccessEndpointConfigT = AccessEndpointConfig>
194 void SetAccessEndpointConfig(AccessEndpointConfigT&& value) {
195 m_accessEndpointConfigHasBeenSet = true;
196 m_accessEndpointConfig = std::forward<AccessEndpointConfigT>(value);
197 }
198 template <typename AccessEndpointConfigT = AccessEndpointConfig>
199 WorkspaceAccessProperties& WithAccessEndpointConfig(AccessEndpointConfigT&& value) {
200 SetAccessEndpointConfig(std::forward<AccessEndpointConfigT>(value));
201 return *this;
202 }
204 private:
206
208
210
212
214
216
218
220
221 AccessPropertyValue m_deviceTypeWorkSpacesThinClient{AccessPropertyValue::NOT_SET};
222
223 AccessEndpointConfig m_accessEndpointConfig;
224 bool m_deviceTypeWindowsHasBeenSet = false;
225 bool m_deviceTypeOsxHasBeenSet = false;
226 bool m_deviceTypeWebHasBeenSet = false;
227 bool m_deviceTypeIosHasBeenSet = false;
228 bool m_deviceTypeAndroidHasBeenSet = false;
229 bool m_deviceTypeChromeOsHasBeenSet = false;
230 bool m_deviceTypeZeroClientHasBeenSet = false;
231 bool m_deviceTypeLinuxHasBeenSet = false;
232 bool m_deviceTypeWorkSpacesThinClientHasBeenSet = false;
233 bool m_accessEndpointConfigHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace WorkSpaces
238} // namespace Aws
WorkspaceAccessProperties & WithDeviceTypeLinux(AccessPropertyValue value)
AWS_WORKSPACES_API WorkspaceAccessProperties & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetAccessEndpointConfig(AccessEndpointConfigT &&value)
WorkspaceAccessProperties & WithAccessEndpointConfig(AccessEndpointConfigT &&value)
WorkspaceAccessProperties & WithDeviceTypeOsx(AccessPropertyValue value)
WorkspaceAccessProperties & WithDeviceTypeZeroClient(AccessPropertyValue value)
WorkspaceAccessProperties & WithDeviceTypeWeb(AccessPropertyValue value)
const AccessEndpointConfig & GetAccessEndpointConfig() const
AWS_WORKSPACES_API WorkspaceAccessProperties(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceAccessProperties & WithDeviceTypeChromeOs(AccessPropertyValue value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
WorkspaceAccessProperties & WithDeviceTypeIos(AccessPropertyValue value)
WorkspaceAccessProperties & WithDeviceTypeAndroid(AccessPropertyValue value)
AWS_WORKSPACES_API WorkspaceAccessProperties()=default
WorkspaceAccessProperties & WithDeviceTypeWorkSpacesThinClient(AccessPropertyValue value)
WorkspaceAccessProperties & WithDeviceTypeWindows(AccessPropertyValue value)