AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateUserRequest.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/quicksight/model/UserRole.h>
11#include <utility>
12
13namespace Aws
14{
15namespace QuickSight
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_QUICKSIGHT_API UpdateUserRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateUser"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetUserName() const { return m_userName; }
41 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
42 template<typename UserNameT = Aws::String>
43 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
44 template<typename UserNameT = Aws::String>
45 UpdateUserRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
47
49
54 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
55 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
56 template<typename AwsAccountIdT = Aws::String>
57 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
58 template<typename AwsAccountIdT = Aws::String>
59 UpdateUserRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetNamespace() const { return m_namespace; }
67 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
68 template<typename NamespaceT = Aws::String>
69 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
70 template<typename NamespaceT = Aws::String>
71 UpdateUserRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
73
75
78 inline const Aws::String& GetEmail() const { return m_email; }
79 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
80 template<typename EmailT = Aws::String>
81 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
82 template<typename EmailT = Aws::String>
83 UpdateUserRequest& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
85
87
106 inline UserRole GetRole() const { return m_role; }
107 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
108 inline void SetRole(UserRole value) { m_roleHasBeenSet = true; m_role = value; }
109 inline UpdateUserRequest& WithRole(UserRole value) { SetRole(value); return *this;}
111
113
130 inline const Aws::String& GetCustomPermissionsName() const { return m_customPermissionsName; }
131 inline bool CustomPermissionsNameHasBeenSet() const { return m_customPermissionsNameHasBeenSet; }
132 template<typename CustomPermissionsNameT = Aws::String>
133 void SetCustomPermissionsName(CustomPermissionsNameT&& value) { m_customPermissionsNameHasBeenSet = true; m_customPermissionsName = std::forward<CustomPermissionsNameT>(value); }
134 template<typename CustomPermissionsNameT = Aws::String>
135 UpdateUserRequest& WithCustomPermissionsName(CustomPermissionsNameT&& value) { SetCustomPermissionsName(std::forward<CustomPermissionsNameT>(value)); return *this;}
137
139
145 inline bool GetUnapplyCustomPermissions() const { return m_unapplyCustomPermissions; }
146 inline bool UnapplyCustomPermissionsHasBeenSet() const { return m_unapplyCustomPermissionsHasBeenSet; }
147 inline void SetUnapplyCustomPermissions(bool value) { m_unapplyCustomPermissionsHasBeenSet = true; m_unapplyCustomPermissions = value; }
150
152
168 inline const Aws::String& GetExternalLoginFederationProviderType() const { return m_externalLoginFederationProviderType; }
169 inline bool ExternalLoginFederationProviderTypeHasBeenSet() const { return m_externalLoginFederationProviderTypeHasBeenSet; }
170 template<typename ExternalLoginFederationProviderTypeT = Aws::String>
171 void SetExternalLoginFederationProviderType(ExternalLoginFederationProviderTypeT&& value) { m_externalLoginFederationProviderTypeHasBeenSet = true; m_externalLoginFederationProviderType = std::forward<ExternalLoginFederationProviderTypeT>(value); }
172 template<typename ExternalLoginFederationProviderTypeT = Aws::String>
173 UpdateUserRequest& WithExternalLoginFederationProviderType(ExternalLoginFederationProviderTypeT&& value) { SetExternalLoginFederationProviderType(std::forward<ExternalLoginFederationProviderTypeT>(value)); return *this;}
175
177
184 inline const Aws::String& GetCustomFederationProviderUrl() const { return m_customFederationProviderUrl; }
185 inline bool CustomFederationProviderUrlHasBeenSet() const { return m_customFederationProviderUrlHasBeenSet; }
186 template<typename CustomFederationProviderUrlT = Aws::String>
187 void SetCustomFederationProviderUrl(CustomFederationProviderUrlT&& value) { m_customFederationProviderUrlHasBeenSet = true; m_customFederationProviderUrl = std::forward<CustomFederationProviderUrlT>(value); }
188 template<typename CustomFederationProviderUrlT = Aws::String>
189 UpdateUserRequest& WithCustomFederationProviderUrl(CustomFederationProviderUrlT&& value) { SetCustomFederationProviderUrl(std::forward<CustomFederationProviderUrlT>(value)); return *this;}
191
193
196 inline const Aws::String& GetExternalLoginId() const { return m_externalLoginId; }
197 inline bool ExternalLoginIdHasBeenSet() const { return m_externalLoginIdHasBeenSet; }
198 template<typename ExternalLoginIdT = Aws::String>
199 void SetExternalLoginId(ExternalLoginIdT&& value) { m_externalLoginIdHasBeenSet = true; m_externalLoginId = std::forward<ExternalLoginIdT>(value); }
200 template<typename ExternalLoginIdT = Aws::String>
201 UpdateUserRequest& WithExternalLoginId(ExternalLoginIdT&& value) { SetExternalLoginId(std::forward<ExternalLoginIdT>(value)); return *this;}
203 private:
204
205 Aws::String m_userName;
206 bool m_userNameHasBeenSet = false;
207
208 Aws::String m_awsAccountId;
209 bool m_awsAccountIdHasBeenSet = false;
210
211 Aws::String m_namespace;
212 bool m_namespaceHasBeenSet = false;
213
214 Aws::String m_email;
215 bool m_emailHasBeenSet = false;
216
218 bool m_roleHasBeenSet = false;
219
220 Aws::String m_customPermissionsName;
221 bool m_customPermissionsNameHasBeenSet = false;
222
223 bool m_unapplyCustomPermissions{false};
224 bool m_unapplyCustomPermissionsHasBeenSet = false;
225
226 Aws::String m_externalLoginFederationProviderType;
227 bool m_externalLoginFederationProviderTypeHasBeenSet = false;
228
229 Aws::String m_customFederationProviderUrl;
230 bool m_customFederationProviderUrlHasBeenSet = false;
231
232 Aws::String m_externalLoginId;
233 bool m_externalLoginIdHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace QuickSight
238} // namespace Aws
void SetAwsAccountId(AwsAccountIdT &&value)
UpdateUserRequest & WithExternalLoginId(ExternalLoginIdT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
void SetExternalLoginFederationProviderType(ExternalLoginFederationProviderTypeT &&value)
UpdateUserRequest & WithRole(UserRole value)
void SetExternalLoginId(ExternalLoginIdT &&value)
UpdateUserRequest & WithExternalLoginFederationProviderType(ExternalLoginFederationProviderTypeT &&value)
UpdateUserRequest & WithNamespace(NamespaceT &&value)
AWS_QUICKSIGHT_API UpdateUserRequest()=default
UpdateUserRequest & WithUnapplyCustomPermissions(bool value)
UpdateUserRequest & WithAwsAccountId(AwsAccountIdT &&value)
void SetCustomFederationProviderUrl(CustomFederationProviderUrlT &&value)
UpdateUserRequest & WithCustomPermissionsName(CustomPermissionsNameT &&value)
const Aws::String & GetExternalLoginFederationProviderType() const
UpdateUserRequest & WithEmail(EmailT &&value)
const Aws::String & GetExternalLoginId() const
UpdateUserRequest & WithUserName(UserNameT &&value)
const Aws::String & GetAwsAccountId() const
void SetCustomPermissionsName(CustomPermissionsNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateUserRequest & WithCustomFederationProviderUrl(CustomFederationProviderUrlT &&value)
const Aws::String & GetCustomPermissionsName() const
const Aws::String & GetCustomFederationProviderUrl() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String