AWS SDK for C++  1.9.19
AWS SDK for C++
User.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace QuickSight
24 {
25 namespace Model
26 {
27 
34  {
35  public:
36  User();
40 
41 
45  inline const Aws::String& GetArn() const{ return m_arn; }
46 
50  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 
55  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56 
60  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
61 
65  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 
70  inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 
75  inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
76 
80  inline User& WithArn(const char* value) { SetArn(value); return *this;}
81 
82 
86  inline const Aws::String& GetUserName() const{ return m_userName; }
87 
91  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
92 
96  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
97 
101  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
102 
106  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
107 
111  inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
112 
116  inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
117 
121  inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
122 
123 
127  inline const Aws::String& GetEmail() const{ return m_email; }
128 
132  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
133 
137  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
138 
142  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
143 
147  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
148 
152  inline User& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
153 
157  inline User& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
158 
162  inline User& WithEmail(const char* value) { SetEmail(value); return *this;}
163 
164 
176  inline const UserRole& GetRole() const{ return m_role; }
177 
189  inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
190 
202  inline void SetRole(const UserRole& value) { m_roleHasBeenSet = true; m_role = value; }
203 
215  inline void SetRole(UserRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
216 
228  inline User& WithRole(const UserRole& value) { SetRole(value); return *this;}
229 
241  inline User& WithRole(UserRole&& value) { SetRole(std::move(value)); return *this;}
242 
243 
247  inline const IdentityType& GetIdentityType() const{ return m_identityType; }
248 
252  inline bool IdentityTypeHasBeenSet() const { return m_identityTypeHasBeenSet; }
253 
257  inline void SetIdentityType(const IdentityType& value) { m_identityTypeHasBeenSet = true; m_identityType = value; }
258 
262  inline void SetIdentityType(IdentityType&& value) { m_identityTypeHasBeenSet = true; m_identityType = std::move(value); }
263 
267  inline User& WithIdentityType(const IdentityType& value) { SetIdentityType(value); return *this;}
268 
272  inline User& WithIdentityType(IdentityType&& value) { SetIdentityType(std::move(value)); return *this;}
273 
274 
280  inline bool GetActive() const{ return m_active; }
281 
287  inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
288 
294  inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
295 
301  inline User& WithActive(bool value) { SetActive(value); return *this;}
302 
303 
307  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
308 
312  inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
313 
317  inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
318 
322  inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
323 
327  inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
328 
332  inline User& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
333 
337  inline User& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
338 
342  inline User& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
343 
344 
348  inline const Aws::String& GetCustomPermissionsName() const{ return m_customPermissionsName; }
349 
353  inline bool CustomPermissionsNameHasBeenSet() const { return m_customPermissionsNameHasBeenSet; }
354 
358  inline void SetCustomPermissionsName(const Aws::String& value) { m_customPermissionsNameHasBeenSet = true; m_customPermissionsName = value; }
359 
363  inline void SetCustomPermissionsName(Aws::String&& value) { m_customPermissionsNameHasBeenSet = true; m_customPermissionsName = std::move(value); }
364 
368  inline void SetCustomPermissionsName(const char* value) { m_customPermissionsNameHasBeenSet = true; m_customPermissionsName.assign(value); }
369 
373  inline User& WithCustomPermissionsName(const Aws::String& value) { SetCustomPermissionsName(value); return *this;}
374 
378  inline User& WithCustomPermissionsName(Aws::String&& value) { SetCustomPermissionsName(std::move(value)); return *this;}
379 
383  inline User& WithCustomPermissionsName(const char* value) { SetCustomPermissionsName(value); return *this;}
384 
385  private:
386 
387  Aws::String m_arn;
388  bool m_arnHasBeenSet;
389 
390  Aws::String m_userName;
391  bool m_userNameHasBeenSet;
392 
393  Aws::String m_email;
394  bool m_emailHasBeenSet;
395 
396  UserRole m_role;
397  bool m_roleHasBeenSet;
398 
399  IdentityType m_identityType;
400  bool m_identityTypeHasBeenSet;
401 
402  bool m_active;
403  bool m_activeHasBeenSet;
404 
405  Aws::String m_principalId;
406  bool m_principalIdHasBeenSet;
407 
408  Aws::String m_customPermissionsName;
409  bool m_customPermissionsNameHasBeenSet;
410  };
411 
412 } // namespace Model
413 } // namespace QuickSight
414 } // namespace Aws
Aws::QuickSight::Model::User::GetRole
const UserRole & GetRole() const
Definition: User.h:176
QuickSight_EXPORTS.h
Aws::QuickSight::Model::User::SetUserName
void SetUserName(const Aws::String &value)
Definition: User.h:96
Aws::QuickSight::Model::User::WithArn
User & WithArn(const Aws::String &value)
Definition: User.h:70
Aws::QuickSight::Model::User::GetUserName
const Aws::String & GetUserName() const
Definition: User.h:86
Aws::QuickSight::Model::User::WithEmail
User & WithEmail(Aws::String &&value)
Definition: User.h:157
Aws::QuickSight::Model::User::WithUserName
User & WithUserName(const Aws::String &value)
Definition: User.h:111
Aws::QuickSight::Model::User::SetEmail
void SetEmail(const char *value)
Definition: User.h:147
Aws::QuickSight::Model::User::WithCustomPermissionsName
User & WithCustomPermissionsName(Aws::String &&value)
Definition: User.h:378
Aws::QuickSight::Model::User::SetRole
void SetRole(const UserRole &value)
Definition: User.h:202
Aws::QuickSight::Model::User::SetActive
void SetActive(bool value)
Definition: User.h:294
Aws::QuickSight::Model::User::GetActive
bool GetActive() const
Definition: User.h:280
Aws::QuickSight::Model::User::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: User.h:317
Aws::QuickSight::Model::User::GetArn
const Aws::String & GetArn() const
Definition: User.h:45
Aws::QuickSight::Model::User::WithEmail
User & WithEmail(const char *value)
Definition: User.h:162
Aws::QuickSight::Model::User::WithPrincipalId
User & WithPrincipalId(const Aws::String &value)
Definition: User.h:332
Aws::QuickSight::Model::User::SetArn
void SetArn(const Aws::String &value)
Definition: User.h:55
Aws::QuickSight::Model::User::WithArn
User & WithArn(Aws::String &&value)
Definition: User.h:75
Aws::QuickSight::Model::User::SetCustomPermissionsName
void SetCustomPermissionsName(const char *value)
Definition: User.h:368
Aws::QuickSight::Model::User::WithUserName
User & WithUserName(const char *value)
Definition: User.h:121
Aws::QuickSight::Model::User::User
User()
Aws::QuickSight::Model::User
Definition: User.h:34
Aws::QuickSight::Model::User::WithIdentityType
User & WithIdentityType(IdentityType &&value)
Definition: User.h:272
Aws::QuickSight::Model::User::SetCustomPermissionsName
void SetCustomPermissionsName(const Aws::String &value)
Definition: User.h:358
Aws::QuickSight::Model::User::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: User.h:307
Aws::QuickSight::Model::User::SetIdentityType
void SetIdentityType(const IdentityType &value)
Definition: User.h:257
IdentityType.h
Aws::QuickSight::Model::User::PrincipalIdHasBeenSet
bool PrincipalIdHasBeenSet() const
Definition: User.h:312
Aws::QuickSight::Model::User::WithPrincipalId
User & WithPrincipalId(const char *value)
Definition: User.h:342
Aws::QuickSight::Model::User::WithCustomPermissionsName
User & WithCustomPermissionsName(const char *value)
Definition: User.h:383
Aws::QuickSight::Model::User::WithRole
User & WithRole(UserRole &&value)
Definition: User.h:241
Aws::QuickSight::Model::User::WithPrincipalId
User & WithPrincipalId(Aws::String &&value)
Definition: User.h:337
Aws::QuickSight::Model::User::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: User.h:327
Aws::QuickSight::Model::User::operator=
User & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::User::SetRole
void SetRole(UserRole &&value)
Definition: User.h:215
Aws::QuickSight::Model::User::WithArn
User & WithArn(const char *value)
Definition: User.h:80
Aws::QuickSight::Model::User::SetIdentityType
void SetIdentityType(IdentityType &&value)
Definition: User.h:262
Aws::QuickSight::Model::User::SetUserName
void SetUserName(const char *value)
Definition: User.h:106
Aws::QuickSight::Model::User::WithEmail
User & WithEmail(const Aws::String &value)
Definition: User.h:152
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::QuickSight::Model::User::SetEmail
void SetEmail(const Aws::String &value)
Definition: User.h:137
Aws::QuickSight::Model::User::GetIdentityType
const IdentityType & GetIdentityType() const
Definition: User.h:247
Aws::QuickSight::Model::User::WithUserName
User & WithUserName(Aws::String &&value)
Definition: User.h:116
Aws::QuickSight::Model::User::WithActive
User & WithActive(bool value)
Definition: User.h:301
Aws::QuickSight::Model::User::CustomPermissionsNameHasBeenSet
bool CustomPermissionsNameHasBeenSet() const
Definition: User.h:353
Aws::QuickSight::Model::User::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: User.h:91
Aws::QuickSight::Model::User::ActiveHasBeenSet
bool ActiveHasBeenSet() const
Definition: User.h:287
Aws::QuickSight::Model::User::SetArn
void SetArn(Aws::String &&value)
Definition: User.h:60
Aws::QuickSight::Model::User::IdentityTypeHasBeenSet
bool IdentityTypeHasBeenSet() const
Definition: User.h:252
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::User::GetEmail
const Aws::String & GetEmail() const
Definition: User.h:127
Aws::QuickSight::Model::UserRole
UserRole
Definition: UserRole.h:17
UserRole.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::User::WithIdentityType
User & WithIdentityType(const IdentityType &value)
Definition: User.h:267
Aws::QuickSight::Model::User::User
User(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::User::GetCustomPermissionsName
const Aws::String & GetCustomPermissionsName() const
Definition: User.h:348
Aws::QuickSight::Model::User::RoleHasBeenSet
bool RoleHasBeenSet() const
Definition: User.h:189
Aws::QuickSight::Model::User::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: User.h:322
Aws::QuickSight::Model::User::SetArn
void SetArn(const char *value)
Definition: User.h:65
Aws::QuickSight::Model::User::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: User.h:50
Aws::QuickSight::Model::User::SetCustomPermissionsName
void SetCustomPermissionsName(Aws::String &&value)
Definition: User.h:363
Aws::QuickSight::Model::IdentityType
IdentityType
Definition: IdentityType.h:17
Aws::QuickSight::Model::User::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::QuickSight::Model::User::WithCustomPermissionsName
User & WithCustomPermissionsName(const Aws::String &value)
Definition: User.h:373
Aws::QuickSight::Model::User::SetEmail
void SetEmail(Aws::String &&value)
Definition: User.h:142
Aws::QuickSight::Model::User::SetUserName
void SetUserName(Aws::String &&value)
Definition: User.h:101
Aws::QuickSight::Model::User::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: User.h:132
Aws::QuickSight::Model::User::WithRole
User & WithRole(const UserRole &value)
Definition: User.h:228