AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CreateUserSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces-web/WorkSpacesWebRequest.h>
12#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
13#include <aws/workspaces-web/model/BrandingConfigurationCreateInput.h>
14#include <aws/workspaces-web/model/CookieSynchronizationConfiguration.h>
15#include <aws/workspaces-web/model/EnabledType.h>
16#include <aws/workspaces-web/model/Tag.h>
17#include <aws/workspaces-web/model/ToolbarConfiguration.h>
18
19#include <utility>
20
21namespace Aws {
22namespace WorkSpacesWeb {
23namespace Model {
24
28 public:
29 AWS_WORKSPACESWEB_API CreateUserSettingsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateUserSettings"; }
36
37 AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override;
38
40
44 inline EnabledType GetCopyAllowed() const { return m_copyAllowed; }
45 inline bool CopyAllowedHasBeenSet() const { return m_copyAllowedHasBeenSet; }
46 inline void SetCopyAllowed(EnabledType value) {
47 m_copyAllowedHasBeenSet = true;
48 m_copyAllowed = value;
49 }
51 SetCopyAllowed(value);
52 return *this;
53 }
55
57
61 inline EnabledType GetPasteAllowed() const { return m_pasteAllowed; }
62 inline bool PasteAllowedHasBeenSet() const { return m_pasteAllowedHasBeenSet; }
63 inline void SetPasteAllowed(EnabledType value) {
64 m_pasteAllowedHasBeenSet = true;
65 m_pasteAllowed = value;
66 }
68 SetPasteAllowed(value);
69 return *this;
70 }
72
74
78 inline EnabledType GetDownloadAllowed() const { return m_downloadAllowed; }
79 inline bool DownloadAllowedHasBeenSet() const { return m_downloadAllowedHasBeenSet; }
80 inline void SetDownloadAllowed(EnabledType value) {
81 m_downloadAllowedHasBeenSet = true;
82 m_downloadAllowed = value;
83 }
85 SetDownloadAllowed(value);
86 return *this;
87 }
89
91
95 inline EnabledType GetUploadAllowed() const { return m_uploadAllowed; }
96 inline bool UploadAllowedHasBeenSet() const { return m_uploadAllowedHasBeenSet; }
97 inline void SetUploadAllowed(EnabledType value) {
98 m_uploadAllowedHasBeenSet = true;
99 m_uploadAllowed = value;
100 }
102 SetUploadAllowed(value);
103 return *this;
104 }
106
108
111 inline EnabledType GetPrintAllowed() const { return m_printAllowed; }
112 inline bool PrintAllowedHasBeenSet() const { return m_printAllowedHasBeenSet; }
113 inline void SetPrintAllowed(EnabledType value) {
114 m_printAllowedHasBeenSet = true;
115 m_printAllowed = value;
116 }
118 SetPrintAllowed(value);
119 return *this;
120 }
122
124
127 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template <typename TagsT = Aws::Vector<Tag>>
130 void SetTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags = std::forward<TagsT>(value);
133 }
134 template <typename TagsT = Aws::Vector<Tag>>
136 SetTags(std::forward<TagsT>(value));
137 return *this;
138 }
139 template <typename TagsT = Tag>
141 m_tagsHasBeenSet = true;
142 m_tags.emplace_back(std::forward<TagsT>(value));
143 return *this;
144 }
146
148
152 inline int GetDisconnectTimeoutInMinutes() const { return m_disconnectTimeoutInMinutes; }
153 inline bool DisconnectTimeoutInMinutesHasBeenSet() const { return m_disconnectTimeoutInMinutesHasBeenSet; }
154 inline void SetDisconnectTimeoutInMinutes(int value) {
155 m_disconnectTimeoutInMinutesHasBeenSet = true;
156 m_disconnectTimeoutInMinutes = value;
157 }
160 return *this;
161 }
163
165
170 inline int GetIdleDisconnectTimeoutInMinutes() const { return m_idleDisconnectTimeoutInMinutes; }
171 inline bool IdleDisconnectTimeoutInMinutesHasBeenSet() const { return m_idleDisconnectTimeoutInMinutesHasBeenSet; }
172 inline void SetIdleDisconnectTimeoutInMinutes(int value) {
173 m_idleDisconnectTimeoutInMinutesHasBeenSet = true;
174 m_idleDisconnectTimeoutInMinutes = value;
175 }
181
183
191 inline const Aws::String& GetClientToken() const { return m_clientToken; }
192 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
193 template <typename ClientTokenT = Aws::String>
194 void SetClientToken(ClientTokenT&& value) {
195 m_clientTokenHasBeenSet = true;
196 m_clientToken = std::forward<ClientTokenT>(value);
197 }
198 template <typename ClientTokenT = Aws::String>
200 SetClientToken(std::forward<ClientTokenT>(value));
201 return *this;
202 }
204
206
211 return m_cookieSynchronizationConfiguration;
212 }
213 inline bool CookieSynchronizationConfigurationHasBeenSet() const { return m_cookieSynchronizationConfigurationHasBeenSet; }
214 template <typename CookieSynchronizationConfigurationT = CookieSynchronizationConfiguration>
215 void SetCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT&& value) {
216 m_cookieSynchronizationConfigurationHasBeenSet = true;
217 m_cookieSynchronizationConfiguration = std::forward<CookieSynchronizationConfigurationT>(value);
218 }
219 template <typename CookieSynchronizationConfigurationT = CookieSynchronizationConfiguration>
220 CreateUserSettingsRequest& WithCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT&& value) {
221 SetCookieSynchronizationConfiguration(std::forward<CookieSynchronizationConfigurationT>(value));
222 return *this;
223 }
225
227
231 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
232 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
233 template <typename CustomerManagedKeyT = Aws::String>
234 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
235 m_customerManagedKeyHasBeenSet = true;
236 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
237 }
238 template <typename CustomerManagedKeyT = Aws::String>
239 CreateUserSettingsRequest& WithCustomerManagedKey(CustomerManagedKeyT&& value) {
240 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
250 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
251 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
252 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
253 m_additionalEncryptionContextHasBeenSet = true;
254 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
255 }
256 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
257 CreateUserSettingsRequest& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
258 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
259 return *this;
260 }
261 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
262 CreateUserSettingsRequest& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key,
263 AdditionalEncryptionContextValueT&& value) {
264 m_additionalEncryptionContextHasBeenSet = true;
265 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
266 std::forward<AdditionalEncryptionContextValueT>(value));
267 return *this;
268 }
270
272
276 inline EnabledType GetDeepLinkAllowed() const { return m_deepLinkAllowed; }
277 inline bool DeepLinkAllowedHasBeenSet() const { return m_deepLinkAllowedHasBeenSet; }
278 inline void SetDeepLinkAllowed(EnabledType value) {
279 m_deepLinkAllowedHasBeenSet = true;
280 m_deepLinkAllowed = value;
281 }
283 SetDeepLinkAllowed(value);
284 return *this;
285 }
287
289
296 inline const ToolbarConfiguration& GetToolbarConfiguration() const { return m_toolbarConfiguration; }
297 inline bool ToolbarConfigurationHasBeenSet() const { return m_toolbarConfigurationHasBeenSet; }
298 template <typename ToolbarConfigurationT = ToolbarConfiguration>
299 void SetToolbarConfiguration(ToolbarConfigurationT&& value) {
300 m_toolbarConfigurationHasBeenSet = true;
301 m_toolbarConfiguration = std::forward<ToolbarConfigurationT>(value);
302 }
303 template <typename ToolbarConfigurationT = ToolbarConfiguration>
304 CreateUserSettingsRequest& WithToolbarConfiguration(ToolbarConfigurationT&& value) {
305 SetToolbarConfiguration(std::forward<ToolbarConfigurationT>(value));
306 return *this;
307 }
309
311
316 inline const BrandingConfigurationCreateInput& GetBrandingConfigurationInput() const { return m_brandingConfigurationInput; }
317 inline bool BrandingConfigurationInputHasBeenSet() const { return m_brandingConfigurationInputHasBeenSet; }
318 template <typename BrandingConfigurationInputT = BrandingConfigurationCreateInput>
319 void SetBrandingConfigurationInput(BrandingConfigurationInputT&& value) {
320 m_brandingConfigurationInputHasBeenSet = true;
321 m_brandingConfigurationInput = std::forward<BrandingConfigurationInputT>(value);
322 }
323 template <typename BrandingConfigurationInputT = BrandingConfigurationCreateInput>
324 CreateUserSettingsRequest& WithBrandingConfigurationInput(BrandingConfigurationInputT&& value) {
325 SetBrandingConfigurationInput(std::forward<BrandingConfigurationInputT>(value));
326 return *this;
327 }
329
331
335 inline EnabledType GetWebAuthnAllowed() const { return m_webAuthnAllowed; }
336 inline bool WebAuthnAllowedHasBeenSet() const { return m_webAuthnAllowedHasBeenSet; }
337 inline void SetWebAuthnAllowed(EnabledType value) {
338 m_webAuthnAllowedHasBeenSet = true;
339 m_webAuthnAllowed = value;
340 }
342 SetWebAuthnAllowed(value);
343 return *this;
344 }
346 private:
347 EnabledType m_copyAllowed{EnabledType::NOT_SET};
348
349 EnabledType m_pasteAllowed{EnabledType::NOT_SET};
350
351 EnabledType m_downloadAllowed{EnabledType::NOT_SET};
352
353 EnabledType m_uploadAllowed{EnabledType::NOT_SET};
354
355 EnabledType m_printAllowed{EnabledType::NOT_SET};
356
357 Aws::Vector<Tag> m_tags;
358
359 int m_disconnectTimeoutInMinutes{0};
360
361 int m_idleDisconnectTimeoutInMinutes{0};
362
364
365 CookieSynchronizationConfiguration m_cookieSynchronizationConfiguration;
366
367 Aws::String m_customerManagedKey;
368
369 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
370
371 EnabledType m_deepLinkAllowed{EnabledType::NOT_SET};
372
373 ToolbarConfiguration m_toolbarConfiguration;
374
375 BrandingConfigurationCreateInput m_brandingConfigurationInput;
376
377 EnabledType m_webAuthnAllowed{EnabledType::NOT_SET};
378 bool m_copyAllowedHasBeenSet = false;
379 bool m_pasteAllowedHasBeenSet = false;
380 bool m_downloadAllowedHasBeenSet = false;
381 bool m_uploadAllowedHasBeenSet = false;
382 bool m_printAllowedHasBeenSet = false;
383 bool m_tagsHasBeenSet = false;
384 bool m_disconnectTimeoutInMinutesHasBeenSet = false;
385 bool m_idleDisconnectTimeoutInMinutesHasBeenSet = false;
386 bool m_clientTokenHasBeenSet = true;
387 bool m_cookieSynchronizationConfigurationHasBeenSet = false;
388 bool m_customerManagedKeyHasBeenSet = false;
389 bool m_additionalEncryptionContextHasBeenSet = false;
390 bool m_deepLinkAllowedHasBeenSet = false;
391 bool m_toolbarConfigurationHasBeenSet = false;
392 bool m_brandingConfigurationInputHasBeenSet = false;
393 bool m_webAuthnAllowedHasBeenSet = false;
394};
395
396} // namespace Model
397} // namespace WorkSpacesWeb
398} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateUserSettingsRequest & WithClientToken(ClientTokenT &&value)
CreateUserSettingsRequest & WithCustomerManagedKey(CustomerManagedKeyT &&value)
CreateUserSettingsRequest & WithPasteAllowed(EnabledType value)
CreateUserSettingsRequest & WithDownloadAllowed(EnabledType value)
CreateUserSettingsRequest & WithToolbarConfiguration(ToolbarConfigurationT &&value)
void SetBrandingConfigurationInput(BrandingConfigurationInputT &&value)
virtual const char * GetServiceRequestName() const override
CreateUserSettingsRequest & WithCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT &&value)
CreateUserSettingsRequest & WithDeepLinkAllowed(EnabledType value)
CreateUserSettingsRequest & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
const BrandingConfigurationCreateInput & GetBrandingConfigurationInput() const
AWS_WORKSPACESWEB_API CreateUserSettingsRequest()=default
void SetCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT &&value)
CreateUserSettingsRequest & WithTags(TagsT &&value)
const CookieSynchronizationConfiguration & GetCookieSynchronizationConfiguration() const
CreateUserSettingsRequest & WithIdleDisconnectTimeoutInMinutes(int value)
CreateUserSettingsRequest & WithDisconnectTimeoutInMinutes(int value)
CreateUserSettingsRequest & WithBrandingConfigurationInput(BrandingConfigurationInputT &&value)
CreateUserSettingsRequest & WithWebAuthnAllowed(EnabledType value)
CreateUserSettingsRequest & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
CreateUserSettingsRequest & WithPrintAllowed(EnabledType value)
CreateUserSettingsRequest & WithCopyAllowed(EnabledType value)
CreateUserSettingsRequest & WithUploadAllowed(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