AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/UserRole.h>
10#include <aws/quicksight/model/IdentityType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight
24{
25namespace Model
26{
27
33 class User
34 {
35 public:
36 AWS_QUICKSIGHT_API User();
37 AWS_QUICKSIGHT_API User(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline User& WithArn(const char* value) { SetArn(value); return *this;}
55
57
64 inline const Aws::String& GetUserName() const{ return m_userName; }
65 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
66 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
67 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
68 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
69 inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
70 inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
71 inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
73
75
78 inline const Aws::String& GetEmail() const{ return m_email; }
79 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
80 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
81 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
82 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
83 inline User& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
84 inline User& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
85 inline User& WithEmail(const char* value) { SetEmail(value); return *this;}
87
89
109 inline const UserRole& GetRole() const{ return m_role; }
110 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
111 inline void SetRole(const UserRole& value) { m_roleHasBeenSet = true; m_role = value; }
112 inline void SetRole(UserRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
113 inline User& WithRole(const UserRole& value) { SetRole(value); return *this;}
114 inline User& WithRole(UserRole&& value) { SetRole(std::move(value)); return *this;}
116
118
121 inline const IdentityType& GetIdentityType() const{ return m_identityType; }
122 inline bool IdentityTypeHasBeenSet() const { return m_identityTypeHasBeenSet; }
123 inline void SetIdentityType(const IdentityType& value) { m_identityTypeHasBeenSet = true; m_identityType = value; }
124 inline void SetIdentityType(IdentityType&& value) { m_identityTypeHasBeenSet = true; m_identityType = std::move(value); }
125 inline User& WithIdentityType(const IdentityType& value) { SetIdentityType(value); return *this;}
126 inline User& WithIdentityType(IdentityType&& value) { SetIdentityType(std::move(value)); return *this;}
128
130
135 inline bool GetActive() const{ return m_active; }
136 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
137 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
138 inline User& WithActive(bool value) { SetActive(value); return *this;}
140
142
145 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
146 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
147 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
148 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
149 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
150 inline User& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
151 inline User& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
152 inline User& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
154
156
159 inline const Aws::String& GetCustomPermissionsName() const{ return m_customPermissionsName; }
160 inline bool CustomPermissionsNameHasBeenSet() const { return m_customPermissionsNameHasBeenSet; }
161 inline void SetCustomPermissionsName(const Aws::String& value) { m_customPermissionsNameHasBeenSet = true; m_customPermissionsName = value; }
162 inline void SetCustomPermissionsName(Aws::String&& value) { m_customPermissionsNameHasBeenSet = true; m_customPermissionsName = std::move(value); }
163 inline void SetCustomPermissionsName(const char* value) { m_customPermissionsNameHasBeenSet = true; m_customPermissionsName.assign(value); }
164 inline User& WithCustomPermissionsName(const Aws::String& value) { SetCustomPermissionsName(value); return *this;}
165 inline User& WithCustomPermissionsName(Aws::String&& value) { SetCustomPermissionsName(std::move(value)); return *this;}
166 inline User& WithCustomPermissionsName(const char* value) { SetCustomPermissionsName(value); return *this;}
168
170
177 inline const Aws::String& GetExternalLoginFederationProviderType() const{ return m_externalLoginFederationProviderType; }
178 inline bool ExternalLoginFederationProviderTypeHasBeenSet() const { return m_externalLoginFederationProviderTypeHasBeenSet; }
179 inline void SetExternalLoginFederationProviderType(const Aws::String& value) { m_externalLoginFederationProviderTypeHasBeenSet = true; m_externalLoginFederationProviderType = value; }
180 inline void SetExternalLoginFederationProviderType(Aws::String&& value) { m_externalLoginFederationProviderTypeHasBeenSet = true; m_externalLoginFederationProviderType = std::move(value); }
181 inline void SetExternalLoginFederationProviderType(const char* value) { m_externalLoginFederationProviderTypeHasBeenSet = true; m_externalLoginFederationProviderType.assign(value); }
186
188
191 inline const Aws::String& GetExternalLoginFederationProviderUrl() const{ return m_externalLoginFederationProviderUrl; }
192 inline bool ExternalLoginFederationProviderUrlHasBeenSet() const { return m_externalLoginFederationProviderUrlHasBeenSet; }
193 inline void SetExternalLoginFederationProviderUrl(const Aws::String& value) { m_externalLoginFederationProviderUrlHasBeenSet = true; m_externalLoginFederationProviderUrl = value; }
194 inline void SetExternalLoginFederationProviderUrl(Aws::String&& value) { m_externalLoginFederationProviderUrlHasBeenSet = true; m_externalLoginFederationProviderUrl = std::move(value); }
195 inline void SetExternalLoginFederationProviderUrl(const char* value) { m_externalLoginFederationProviderUrlHasBeenSet = true; m_externalLoginFederationProviderUrl.assign(value); }
200
202
205 inline const Aws::String& GetExternalLoginId() const{ return m_externalLoginId; }
206 inline bool ExternalLoginIdHasBeenSet() const { return m_externalLoginIdHasBeenSet; }
207 inline void SetExternalLoginId(const Aws::String& value) { m_externalLoginIdHasBeenSet = true; m_externalLoginId = value; }
208 inline void SetExternalLoginId(Aws::String&& value) { m_externalLoginIdHasBeenSet = true; m_externalLoginId = std::move(value); }
209 inline void SetExternalLoginId(const char* value) { m_externalLoginIdHasBeenSet = true; m_externalLoginId.assign(value); }
210 inline User& WithExternalLoginId(const Aws::String& value) { SetExternalLoginId(value); return *this;}
211 inline User& WithExternalLoginId(Aws::String&& value) { SetExternalLoginId(std::move(value)); return *this;}
212 inline User& WithExternalLoginId(const char* value) { SetExternalLoginId(value); return *this;}
214 private:
215
216 Aws::String m_arn;
217 bool m_arnHasBeenSet = false;
218
219 Aws::String m_userName;
220 bool m_userNameHasBeenSet = false;
221
222 Aws::String m_email;
223 bool m_emailHasBeenSet = false;
224
225 UserRole m_role;
226 bool m_roleHasBeenSet = false;
227
228 IdentityType m_identityType;
229 bool m_identityTypeHasBeenSet = false;
230
231 bool m_active;
232 bool m_activeHasBeenSet = false;
233
234 Aws::String m_principalId;
235 bool m_principalIdHasBeenSet = false;
236
237 Aws::String m_customPermissionsName;
238 bool m_customPermissionsNameHasBeenSet = false;
239
240 Aws::String m_externalLoginFederationProviderType;
241 bool m_externalLoginFederationProviderTypeHasBeenSet = false;
242
243 Aws::String m_externalLoginFederationProviderUrl;
244 bool m_externalLoginFederationProviderUrlHasBeenSet = false;
245
246 Aws::String m_externalLoginId;
247 bool m_externalLoginIdHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace QuickSight
252} // namespace Aws
bool IdentityTypeHasBeenSet() const
Definition User.h:122
bool EmailHasBeenSet() const
Definition User.h:79
void SetCustomPermissionsName(const char *value)
Definition User.h:163
User & WithExternalLoginFederationProviderUrl(const Aws::String &value)
Definition User.h:196
User & WithExternalLoginId(const char *value)
Definition User.h:212
void SetExternalLoginFederationProviderUrl(const Aws::String &value)
Definition User.h:193
void SetCustomPermissionsName(Aws::String &&value)
Definition User.h:162
void SetExternalLoginId(const char *value)
Definition User.h:209
User & WithCustomPermissionsName(const char *value)
Definition User.h:166
bool UserNameHasBeenSet() const
Definition User.h:65
void SetExternalLoginFederationProviderType(const char *value)
Definition User.h:181
void SetExternalLoginId(const Aws::String &value)
Definition User.h:207
bool CustomPermissionsNameHasBeenSet() const
Definition User.h:160
User & WithExternalLoginId(Aws::String &&value)
Definition User.h:211
User & WithIdentityType(IdentityType &&value)
Definition User.h:126
void SetArn(Aws::String &&value)
Definition User.h:49
bool GetActive() const
Definition User.h:135
AWS_QUICKSIGHT_API User(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const char *value)
Definition User.h:50
const UserRole & GetRole() const
Definition User.h:109
User & WithPrincipalId(const Aws::String &value)
Definition User.h:150
const Aws::String & GetCustomPermissionsName() const
Definition User.h:159
void SetUserName(const char *value)
Definition User.h:68
void SetCustomPermissionsName(const Aws::String &value)
Definition User.h:161
User & WithActive(bool value)
Definition User.h:138
void SetRole(const UserRole &value)
Definition User.h:111
void SetExternalLoginId(Aws::String &&value)
Definition User.h:208
void SetUserName(const Aws::String &value)
Definition User.h:66
User & WithArn(Aws::String &&value)
Definition User.h:52
void SetIdentityType(const IdentityType &value)
Definition User.h:123
bool ActiveHasBeenSet() const
Definition User.h:136
void SetExternalLoginFederationProviderUrl(const char *value)
Definition User.h:195
void SetEmail(const char *value)
Definition User.h:82
User & WithIdentityType(const IdentityType &value)
Definition User.h:125
User & WithExternalLoginFederationProviderType(Aws::String &&value)
Definition User.h:183
User & WithExternalLoginFederationProviderUrl(const char *value)
Definition User.h:198
const Aws::String & GetEmail() const
Definition User.h:78
User & WithExternalLoginFederationProviderUrl(Aws::String &&value)
Definition User.h:197
bool ExternalLoginFederationProviderUrlHasBeenSet() const
Definition User.h:192
User & WithArn(const Aws::String &value)
Definition User.h:51
User & WithCustomPermissionsName(Aws::String &&value)
Definition User.h:165
User & WithExternalLoginFederationProviderType(const Aws::String &value)
Definition User.h:182
void SetIdentityType(IdentityType &&value)
Definition User.h:124
User & WithEmail(Aws::String &&value)
Definition User.h:84
User & WithRole(const UserRole &value)
Definition User.h:113
User & WithPrincipalId(Aws::String &&value)
Definition User.h:151
void SetExternalLoginFederationProviderType(Aws::String &&value)
Definition User.h:180
const Aws::String & GetExternalLoginFederationProviderUrl() const
Definition User.h:191
const Aws::String & GetExternalLoginId() const
Definition User.h:205
User & WithPrincipalId(const char *value)
Definition User.h:152
bool ArnHasBeenSet() const
Definition User.h:47
User & WithRole(UserRole &&value)
Definition User.h:114
void SetExternalLoginFederationProviderUrl(Aws::String &&value)
Definition User.h:194
User & WithUserName(Aws::String &&value)
Definition User.h:70
const Aws::String & GetExternalLoginFederationProviderType() const
Definition User.h:177
bool RoleHasBeenSet() const
Definition User.h:110
bool ExternalLoginIdHasBeenSet() const
Definition User.h:206
void SetExternalLoginFederationProviderType(const Aws::String &value)
Definition User.h:179
User & WithEmail(const Aws::String &value)
Definition User.h:83
void SetUserName(Aws::String &&value)
Definition User.h:67
User & WithUserName(const Aws::String &value)
Definition User.h:69
void SetEmail(const Aws::String &value)
Definition User.h:80
const Aws::String & GetUserName() const
Definition User.h:64
const Aws::String & GetArn() const
Definition User.h:46
User & WithExternalLoginFederationProviderType(const char *value)
Definition User.h:184
AWS_QUICKSIGHT_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
const IdentityType & GetIdentityType() const
Definition User.h:121
void SetEmail(Aws::String &&value)
Definition User.h:81
User & WithEmail(const char *value)
Definition User.h:85
void SetRole(UserRole &&value)
Definition User.h:112
void SetPrincipalId(Aws::String &&value)
Definition User.h:148
User & WithExternalLoginId(const Aws::String &value)
Definition User.h:210
AWS_QUICKSIGHT_API User()
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
bool PrincipalIdHasBeenSet() const
Definition User.h:146
const Aws::String & GetPrincipalId() const
Definition User.h:145
void SetPrincipalId(const char *value)
Definition User.h:149
void SetActive(bool value)
Definition User.h:137
bool ExternalLoginFederationProviderTypeHasBeenSet() const
Definition User.h:178
void SetPrincipalId(const Aws::String &value)
Definition User.h:147
User & WithUserName(const char *value)
Definition User.h:71
void SetArn(const Aws::String &value)
Definition User.h:48
User & WithCustomPermissionsName(const Aws::String &value)
Definition User.h:164
User & WithArn(const char *value)
Definition User.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue