AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
UserSettingsSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
9#include <aws/workspaces-web/model/BrandingConfiguration.h>
10#include <aws/workspaces-web/model/CookieSynchronizationConfiguration.h>
11#include <aws/workspaces-web/model/EnabledType.h>
12#include <aws/workspaces-web/model/ToolbarConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkSpacesWeb {
24namespace Model {
25
32 public:
33 AWS_WORKSPACESWEB_API UserSettingsSummary() = default;
34 AWS_WORKSPACESWEB_API UserSettingsSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKSPACESWEB_API UserSettingsSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetUserSettingsArn() const { return m_userSettingsArn; }
43 inline bool UserSettingsArnHasBeenSet() const { return m_userSettingsArnHasBeenSet; }
44 template <typename UserSettingsArnT = Aws::String>
45 void SetUserSettingsArn(UserSettingsArnT&& value) {
46 m_userSettingsArnHasBeenSet = true;
47 m_userSettingsArn = std::forward<UserSettingsArnT>(value);
48 }
49 template <typename UserSettingsArnT = Aws::String>
50 UserSettingsSummary& WithUserSettingsArn(UserSettingsArnT&& value) {
51 SetUserSettingsArn(std::forward<UserSettingsArnT>(value));
52 return *this;
53 }
55
57
61 inline EnabledType GetCopyAllowed() const { return m_copyAllowed; }
62 inline bool CopyAllowedHasBeenSet() const { return m_copyAllowedHasBeenSet; }
63 inline void SetCopyAllowed(EnabledType value) {
64 m_copyAllowedHasBeenSet = true;
65 m_copyAllowed = value;
66 }
68 SetCopyAllowed(value);
69 return *this;
70 }
72
74
78 inline EnabledType GetPasteAllowed() const { return m_pasteAllowed; }
79 inline bool PasteAllowedHasBeenSet() const { return m_pasteAllowedHasBeenSet; }
80 inline void SetPasteAllowed(EnabledType value) {
81 m_pasteAllowedHasBeenSet = true;
82 m_pasteAllowed = value;
83 }
85 SetPasteAllowed(value);
86 return *this;
87 }
89
91
95 inline EnabledType GetDownloadAllowed() const { return m_downloadAllowed; }
96 inline bool DownloadAllowedHasBeenSet() const { return m_downloadAllowedHasBeenSet; }
97 inline void SetDownloadAllowed(EnabledType value) {
98 m_downloadAllowedHasBeenSet = true;
99 m_downloadAllowed = value;
100 }
102 SetDownloadAllowed(value);
103 return *this;
104 }
106
108
112 inline EnabledType GetUploadAllowed() const { return m_uploadAllowed; }
113 inline bool UploadAllowedHasBeenSet() const { return m_uploadAllowedHasBeenSet; }
114 inline void SetUploadAllowed(EnabledType value) {
115 m_uploadAllowedHasBeenSet = true;
116 m_uploadAllowed = value;
117 }
119 SetUploadAllowed(value);
120 return *this;
121 }
123
125
128 inline EnabledType GetPrintAllowed() const { return m_printAllowed; }
129 inline bool PrintAllowedHasBeenSet() const { return m_printAllowedHasBeenSet; }
130 inline void SetPrintAllowed(EnabledType value) {
131 m_printAllowedHasBeenSet = true;
132 m_printAllowed = value;
133 }
135 SetPrintAllowed(value);
136 return *this;
137 }
139
141
145 inline int GetDisconnectTimeoutInMinutes() const { return m_disconnectTimeoutInMinutes; }
146 inline bool DisconnectTimeoutInMinutesHasBeenSet() const { return m_disconnectTimeoutInMinutesHasBeenSet; }
147 inline void SetDisconnectTimeoutInMinutes(int value) {
148 m_disconnectTimeoutInMinutesHasBeenSet = true;
149 m_disconnectTimeoutInMinutes = value;
150 }
153 return *this;
154 }
156
158
163 inline int GetIdleDisconnectTimeoutInMinutes() const { return m_idleDisconnectTimeoutInMinutes; }
164 inline bool IdleDisconnectTimeoutInMinutesHasBeenSet() const { return m_idleDisconnectTimeoutInMinutesHasBeenSet; }
165 inline void SetIdleDisconnectTimeoutInMinutes(int value) {
166 m_idleDisconnectTimeoutInMinutesHasBeenSet = true;
167 m_idleDisconnectTimeoutInMinutes = value;
168 }
171 return *this;
172 }
174
176
181 return m_cookieSynchronizationConfiguration;
182 }
183 inline bool CookieSynchronizationConfigurationHasBeenSet() const { return m_cookieSynchronizationConfigurationHasBeenSet; }
184 template <typename CookieSynchronizationConfigurationT = CookieSynchronizationConfiguration>
185 void SetCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT&& value) {
186 m_cookieSynchronizationConfigurationHasBeenSet = true;
187 m_cookieSynchronizationConfiguration = std::forward<CookieSynchronizationConfigurationT>(value);
188 }
189 template <typename CookieSynchronizationConfigurationT = CookieSynchronizationConfiguration>
190 UserSettingsSummary& WithCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT&& value) {
191 SetCookieSynchronizationConfiguration(std::forward<CookieSynchronizationConfigurationT>(value));
192 return *this;
193 }
195
197
201 inline EnabledType GetDeepLinkAllowed() const { return m_deepLinkAllowed; }
202 inline bool DeepLinkAllowedHasBeenSet() const { return m_deepLinkAllowedHasBeenSet; }
203 inline void SetDeepLinkAllowed(EnabledType value) {
204 m_deepLinkAllowedHasBeenSet = true;
205 m_deepLinkAllowed = value;
206 }
208 SetDeepLinkAllowed(value);
209 return *this;
210 }
212
214
221 inline const ToolbarConfiguration& GetToolbarConfiguration() const { return m_toolbarConfiguration; }
222 inline bool ToolbarConfigurationHasBeenSet() const { return m_toolbarConfigurationHasBeenSet; }
223 template <typename ToolbarConfigurationT = ToolbarConfiguration>
224 void SetToolbarConfiguration(ToolbarConfigurationT&& value) {
225 m_toolbarConfigurationHasBeenSet = true;
226 m_toolbarConfiguration = std::forward<ToolbarConfigurationT>(value);
227 }
228 template <typename ToolbarConfigurationT = ToolbarConfiguration>
229 UserSettingsSummary& WithToolbarConfiguration(ToolbarConfigurationT&& value) {
230 SetToolbarConfiguration(std::forward<ToolbarConfigurationT>(value));
231 return *this;
232 }
234
236
240 inline const BrandingConfiguration& GetBrandingConfiguration() const { return m_brandingConfiguration; }
241 inline bool BrandingConfigurationHasBeenSet() const { return m_brandingConfigurationHasBeenSet; }
242 template <typename BrandingConfigurationT = BrandingConfiguration>
243 void SetBrandingConfiguration(BrandingConfigurationT&& value) {
244 m_brandingConfigurationHasBeenSet = true;
245 m_brandingConfiguration = std::forward<BrandingConfigurationT>(value);
246 }
247 template <typename BrandingConfigurationT = BrandingConfiguration>
248 UserSettingsSummary& WithBrandingConfiguration(BrandingConfigurationT&& value) {
249 SetBrandingConfiguration(std::forward<BrandingConfigurationT>(value));
250 return *this;
251 }
253
255
259 inline EnabledType GetWebAuthnAllowed() const { return m_webAuthnAllowed; }
260 inline bool WebAuthnAllowedHasBeenSet() const { return m_webAuthnAllowedHasBeenSet; }
261 inline void SetWebAuthnAllowed(EnabledType value) {
262 m_webAuthnAllowedHasBeenSet = true;
263 m_webAuthnAllowed = value;
264 }
266 SetWebAuthnAllowed(value);
267 return *this;
268 }
270 private:
271 Aws::String m_userSettingsArn;
272
273 EnabledType m_copyAllowed{EnabledType::NOT_SET};
274
275 EnabledType m_pasteAllowed{EnabledType::NOT_SET};
276
277 EnabledType m_downloadAllowed{EnabledType::NOT_SET};
278
279 EnabledType m_uploadAllowed{EnabledType::NOT_SET};
280
281 EnabledType m_printAllowed{EnabledType::NOT_SET};
282
283 int m_disconnectTimeoutInMinutes{0};
284
285 int m_idleDisconnectTimeoutInMinutes{0};
286
287 CookieSynchronizationConfiguration m_cookieSynchronizationConfiguration;
288
289 EnabledType m_deepLinkAllowed{EnabledType::NOT_SET};
290
291 ToolbarConfiguration m_toolbarConfiguration;
292
293 BrandingConfiguration m_brandingConfiguration;
294
295 EnabledType m_webAuthnAllowed{EnabledType::NOT_SET};
296 bool m_userSettingsArnHasBeenSet = false;
297 bool m_copyAllowedHasBeenSet = false;
298 bool m_pasteAllowedHasBeenSet = false;
299 bool m_downloadAllowedHasBeenSet = false;
300 bool m_uploadAllowedHasBeenSet = false;
301 bool m_printAllowedHasBeenSet = false;
302 bool m_disconnectTimeoutInMinutesHasBeenSet = false;
303 bool m_idleDisconnectTimeoutInMinutesHasBeenSet = false;
304 bool m_cookieSynchronizationConfigurationHasBeenSet = false;
305 bool m_deepLinkAllowedHasBeenSet = false;
306 bool m_toolbarConfigurationHasBeenSet = false;
307 bool m_brandingConfigurationHasBeenSet = false;
308 bool m_webAuthnAllowedHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace WorkSpacesWeb
313} // namespace Aws
UserSettingsSummary & WithIdleDisconnectTimeoutInMinutes(int value)
const BrandingConfiguration & GetBrandingConfiguration() const
UserSettingsSummary & WithCopyAllowed(EnabledType value)
AWS_WORKSPACESWEB_API UserSettingsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
UserSettingsSummary & WithCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT &&value)
UserSettingsSummary & WithWebAuthnAllowed(EnabledType value)
UserSettingsSummary & WithPrintAllowed(EnabledType value)
UserSettingsSummary & WithUserSettingsArn(UserSettingsArnT &&value)
void SetBrandingConfiguration(BrandingConfigurationT &&value)
void SetCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT &&value)
void SetToolbarConfiguration(ToolbarConfigurationT &&value)
UserSettingsSummary & WithDeepLinkAllowed(EnabledType value)
const CookieSynchronizationConfiguration & GetCookieSynchronizationConfiguration() const
const ToolbarConfiguration & GetToolbarConfiguration() const
UserSettingsSummary & WithBrandingConfiguration(BrandingConfigurationT &&value)
UserSettingsSummary & WithDisconnectTimeoutInMinutes(int value)
UserSettingsSummary & WithDownloadAllowed(EnabledType value)
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
UserSettingsSummary & WithUploadAllowed(EnabledType value)
AWS_WORKSPACESWEB_API UserSettingsSummary(Aws::Utils::Json::JsonView jsonValue)
UserSettingsSummary & WithPasteAllowed(EnabledType value)
AWS_WORKSPACESWEB_API UserSettingsSummary()=default
UserSettingsSummary & WithToolbarConfiguration(ToolbarConfigurationT &&value)
void SetUserSettingsArn(UserSettingsArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue