AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
UserSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
11#include <aws/workspaces-web/model/BrandingConfiguration.h>
12#include <aws/workspaces-web/model/CookieSynchronizationConfiguration.h>
13#include <aws/workspaces-web/model/EnabledType.h>
14#include <aws/workspaces-web/model/ToolbarConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WorkSpacesWeb {
26namespace Model {
27
37 public:
38 AWS_WORKSPACESWEB_API UserSettings() = default;
39 AWS_WORKSPACESWEB_API UserSettings(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKSPACESWEB_API UserSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetUserSettingsArn() const { return m_userSettingsArn; }
48 inline bool UserSettingsArnHasBeenSet() const { return m_userSettingsArnHasBeenSet; }
49 template <typename UserSettingsArnT = Aws::String>
50 void SetUserSettingsArn(UserSettingsArnT&& value) {
51 m_userSettingsArnHasBeenSet = true;
52 m_userSettingsArn = std::forward<UserSettingsArnT>(value);
53 }
54 template <typename UserSettingsArnT = Aws::String>
55 UserSettings& WithUserSettingsArn(UserSettingsArnT&& value) {
56 SetUserSettingsArn(std::forward<UserSettingsArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<Aws::String>& GetAssociatedPortalArns() const { return m_associatedPortalArns; }
66 inline bool AssociatedPortalArnsHasBeenSet() const { return m_associatedPortalArnsHasBeenSet; }
67 template <typename AssociatedPortalArnsT = Aws::Vector<Aws::String>>
68 void SetAssociatedPortalArns(AssociatedPortalArnsT&& value) {
69 m_associatedPortalArnsHasBeenSet = true;
70 m_associatedPortalArns = std::forward<AssociatedPortalArnsT>(value);
71 }
72 template <typename AssociatedPortalArnsT = Aws::Vector<Aws::String>>
73 UserSettings& WithAssociatedPortalArns(AssociatedPortalArnsT&& value) {
74 SetAssociatedPortalArns(std::forward<AssociatedPortalArnsT>(value));
75 return *this;
76 }
77 template <typename AssociatedPortalArnsT = Aws::String>
78 UserSettings& AddAssociatedPortalArns(AssociatedPortalArnsT&& value) {
79 m_associatedPortalArnsHasBeenSet = true;
80 m_associatedPortalArns.emplace_back(std::forward<AssociatedPortalArnsT>(value));
81 return *this;
82 }
84
86
90 inline EnabledType GetCopyAllowed() const { return m_copyAllowed; }
91 inline bool CopyAllowedHasBeenSet() const { return m_copyAllowedHasBeenSet; }
92 inline void SetCopyAllowed(EnabledType value) {
93 m_copyAllowedHasBeenSet = true;
94 m_copyAllowed = value;
95 }
97 SetCopyAllowed(value);
98 return *this;
99 }
101
103
107 inline EnabledType GetPasteAllowed() const { return m_pasteAllowed; }
108 inline bool PasteAllowedHasBeenSet() const { return m_pasteAllowedHasBeenSet; }
109 inline void SetPasteAllowed(EnabledType value) {
110 m_pasteAllowedHasBeenSet = true;
111 m_pasteAllowed = value;
112 }
114 SetPasteAllowed(value);
115 return *this;
116 }
118
120
124 inline EnabledType GetDownloadAllowed() const { return m_downloadAllowed; }
125 inline bool DownloadAllowedHasBeenSet() const { return m_downloadAllowedHasBeenSet; }
126 inline void SetDownloadAllowed(EnabledType value) {
127 m_downloadAllowedHasBeenSet = true;
128 m_downloadAllowed = value;
129 }
131 SetDownloadAllowed(value);
132 return *this;
133 }
135
137
141 inline EnabledType GetUploadAllowed() const { return m_uploadAllowed; }
142 inline bool UploadAllowedHasBeenSet() const { return m_uploadAllowedHasBeenSet; }
143 inline void SetUploadAllowed(EnabledType value) {
144 m_uploadAllowedHasBeenSet = true;
145 m_uploadAllowed = value;
146 }
148 SetUploadAllowed(value);
149 return *this;
150 }
152
154
157 inline EnabledType GetPrintAllowed() const { return m_printAllowed; }
158 inline bool PrintAllowedHasBeenSet() const { return m_printAllowedHasBeenSet; }
159 inline void SetPrintAllowed(EnabledType value) {
160 m_printAllowedHasBeenSet = true;
161 m_printAllowed = value;
162 }
164 SetPrintAllowed(value);
165 return *this;
166 }
168
170
174 inline int GetDisconnectTimeoutInMinutes() const { return m_disconnectTimeoutInMinutes; }
175 inline bool DisconnectTimeoutInMinutesHasBeenSet() const { return m_disconnectTimeoutInMinutesHasBeenSet; }
176 inline void SetDisconnectTimeoutInMinutes(int value) {
177 m_disconnectTimeoutInMinutesHasBeenSet = true;
178 m_disconnectTimeoutInMinutes = value;
179 }
182 return *this;
183 }
185
187
192 inline int GetIdleDisconnectTimeoutInMinutes() const { return m_idleDisconnectTimeoutInMinutes; }
193 inline bool IdleDisconnectTimeoutInMinutesHasBeenSet() const { return m_idleDisconnectTimeoutInMinutesHasBeenSet; }
194 inline void SetIdleDisconnectTimeoutInMinutes(int value) {
195 m_idleDisconnectTimeoutInMinutesHasBeenSet = true;
196 m_idleDisconnectTimeoutInMinutes = value;
197 }
200 return *this;
201 }
203
205
210 return m_cookieSynchronizationConfiguration;
211 }
212 inline bool CookieSynchronizationConfigurationHasBeenSet() const { return m_cookieSynchronizationConfigurationHasBeenSet; }
213 template <typename CookieSynchronizationConfigurationT = CookieSynchronizationConfiguration>
214 void SetCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT&& value) {
215 m_cookieSynchronizationConfigurationHasBeenSet = true;
216 m_cookieSynchronizationConfiguration = std::forward<CookieSynchronizationConfigurationT>(value);
217 }
218 template <typename CookieSynchronizationConfigurationT = CookieSynchronizationConfiguration>
219 UserSettings& WithCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT&& value) {
220 SetCookieSynchronizationConfiguration(std::forward<CookieSynchronizationConfigurationT>(value));
221 return *this;
222 }
224
226
230 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
231 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
232 template <typename CustomerManagedKeyT = Aws::String>
233 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
234 m_customerManagedKeyHasBeenSet = true;
235 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
236 }
237 template <typename CustomerManagedKeyT = Aws::String>
238 UserSettings& WithCustomerManagedKey(CustomerManagedKeyT&& value) {
239 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
249 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
250 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
251 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
252 m_additionalEncryptionContextHasBeenSet = true;
253 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
254 }
255 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
256 UserSettings& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
257 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
258 return *this;
259 }
260 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
261 UserSettings& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key, AdditionalEncryptionContextValueT&& value) {
262 m_additionalEncryptionContextHasBeenSet = true;
263 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
264 std::forward<AdditionalEncryptionContextValueT>(value));
265 return *this;
266 }
268
270
274 inline EnabledType GetDeepLinkAllowed() const { return m_deepLinkAllowed; }
275 inline bool DeepLinkAllowedHasBeenSet() const { return m_deepLinkAllowedHasBeenSet; }
276 inline void SetDeepLinkAllowed(EnabledType value) {
277 m_deepLinkAllowedHasBeenSet = true;
278 m_deepLinkAllowed = value;
279 }
281 SetDeepLinkAllowed(value);
282 return *this;
283 }
285
287
294 inline const ToolbarConfiguration& GetToolbarConfiguration() const { return m_toolbarConfiguration; }
295 inline bool ToolbarConfigurationHasBeenSet() const { return m_toolbarConfigurationHasBeenSet; }
296 template <typename ToolbarConfigurationT = ToolbarConfiguration>
297 void SetToolbarConfiguration(ToolbarConfigurationT&& value) {
298 m_toolbarConfigurationHasBeenSet = true;
299 m_toolbarConfiguration = std::forward<ToolbarConfigurationT>(value);
300 }
301 template <typename ToolbarConfigurationT = ToolbarConfiguration>
302 UserSettings& WithToolbarConfiguration(ToolbarConfigurationT&& value) {
303 SetToolbarConfiguration(std::forward<ToolbarConfigurationT>(value));
304 return *this;
305 }
307
309
313 inline const BrandingConfiguration& GetBrandingConfiguration() const { return m_brandingConfiguration; }
314 inline bool BrandingConfigurationHasBeenSet() const { return m_brandingConfigurationHasBeenSet; }
315 template <typename BrandingConfigurationT = BrandingConfiguration>
316 void SetBrandingConfiguration(BrandingConfigurationT&& value) {
317 m_brandingConfigurationHasBeenSet = true;
318 m_brandingConfiguration = std::forward<BrandingConfigurationT>(value);
319 }
320 template <typename BrandingConfigurationT = BrandingConfiguration>
321 UserSettings& WithBrandingConfiguration(BrandingConfigurationT&& value) {
322 SetBrandingConfiguration(std::forward<BrandingConfigurationT>(value));
323 return *this;
324 }
326
328
332 inline EnabledType GetWebAuthnAllowed() const { return m_webAuthnAllowed; }
333 inline bool WebAuthnAllowedHasBeenSet() const { return m_webAuthnAllowedHasBeenSet; }
334 inline void SetWebAuthnAllowed(EnabledType value) {
335 m_webAuthnAllowedHasBeenSet = true;
336 m_webAuthnAllowed = value;
337 }
339 SetWebAuthnAllowed(value);
340 return *this;
341 }
343 private:
344 Aws::String m_userSettingsArn;
345
346 Aws::Vector<Aws::String> m_associatedPortalArns;
347
348 EnabledType m_copyAllowed{EnabledType::NOT_SET};
349
350 EnabledType m_pasteAllowed{EnabledType::NOT_SET};
351
352 EnabledType m_downloadAllowed{EnabledType::NOT_SET};
353
354 EnabledType m_uploadAllowed{EnabledType::NOT_SET};
355
356 EnabledType m_printAllowed{EnabledType::NOT_SET};
357
358 int m_disconnectTimeoutInMinutes{0};
359
360 int m_idleDisconnectTimeoutInMinutes{0};
361
362 CookieSynchronizationConfiguration m_cookieSynchronizationConfiguration;
363
364 Aws::String m_customerManagedKey;
365
366 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
367
368 EnabledType m_deepLinkAllowed{EnabledType::NOT_SET};
369
370 ToolbarConfiguration m_toolbarConfiguration;
371
372 BrandingConfiguration m_brandingConfiguration;
373
374 EnabledType m_webAuthnAllowed{EnabledType::NOT_SET};
375 bool m_userSettingsArnHasBeenSet = false;
376 bool m_associatedPortalArnsHasBeenSet = false;
377 bool m_copyAllowedHasBeenSet = false;
378 bool m_pasteAllowedHasBeenSet = false;
379 bool m_downloadAllowedHasBeenSet = false;
380 bool m_uploadAllowedHasBeenSet = false;
381 bool m_printAllowedHasBeenSet = false;
382 bool m_disconnectTimeoutInMinutesHasBeenSet = false;
383 bool m_idleDisconnectTimeoutInMinutesHasBeenSet = false;
384 bool m_cookieSynchronizationConfigurationHasBeenSet = false;
385 bool m_customerManagedKeyHasBeenSet = false;
386 bool m_additionalEncryptionContextHasBeenSet = false;
387 bool m_deepLinkAllowedHasBeenSet = false;
388 bool m_toolbarConfigurationHasBeenSet = false;
389 bool m_brandingConfigurationHasBeenSet = false;
390 bool m_webAuthnAllowedHasBeenSet = false;
391};
392
393} // namespace Model
394} // namespace WorkSpacesWeb
395} // namespace Aws
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
void SetCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT &&value)
const ToolbarConfiguration & GetToolbarConfiguration() const
UserSettings & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
void SetDownloadAllowed(EnabledType value)
UserSettings & WithWebAuthnAllowed(EnabledType value)
UserSettings & WithToolbarConfiguration(ToolbarConfigurationT &&value)
const BrandingConfiguration & GetBrandingConfiguration() const
UserSettings & WithDeepLinkAllowed(EnabledType value)
UserSettings & WithDownloadAllowed(EnabledType value)
void SetCopyAllowed(EnabledType value)
UserSettings & WithUploadAllowed(EnabledType value)
UserSettings & AddAssociatedPortalArns(AssociatedPortalArnsT &&value)
UserSettings & WithCustomerManagedKey(CustomerManagedKeyT &&value)
const Aws::String & GetUserSettingsArn() const
void SetToolbarConfiguration(ToolbarConfigurationT &&value)
UserSettings & WithCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT &&value)
AWS_WORKSPACESWEB_API UserSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
UserSettings & WithBrandingConfiguration(BrandingConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
void SetWebAuthnAllowed(EnabledType value)
UserSettings & WithIdleDisconnectTimeoutInMinutes(int value)
AWS_WORKSPACESWEB_API UserSettings(Aws::Utils::Json::JsonView jsonValue)
const CookieSynchronizationConfiguration & GetCookieSynchronizationConfiguration() const
void SetAssociatedPortalArns(AssociatedPortalArnsT &&value)
UserSettings & WithCopyAllowed(EnabledType value)
void SetDeepLinkAllowed(EnabledType value)
UserSettings & WithPrintAllowed(EnabledType value)
void SetPasteAllowed(EnabledType value)
void SetBrandingConfiguration(BrandingConfigurationT &&value)
void SetUploadAllowed(EnabledType value)
const Aws::Vector< Aws::String > & GetAssociatedPortalArns() const
void SetCustomerManagedKey(CustomerManagedKeyT &&value)
UserSettings & WithDisconnectTimeoutInMinutes(int value)
UserSettings & WithAssociatedPortalArns(AssociatedPortalArnsT &&value)
const Aws::String & GetCustomerManagedKey() const
AWS_WORKSPACESWEB_API UserSettings()=default
UserSettings & WithUserSettingsArn(UserSettingsArnT &&value)
void SetUserSettingsArn(UserSettingsArnT &&value)
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrintAllowed(EnabledType value)
UserSettings & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
UserSettings & WithPasteAllowed(EnabledType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue