AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
UpdateUserSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces-web/WorkSpacesWebRequest.h>
10#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
11#include <aws/workspaces-web/model/BrandingConfigurationUpdateInput.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 WorkSpacesWeb {
20namespace Model {
21
25 public:
26 AWS_WORKSPACESWEB_API UpdateUserSettingsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateUserSettings"; }
33
34 AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetUserSettingsArn() const { return m_userSettingsArn; }
41 inline bool UserSettingsArnHasBeenSet() const { return m_userSettingsArnHasBeenSet; }
42 template <typename UserSettingsArnT = Aws::String>
43 void SetUserSettingsArn(UserSettingsArnT&& value) {
44 m_userSettingsArnHasBeenSet = true;
45 m_userSettingsArn = std::forward<UserSettingsArnT>(value);
46 }
47 template <typename UserSettingsArnT = Aws::String>
49 SetUserSettingsArn(std::forward<UserSettingsArnT>(value));
50 return *this;
51 }
53
55
59 inline EnabledType GetCopyAllowed() const { return m_copyAllowed; }
60 inline bool CopyAllowedHasBeenSet() const { return m_copyAllowedHasBeenSet; }
61 inline void SetCopyAllowed(EnabledType value) {
62 m_copyAllowedHasBeenSet = true;
63 m_copyAllowed = value;
64 }
66 SetCopyAllowed(value);
67 return *this;
68 }
70
72
76 inline EnabledType GetPasteAllowed() const { return m_pasteAllowed; }
77 inline bool PasteAllowedHasBeenSet() const { return m_pasteAllowedHasBeenSet; }
78 inline void SetPasteAllowed(EnabledType value) {
79 m_pasteAllowedHasBeenSet = true;
80 m_pasteAllowed = value;
81 }
83 SetPasteAllowed(value);
84 return *this;
85 }
87
89
93 inline EnabledType GetDownloadAllowed() const { return m_downloadAllowed; }
94 inline bool DownloadAllowedHasBeenSet() const { return m_downloadAllowedHasBeenSet; }
95 inline void SetDownloadAllowed(EnabledType value) {
96 m_downloadAllowedHasBeenSet = true;
97 m_downloadAllowed = value;
98 }
100 SetDownloadAllowed(value);
101 return *this;
102 }
104
106
110 inline EnabledType GetUploadAllowed() const { return m_uploadAllowed; }
111 inline bool UploadAllowedHasBeenSet() const { return m_uploadAllowedHasBeenSet; }
112 inline void SetUploadAllowed(EnabledType value) {
113 m_uploadAllowedHasBeenSet = true;
114 m_uploadAllowed = value;
115 }
117 SetUploadAllowed(value);
118 return *this;
119 }
121
123
126 inline EnabledType GetPrintAllowed() const { return m_printAllowed; }
127 inline bool PrintAllowedHasBeenSet() const { return m_printAllowedHasBeenSet; }
128 inline void SetPrintAllowed(EnabledType value) {
129 m_printAllowedHasBeenSet = true;
130 m_printAllowed = value;
131 }
133 SetPrintAllowed(value);
134 return *this;
135 }
137
139
143 inline int GetDisconnectTimeoutInMinutes() const { return m_disconnectTimeoutInMinutes; }
144 inline bool DisconnectTimeoutInMinutesHasBeenSet() const { return m_disconnectTimeoutInMinutesHasBeenSet; }
145 inline void SetDisconnectTimeoutInMinutes(int value) {
146 m_disconnectTimeoutInMinutesHasBeenSet = true;
147 m_disconnectTimeoutInMinutes = value;
148 }
151 return *this;
152 }
154
156
161 inline int GetIdleDisconnectTimeoutInMinutes() const { return m_idleDisconnectTimeoutInMinutes; }
162 inline bool IdleDisconnectTimeoutInMinutesHasBeenSet() const { return m_idleDisconnectTimeoutInMinutesHasBeenSet; }
163 inline void SetIdleDisconnectTimeoutInMinutes(int value) {
164 m_idleDisconnectTimeoutInMinutesHasBeenSet = true;
165 m_idleDisconnectTimeoutInMinutes = value;
166 }
172
174
182 inline const Aws::String& GetClientToken() const { return m_clientToken; }
183 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
184 template <typename ClientTokenT = Aws::String>
185 void SetClientToken(ClientTokenT&& value) {
186 m_clientTokenHasBeenSet = true;
187 m_clientToken = std::forward<ClientTokenT>(value);
188 }
189 template <typename ClientTokenT = Aws::String>
191 SetClientToken(std::forward<ClientTokenT>(value));
192 return *this;
193 }
195
197
203 return m_cookieSynchronizationConfiguration;
204 }
205 inline bool CookieSynchronizationConfigurationHasBeenSet() const { return m_cookieSynchronizationConfigurationHasBeenSet; }
206 template <typename CookieSynchronizationConfigurationT = CookieSynchronizationConfiguration>
207 void SetCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT&& value) {
208 m_cookieSynchronizationConfigurationHasBeenSet = true;
209 m_cookieSynchronizationConfiguration = std::forward<CookieSynchronizationConfigurationT>(value);
210 }
211 template <typename CookieSynchronizationConfigurationT = CookieSynchronizationConfiguration>
212 UpdateUserSettingsRequest& WithCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT&& value) {
213 SetCookieSynchronizationConfiguration(std::forward<CookieSynchronizationConfigurationT>(value));
214 return *this;
215 }
217
219
223 inline EnabledType GetDeepLinkAllowed() const { return m_deepLinkAllowed; }
224 inline bool DeepLinkAllowedHasBeenSet() const { return m_deepLinkAllowedHasBeenSet; }
225 inline void SetDeepLinkAllowed(EnabledType value) {
226 m_deepLinkAllowedHasBeenSet = true;
227 m_deepLinkAllowed = value;
228 }
230 SetDeepLinkAllowed(value);
231 return *this;
232 }
234
236
243 inline const ToolbarConfiguration& GetToolbarConfiguration() const { return m_toolbarConfiguration; }
244 inline bool ToolbarConfigurationHasBeenSet() const { return m_toolbarConfigurationHasBeenSet; }
245 template <typename ToolbarConfigurationT = ToolbarConfiguration>
246 void SetToolbarConfiguration(ToolbarConfigurationT&& value) {
247 m_toolbarConfigurationHasBeenSet = true;
248 m_toolbarConfiguration = std::forward<ToolbarConfigurationT>(value);
249 }
250 template <typename ToolbarConfigurationT = ToolbarConfiguration>
251 UpdateUserSettingsRequest& WithToolbarConfiguration(ToolbarConfigurationT&& value) {
252 SetToolbarConfiguration(std::forward<ToolbarConfigurationT>(value));
253 return *this;
254 }
256
258
265 inline const BrandingConfigurationUpdateInput& GetBrandingConfigurationInput() const { return m_brandingConfigurationInput; }
266 inline bool BrandingConfigurationInputHasBeenSet() const { return m_brandingConfigurationInputHasBeenSet; }
267 template <typename BrandingConfigurationInputT = BrandingConfigurationUpdateInput>
268 void SetBrandingConfigurationInput(BrandingConfigurationInputT&& value) {
269 m_brandingConfigurationInputHasBeenSet = true;
270 m_brandingConfigurationInput = std::forward<BrandingConfigurationInputT>(value);
271 }
272 template <typename BrandingConfigurationInputT = BrandingConfigurationUpdateInput>
273 UpdateUserSettingsRequest& WithBrandingConfigurationInput(BrandingConfigurationInputT&& value) {
274 SetBrandingConfigurationInput(std::forward<BrandingConfigurationInputT>(value));
275 return *this;
276 }
278
280
284 inline EnabledType GetWebAuthnAllowed() const { return m_webAuthnAllowed; }
285 inline bool WebAuthnAllowedHasBeenSet() const { return m_webAuthnAllowedHasBeenSet; }
286 inline void SetWebAuthnAllowed(EnabledType value) {
287 m_webAuthnAllowedHasBeenSet = true;
288 m_webAuthnAllowed = value;
289 }
291 SetWebAuthnAllowed(value);
292 return *this;
293 }
295 private:
296 Aws::String m_userSettingsArn;
297
298 EnabledType m_copyAllowed{EnabledType::NOT_SET};
299
300 EnabledType m_pasteAllowed{EnabledType::NOT_SET};
301
302 EnabledType m_downloadAllowed{EnabledType::NOT_SET};
303
304 EnabledType m_uploadAllowed{EnabledType::NOT_SET};
305
306 EnabledType m_printAllowed{EnabledType::NOT_SET};
307
308 int m_disconnectTimeoutInMinutes{0};
309
310 int m_idleDisconnectTimeoutInMinutes{0};
311
313
314 CookieSynchronizationConfiguration m_cookieSynchronizationConfiguration;
315
316 EnabledType m_deepLinkAllowed{EnabledType::NOT_SET};
317
318 ToolbarConfiguration m_toolbarConfiguration;
319
320 BrandingConfigurationUpdateInput m_brandingConfigurationInput;
321
322 EnabledType m_webAuthnAllowed{EnabledType::NOT_SET};
323 bool m_userSettingsArnHasBeenSet = false;
324 bool m_copyAllowedHasBeenSet = false;
325 bool m_pasteAllowedHasBeenSet = false;
326 bool m_downloadAllowedHasBeenSet = false;
327 bool m_uploadAllowedHasBeenSet = false;
328 bool m_printAllowedHasBeenSet = false;
329 bool m_disconnectTimeoutInMinutesHasBeenSet = false;
330 bool m_idleDisconnectTimeoutInMinutesHasBeenSet = false;
331 bool m_clientTokenHasBeenSet = true;
332 bool m_cookieSynchronizationConfigurationHasBeenSet = false;
333 bool m_deepLinkAllowedHasBeenSet = false;
334 bool m_toolbarConfigurationHasBeenSet = false;
335 bool m_brandingConfigurationInputHasBeenSet = false;
336 bool m_webAuthnAllowedHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace WorkSpacesWeb
341} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
UpdateUserSettingsRequest & WithCopyAllowed(EnabledType value)
const BrandingConfigurationUpdateInput & GetBrandingConfigurationInput() const
UpdateUserSettingsRequest & WithPrintAllowed(EnabledType value)
virtual const char * GetServiceRequestName() const override
AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override
UpdateUserSettingsRequest & WithClientToken(ClientTokenT &&value)
UpdateUserSettingsRequest & WithCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT &&value)
const CookieSynchronizationConfiguration & GetCookieSynchronizationConfiguration() const
UpdateUserSettingsRequest & WithPasteAllowed(EnabledType value)
UpdateUserSettingsRequest & WithBrandingConfigurationInput(BrandingConfigurationInputT &&value)
void SetCookieSynchronizationConfiguration(CookieSynchronizationConfigurationT &&value)
void SetBrandingConfigurationInput(BrandingConfigurationInputT &&value)
UpdateUserSettingsRequest & WithDisconnectTimeoutInMinutes(int value)
UpdateUserSettingsRequest & WithUserSettingsArn(UserSettingsArnT &&value)
UpdateUserSettingsRequest & WithDownloadAllowed(EnabledType value)
AWS_WORKSPACESWEB_API UpdateUserSettingsRequest()=default
UpdateUserSettingsRequest & WithIdleDisconnectTimeoutInMinutes(int value)
UpdateUserSettingsRequest & WithDeepLinkAllowed(EnabledType value)
UpdateUserSettingsRequest & WithUploadAllowed(EnabledType value)
UpdateUserSettingsRequest & WithWebAuthnAllowed(EnabledType value)
UpdateUserSettingsRequest & WithToolbarConfiguration(ToolbarConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String