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/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/License.h>
10#include <aws/chime/model/UserType.h>
11#include <aws/chime/model/RegistrationStatus.h>
12#include <aws/chime/model/InviteStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/chime/model/AlexaForBusinessMetadata.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Chime
28{
29namespace Model
30{
31
37 class User
38 {
39 public:
40 AWS_CHIME_API User();
41 AWS_CHIME_API User(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CHIME_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetUserId() const{ return m_userId; }
51 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
52 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
53 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
54 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
55 inline User& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
56 inline User& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
57 inline User& WithUserId(const char* value) { SetUserId(value); return *this;}
59
61
64 inline const Aws::String& GetAccountId() const{ return m_accountId; }
65 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
66 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
67 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
68 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
69 inline User& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
70 inline User& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
71 inline User& WithAccountId(const char* value) { SetAccountId(value); return *this;}
73
75
78 inline const Aws::String& GetPrimaryEmail() const{ return m_primaryEmail; }
79 inline bool PrimaryEmailHasBeenSet() const { return m_primaryEmailHasBeenSet; }
80 inline void SetPrimaryEmail(const Aws::String& value) { m_primaryEmailHasBeenSet = true; m_primaryEmail = value; }
81 inline void SetPrimaryEmail(Aws::String&& value) { m_primaryEmailHasBeenSet = true; m_primaryEmail = std::move(value); }
82 inline void SetPrimaryEmail(const char* value) { m_primaryEmailHasBeenSet = true; m_primaryEmail.assign(value); }
83 inline User& WithPrimaryEmail(const Aws::String& value) { SetPrimaryEmail(value); return *this;}
84 inline User& WithPrimaryEmail(Aws::String&& value) { SetPrimaryEmail(std::move(value)); return *this;}
85 inline User& WithPrimaryEmail(const char* value) { SetPrimaryEmail(value); return *this;}
87
89
92 inline const Aws::String& GetPrimaryProvisionedNumber() const{ return m_primaryProvisionedNumber; }
93 inline bool PrimaryProvisionedNumberHasBeenSet() const { return m_primaryProvisionedNumberHasBeenSet; }
94 inline void SetPrimaryProvisionedNumber(const Aws::String& value) { m_primaryProvisionedNumberHasBeenSet = true; m_primaryProvisionedNumber = value; }
95 inline void SetPrimaryProvisionedNumber(Aws::String&& value) { m_primaryProvisionedNumberHasBeenSet = true; m_primaryProvisionedNumber = std::move(value); }
96 inline void SetPrimaryProvisionedNumber(const char* value) { m_primaryProvisionedNumberHasBeenSet = true; m_primaryProvisionedNumber.assign(value); }
97 inline User& WithPrimaryProvisionedNumber(const Aws::String& value) { SetPrimaryProvisionedNumber(value); return *this;}
98 inline User& WithPrimaryProvisionedNumber(Aws::String&& value) { SetPrimaryProvisionedNumber(std::move(value)); return *this;}
99 inline User& WithPrimaryProvisionedNumber(const char* value) { SetPrimaryProvisionedNumber(value); return *this;}
101
103
106 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
107 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
108 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
109 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
110 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
111 inline User& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
112 inline User& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
113 inline User& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
115
117
120 inline const License& GetLicenseType() const{ return m_licenseType; }
121 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
122 inline void SetLicenseType(const License& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
123 inline void SetLicenseType(License&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
124 inline User& WithLicenseType(const License& value) { SetLicenseType(value); return *this;}
125 inline User& WithLicenseType(License&& value) { SetLicenseType(std::move(value)); return *this;}
127
129
132 inline const UserType& GetUserType() const{ return m_userType; }
133 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
134 inline void SetUserType(const UserType& value) { m_userTypeHasBeenSet = true; m_userType = value; }
135 inline void SetUserType(UserType&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); }
136 inline User& WithUserType(const UserType& value) { SetUserType(value); return *this;}
137 inline User& WithUserType(UserType&& value) { SetUserType(std::move(value)); return *this;}
139
141
144 inline const RegistrationStatus& GetUserRegistrationStatus() const{ return m_userRegistrationStatus; }
145 inline bool UserRegistrationStatusHasBeenSet() const { return m_userRegistrationStatusHasBeenSet; }
146 inline void SetUserRegistrationStatus(const RegistrationStatus& value) { m_userRegistrationStatusHasBeenSet = true; m_userRegistrationStatus = value; }
147 inline void SetUserRegistrationStatus(RegistrationStatus&& value) { m_userRegistrationStatusHasBeenSet = true; m_userRegistrationStatus = std::move(value); }
149 inline User& WithUserRegistrationStatus(RegistrationStatus&& value) { SetUserRegistrationStatus(std::move(value)); return *this;}
151
153
156 inline const InviteStatus& GetUserInvitationStatus() const{ return m_userInvitationStatus; }
157 inline bool UserInvitationStatusHasBeenSet() const { return m_userInvitationStatusHasBeenSet; }
158 inline void SetUserInvitationStatus(const InviteStatus& value) { m_userInvitationStatusHasBeenSet = true; m_userInvitationStatus = value; }
159 inline void SetUserInvitationStatus(InviteStatus&& value) { m_userInvitationStatusHasBeenSet = true; m_userInvitationStatus = std::move(value); }
160 inline User& WithUserInvitationStatus(const InviteStatus& value) { SetUserInvitationStatus(value); return *this;}
161 inline User& WithUserInvitationStatus(InviteStatus&& value) { SetUserInvitationStatus(std::move(value)); return *this;}
163
165
168 inline const Aws::Utils::DateTime& GetRegisteredOn() const{ return m_registeredOn; }
169 inline bool RegisteredOnHasBeenSet() const { return m_registeredOnHasBeenSet; }
170 inline void SetRegisteredOn(const Aws::Utils::DateTime& value) { m_registeredOnHasBeenSet = true; m_registeredOn = value; }
171 inline void SetRegisteredOn(Aws::Utils::DateTime&& value) { m_registeredOnHasBeenSet = true; m_registeredOn = std::move(value); }
172 inline User& WithRegisteredOn(const Aws::Utils::DateTime& value) { SetRegisteredOn(value); return *this;}
173 inline User& WithRegisteredOn(Aws::Utils::DateTime&& value) { SetRegisteredOn(std::move(value)); return *this;}
175
177
181 inline const Aws::Utils::DateTime& GetInvitedOn() const{ return m_invitedOn; }
182 inline bool InvitedOnHasBeenSet() const { return m_invitedOnHasBeenSet; }
183 inline void SetInvitedOn(const Aws::Utils::DateTime& value) { m_invitedOnHasBeenSet = true; m_invitedOn = value; }
184 inline void SetInvitedOn(Aws::Utils::DateTime&& value) { m_invitedOnHasBeenSet = true; m_invitedOn = std::move(value); }
185 inline User& WithInvitedOn(const Aws::Utils::DateTime& value) { SetInvitedOn(value); return *this;}
186 inline User& WithInvitedOn(Aws::Utils::DateTime&& value) { SetInvitedOn(std::move(value)); return *this;}
188
190
193 inline const AlexaForBusinessMetadata& GetAlexaForBusinessMetadata() const{ return m_alexaForBusinessMetadata; }
194 inline bool AlexaForBusinessMetadataHasBeenSet() const { return m_alexaForBusinessMetadataHasBeenSet; }
195 inline void SetAlexaForBusinessMetadata(const AlexaForBusinessMetadata& value) { m_alexaForBusinessMetadataHasBeenSet = true; m_alexaForBusinessMetadata = value; }
196 inline void SetAlexaForBusinessMetadata(AlexaForBusinessMetadata&& value) { m_alexaForBusinessMetadataHasBeenSet = true; m_alexaForBusinessMetadata = std::move(value); }
200
202
205 inline const Aws::String& GetPersonalPIN() const{ return m_personalPIN; }
206 inline bool PersonalPINHasBeenSet() const { return m_personalPINHasBeenSet; }
207 inline void SetPersonalPIN(const Aws::String& value) { m_personalPINHasBeenSet = true; m_personalPIN = value; }
208 inline void SetPersonalPIN(Aws::String&& value) { m_personalPINHasBeenSet = true; m_personalPIN = std::move(value); }
209 inline void SetPersonalPIN(const char* value) { m_personalPINHasBeenSet = true; m_personalPIN.assign(value); }
210 inline User& WithPersonalPIN(const Aws::String& value) { SetPersonalPIN(value); return *this;}
211 inline User& WithPersonalPIN(Aws::String&& value) { SetPersonalPIN(std::move(value)); return *this;}
212 inline User& WithPersonalPIN(const char* value) { SetPersonalPIN(value); return *this;}
214 private:
215
216 Aws::String m_userId;
217 bool m_userIdHasBeenSet = false;
218
219 Aws::String m_accountId;
220 bool m_accountIdHasBeenSet = false;
221
222 Aws::String m_primaryEmail;
223 bool m_primaryEmailHasBeenSet = false;
224
225 Aws::String m_primaryProvisionedNumber;
226 bool m_primaryProvisionedNumberHasBeenSet = false;
227
228 Aws::String m_displayName;
229 bool m_displayNameHasBeenSet = false;
230
231 License m_licenseType;
232 bool m_licenseTypeHasBeenSet = false;
233
234 UserType m_userType;
235 bool m_userTypeHasBeenSet = false;
236
237 RegistrationStatus m_userRegistrationStatus;
238 bool m_userRegistrationStatusHasBeenSet = false;
239
240 InviteStatus m_userInvitationStatus;
241 bool m_userInvitationStatusHasBeenSet = false;
242
243 Aws::Utils::DateTime m_registeredOn;
244 bool m_registeredOnHasBeenSet = false;
245
246 Aws::Utils::DateTime m_invitedOn;
247 bool m_invitedOnHasBeenSet = false;
248
249 AlexaForBusinessMetadata m_alexaForBusinessMetadata;
250 bool m_alexaForBusinessMetadataHasBeenSet = false;
251
252 Aws::String m_personalPIN;
253 bool m_personalPINHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace Chime
258} // namespace Aws
User & WithUserId(const Aws::String &value)
Definition User.h:55
bool UserIdHasBeenSet() const
Definition User.h:51
void SetUserType(const UserType &value)
Definition User.h:134
User & WithInvitedOn(Aws::Utils::DateTime &&value)
Definition User.h:186
const Aws::String & GetPrimaryProvisionedNumber() const
Definition User.h:92
User & WithPrimaryProvisionedNumber(const Aws::String &value)
Definition User.h:97
void SetDisplayName(const Aws::String &value)
Definition User.h:108
User & WithUserId(Aws::String &&value)
Definition User.h:56
User & WithAccountId(const char *value)
Definition User.h:71
void SetUserId(const Aws::String &value)
Definition User.h:52
bool PrimaryProvisionedNumberHasBeenSet() const
Definition User.h:93
User & WithAlexaForBusinessMetadata(const AlexaForBusinessMetadata &value)
Definition User.h:197
void SetRegisteredOn(const Aws::Utils::DateTime &value)
Definition User.h:170
void SetInvitedOn(const Aws::Utils::DateTime &value)
Definition User.h:183
User & WithUserType(UserType &&value)
Definition User.h:137
const Aws::String & GetAccountId() const
Definition User.h:64
bool UserInvitationStatusHasBeenSet() const
Definition User.h:157
bool UserTypeHasBeenSet() const
Definition User.h:133
User & WithPrimaryEmail(const char *value)
Definition User.h:85
User & WithLicenseType(License &&value)
Definition User.h:125
const RegistrationStatus & GetUserRegistrationStatus() const
Definition User.h:144
void SetPrimaryProvisionedNumber(Aws::String &&value)
Definition User.h:95
const Aws::String & GetUserId() const
Definition User.h:50
AWS_CHIME_API User(Aws::Utils::Json::JsonView jsonValue)
bool DisplayNameHasBeenSet() const
Definition User.h:107
bool AlexaForBusinessMetadataHasBeenSet() const
Definition User.h:194
User & WithPersonalPIN(Aws::String &&value)
Definition User.h:211
bool PrimaryEmailHasBeenSet() const
Definition User.h:79
const Aws::Utils::DateTime & GetInvitedOn() const
Definition User.h:181
User & WithUserRegistrationStatus(const RegistrationStatus &value)
Definition User.h:148
void SetLicenseType(const License &value)
Definition User.h:122
void SetAlexaForBusinessMetadata(AlexaForBusinessMetadata &&value)
Definition User.h:196
User & WithAlexaForBusinessMetadata(AlexaForBusinessMetadata &&value)
Definition User.h:198
const InviteStatus & GetUserInvitationStatus() const
Definition User.h:156
bool AccountIdHasBeenSet() const
Definition User.h:65
User & WithUserRegistrationStatus(RegistrationStatus &&value)
Definition User.h:149
bool InvitedOnHasBeenSet() const
Definition User.h:182
void SetAccountId(const char *value)
Definition User.h:68
User & WithAccountId(Aws::String &&value)
Definition User.h:70
void SetUserType(UserType &&value)
Definition User.h:135
AWS_CHIME_API User()
void SetPersonalPIN(const char *value)
Definition User.h:209
const Aws::String & GetDisplayName() const
Definition User.h:106
const Aws::String & GetPrimaryEmail() const
Definition User.h:78
void SetPrimaryProvisionedNumber(const char *value)
Definition User.h:96
void SetAccountId(Aws::String &&value)
Definition User.h:67
User & WithPersonalPIN(const Aws::String &value)
Definition User.h:210
User & WithUserInvitationStatus(InviteStatus &&value)
Definition User.h:161
bool PersonalPINHasBeenSet() const
Definition User.h:206
User & WithDisplayName(const char *value)
Definition User.h:113
void SetDisplayName(Aws::String &&value)
Definition User.h:109
User & WithPrimaryProvisionedNumber(Aws::String &&value)
Definition User.h:98
bool LicenseTypeHasBeenSet() const
Definition User.h:121
const Aws::String & GetPersonalPIN() const
Definition User.h:205
User & WithUserInvitationStatus(const InviteStatus &value)
Definition User.h:160
User & WithPrimaryEmail(Aws::String &&value)
Definition User.h:84
User & WithPersonalPIN(const char *value)
Definition User.h:212
User & WithUserId(const char *value)
Definition User.h:57
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUserId(Aws::String &&value)
Definition User.h:53
void SetPersonalPIN(const Aws::String &value)
Definition User.h:207
void SetDisplayName(const char *value)
Definition User.h:110
const Aws::Utils::DateTime & GetRegisteredOn() const
Definition User.h:168
void SetPrimaryEmail(Aws::String &&value)
Definition User.h:81
void SetAlexaForBusinessMetadata(const AlexaForBusinessMetadata &value)
Definition User.h:195
bool UserRegistrationStatusHasBeenSet() const
Definition User.h:145
void SetUserRegistrationStatus(RegistrationStatus &&value)
Definition User.h:147
void SetUserInvitationStatus(InviteStatus &&value)
Definition User.h:159
const License & GetLicenseType() const
Definition User.h:120
void SetPrimaryEmail(const char *value)
Definition User.h:82
User & WithInvitedOn(const Aws::Utils::DateTime &value)
Definition User.h:185
void SetLicenseType(License &&value)
Definition User.h:123
AWS_CHIME_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegisteredOn(Aws::Utils::DateTime &&value)
Definition User.h:171
void SetUserRegistrationStatus(const RegistrationStatus &value)
Definition User.h:146
const UserType & GetUserType() const
Definition User.h:132
User & WithLicenseType(const License &value)
Definition User.h:124
void SetAccountId(const Aws::String &value)
Definition User.h:66
User & WithRegisteredOn(const Aws::Utils::DateTime &value)
Definition User.h:172
User & WithPrimaryEmail(const Aws::String &value)
Definition User.h:83
void SetPrimaryEmail(const Aws::String &value)
Definition User.h:80
bool RegisteredOnHasBeenSet() const
Definition User.h:169
User & WithDisplayName(Aws::String &&value)
Definition User.h:112
void SetPrimaryProvisionedNumber(const Aws::String &value)
Definition User.h:94
User & WithPrimaryProvisionedNumber(const char *value)
Definition User.h:99
void SetInvitedOn(Aws::Utils::DateTime &&value)
Definition User.h:184
User & WithUserType(const UserType &value)
Definition User.h:136
User & WithDisplayName(const Aws::String &value)
Definition User.h:111
User & WithRegisteredOn(Aws::Utils::DateTime &&value)
Definition User.h:173
void SetUserId(const char *value)
Definition User.h:54
const AlexaForBusinessMetadata & GetAlexaForBusinessMetadata() const
Definition User.h:193
void SetUserInvitationStatus(const InviteStatus &value)
Definition User.h:158
User & WithAccountId(const Aws::String &value)
Definition User.h:69
void SetPersonalPIN(Aws::String &&value)
Definition User.h:208
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue