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/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/EntityState.h>
10#include <aws/workmail/model/UserRole.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkMail
25{
26namespace Model
27{
28
34 class User
35 {
36 public:
37 AWS_WORKMAIL_API User();
38 AWS_WORKMAIL_API User(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKMAIL_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline User& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline User& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline User& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetEmail() const{ return m_email; }
62 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
63 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
64 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
65 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
66 inline User& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
67 inline User& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
68 inline User& WithEmail(const char* value) { SetEmail(value); return *this;}
70
72
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline User& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline User& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline User& WithName(const char* value) { SetName(value); return *this;}
84
86
89 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
90 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
91 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
92 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
93 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
94 inline User& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
95 inline User& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
96 inline User& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
98
100
103 inline const EntityState& GetState() const{ return m_state; }
104 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
105 inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; }
106 inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
107 inline User& WithState(const EntityState& value) { SetState(value); return *this;}
108 inline User& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
110
112
115 inline const UserRole& GetUserRole() const{ return m_userRole; }
116 inline bool UserRoleHasBeenSet() const { return m_userRoleHasBeenSet; }
117 inline void SetUserRole(const UserRole& value) { m_userRoleHasBeenSet = true; m_userRole = value; }
118 inline void SetUserRole(UserRole&& value) { m_userRoleHasBeenSet = true; m_userRole = std::move(value); }
119 inline User& WithUserRole(const UserRole& value) { SetUserRole(value); return *this;}
120 inline User& WithUserRole(UserRole&& value) { SetUserRole(std::move(value)); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
128 inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
129 inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; }
130 inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); }
131 inline User& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
132 inline User& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
140 inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
141 inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; }
142 inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); }
143 inline User& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
144 inline User& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
146
148
153 inline const Aws::String& GetIdentityProviderUserId() const{ return m_identityProviderUserId; }
154 inline bool IdentityProviderUserIdHasBeenSet() const { return m_identityProviderUserIdHasBeenSet; }
155 inline void SetIdentityProviderUserId(const Aws::String& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = value; }
156 inline void SetIdentityProviderUserId(Aws::String&& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = std::move(value); }
157 inline void SetIdentityProviderUserId(const char* value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId.assign(value); }
158 inline User& WithIdentityProviderUserId(const Aws::String& value) { SetIdentityProviderUserId(value); return *this;}
159 inline User& WithIdentityProviderUserId(Aws::String&& value) { SetIdentityProviderUserId(std::move(value)); return *this;}
160 inline User& WithIdentityProviderUserId(const char* value) { SetIdentityProviderUserId(value); return *this;}
162
164
169 inline const Aws::String& GetIdentityProviderIdentityStoreId() const{ return m_identityProviderIdentityStoreId; }
170 inline bool IdentityProviderIdentityStoreIdHasBeenSet() const { return m_identityProviderIdentityStoreIdHasBeenSet; }
171 inline void SetIdentityProviderIdentityStoreId(const Aws::String& value) { m_identityProviderIdentityStoreIdHasBeenSet = true; m_identityProviderIdentityStoreId = value; }
172 inline void SetIdentityProviderIdentityStoreId(Aws::String&& value) { m_identityProviderIdentityStoreIdHasBeenSet = true; m_identityProviderIdentityStoreId = std::move(value); }
173 inline void SetIdentityProviderIdentityStoreId(const char* value) { m_identityProviderIdentityStoreIdHasBeenSet = true; m_identityProviderIdentityStoreId.assign(value); }
176 inline User& WithIdentityProviderIdentityStoreId(const char* value) { SetIdentityProviderIdentityStoreId(value); return *this;}
178 private:
179
180 Aws::String m_id;
181 bool m_idHasBeenSet = false;
182
183 Aws::String m_email;
184 bool m_emailHasBeenSet = false;
185
186 Aws::String m_name;
187 bool m_nameHasBeenSet = false;
188
189 Aws::String m_displayName;
190 bool m_displayNameHasBeenSet = false;
191
192 EntityState m_state;
193 bool m_stateHasBeenSet = false;
194
195 UserRole m_userRole;
196 bool m_userRoleHasBeenSet = false;
197
198 Aws::Utils::DateTime m_enabledDate;
199 bool m_enabledDateHasBeenSet = false;
200
201 Aws::Utils::DateTime m_disabledDate;
202 bool m_disabledDateHasBeenSet = false;
203
204 Aws::String m_identityProviderUserId;
205 bool m_identityProviderUserIdHasBeenSet = false;
206
207 Aws::String m_identityProviderIdentityStoreId;
208 bool m_identityProviderIdentityStoreIdHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace WorkMail
213} // namespace Aws
User & WithIdentityProviderUserId(const Aws::String &value)
Definition User.h:158
User & WithState(const EntityState &value)
Definition User.h:107
const Aws::String & GetId() const
Definition User.h:47
bool IdHasBeenSet() const
Definition User.h:48
User & WithId(const char *value)
Definition User.h:54
bool EnabledDateHasBeenSet() const
Definition User.h:128
const Aws::String & GetName() const
Definition User.h:75
const Aws::Utils::DateTime & GetEnabledDate() const
Definition User.h:127
User & WithIdentityProviderUserId(Aws::String &&value)
Definition User.h:159
User & WithEmail(const Aws::String &value)
Definition User.h:66
bool NameHasBeenSet() const
Definition User.h:76
AWS_WORKMAIL_API User()
void SetIdentityProviderUserId(const char *value)
Definition User.h:157
void SetUserRole(UserRole &&value)
Definition User.h:118
User & WithState(EntityState &&value)
Definition User.h:108
bool DisplayNameHasBeenSet() const
Definition User.h:90
void SetUserRole(const UserRole &value)
Definition User.h:117
const EntityState & GetState() const
Definition User.h:103
User & WithIdentityProviderIdentityStoreId(Aws::String &&value)
Definition User.h:175
User & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition User.h:144
bool DisabledDateHasBeenSet() const
Definition User.h:140
User & WithIdentityProviderIdentityStoreId(const char *value)
Definition User.h:176
const UserRole & GetUserRole() const
Definition User.h:115
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition User.h:141
void SetId(Aws::String &&value)
Definition User.h:50
AWS_WORKMAIL_API User(Aws::Utils::Json::JsonView jsonValue)
void SetIdentityProviderUserId(Aws::String &&value)
Definition User.h:156
void SetEmail(Aws::String &&value)
Definition User.h:64
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition User.h:142
AWS_WORKMAIL_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
User & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition User.h:143
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition User.h:77
User & WithId(const Aws::String &value)
Definition User.h:52
void SetName(const char *value)
Definition User.h:79
User & WithName(const char *value)
Definition User.h:82
void SetIdentityProviderIdentityStoreId(const Aws::String &value)
Definition User.h:171
User & WithId(Aws::String &&value)
Definition User.h:53
const Aws::String & GetEmail() const
Definition User.h:61
bool EmailHasBeenSet() const
Definition User.h:62
User & WithEmail(const char *value)
Definition User.h:68
void SetIdentityProviderUserId(const Aws::String &value)
Definition User.h:155
const Aws::String & GetIdentityProviderUserId() const
Definition User.h:153
bool IdentityProviderUserIdHasBeenSet() const
Definition User.h:154
void SetName(Aws::String &&value)
Definition User.h:78
void SetId(const char *value)
Definition User.h:51
const Aws::String & GetDisplayName() const
Definition User.h:89
void SetEmail(const char *value)
Definition User.h:65
bool StateHasBeenSet() const
Definition User.h:104
User & WithDisplayName(const Aws::String &value)
Definition User.h:94
User & WithDisplayName(const char *value)
Definition User.h:96
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition User.h:129
const Aws::String & GetIdentityProviderIdentityStoreId() const
Definition User.h:169
User & WithIdentityProviderIdentityStoreId(const Aws::String &value)
Definition User.h:174
void SetState(EntityState &&value)
Definition User.h:106
User & WithName(const Aws::String &value)
Definition User.h:80
User & WithIdentityProviderUserId(const char *value)
Definition User.h:160
void SetEmail(const Aws::String &value)
Definition User.h:63
User & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition User.h:131
void SetState(const EntityState &value)
Definition User.h:105
User & WithName(Aws::String &&value)
Definition User.h:81
bool IdentityProviderIdentityStoreIdHasBeenSet() const
Definition User.h:170
void SetDisplayName(const char *value)
Definition User.h:93
User & WithDisplayName(Aws::String &&value)
Definition User.h:95
User & WithUserRole(const UserRole &value)
Definition User.h:119
User & WithEmail(Aws::String &&value)
Definition User.h:67
void SetDisplayName(Aws::String &&value)
Definition User.h:92
void SetIdentityProviderIdentityStoreId(const char *value)
Definition User.h:173
const Aws::Utils::DateTime & GetDisabledDate() const
Definition User.h:139
void SetId(const Aws::String &value)
Definition User.h:49
User & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition User.h:132
bool UserRoleHasBeenSet() const
Definition User.h:116
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition User.h:130
User & WithUserRole(UserRole &&value)
Definition User.h:120
void SetDisplayName(const Aws::String &value)
Definition User.h:91
void SetIdentityProviderIdentityStoreId(Aws::String &&value)
Definition User.h:172
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue