AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/UserRole.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkMail {
16namespace Model {
17
21 public:
22 AWS_WORKMAIL_API CreateUserRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
29
30 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
39 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
40 template <typename OrganizationIdT = Aws::String>
41 void SetOrganizationId(OrganizationIdT&& value) {
42 m_organizationIdHasBeenSet = true;
43 m_organizationId = std::forward<OrganizationIdT>(value);
44 }
45 template <typename OrganizationIdT = Aws::String>
46 CreateUserRequest& WithOrganizationId(OrganizationIdT&& value) {
47 SetOrganizationId(std::forward<OrganizationIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 CreateUserRequest& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDisplayName() const { return m_displayName; }
76 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
77 template <typename DisplayNameT = Aws::String>
78 void SetDisplayName(DisplayNameT&& value) {
79 m_displayNameHasBeenSet = true;
80 m_displayName = std::forward<DisplayNameT>(value);
81 }
82 template <typename DisplayNameT = Aws::String>
83 CreateUserRequest& WithDisplayName(DisplayNameT&& value) {
84 SetDisplayName(std::forward<DisplayNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetPassword() const { return m_password; }
94 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
95 template <typename PasswordT = Aws::String>
96 void SetPassword(PasswordT&& value) {
97 m_passwordHasBeenSet = true;
98 m_password = std::forward<PasswordT>(value);
99 }
100 template <typename PasswordT = Aws::String>
101 CreateUserRequest& WithPassword(PasswordT&& value) {
102 SetPassword(std::forward<PasswordT>(value));
103 return *this;
104 }
106
108
113 inline UserRole GetRole() const { return m_role; }
114 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
115 inline void SetRole(UserRole value) {
116 m_roleHasBeenSet = true;
117 m_role = value;
118 }
120 SetRole(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetFirstName() const { return m_firstName; }
130 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
131 template <typename FirstNameT = Aws::String>
132 void SetFirstName(FirstNameT&& value) {
133 m_firstNameHasBeenSet = true;
134 m_firstName = std::forward<FirstNameT>(value);
135 }
136 template <typename FirstNameT = Aws::String>
137 CreateUserRequest& WithFirstName(FirstNameT&& value) {
138 SetFirstName(std::forward<FirstNameT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetLastName() const { return m_lastName; }
148 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
149 template <typename LastNameT = Aws::String>
150 void SetLastName(LastNameT&& value) {
151 m_lastNameHasBeenSet = true;
152 m_lastName = std::forward<LastNameT>(value);
153 }
154 template <typename LastNameT = Aws::String>
155 CreateUserRequest& WithLastName(LastNameT&& value) {
156 SetLastName(std::forward<LastNameT>(value));
157 return *this;
158 }
160
162
166 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
167 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
168 inline void SetHiddenFromGlobalAddressList(bool value) {
169 m_hiddenFromGlobalAddressListHasBeenSet = true;
170 m_hiddenFromGlobalAddressList = value;
171 }
174 return *this;
175 }
177
179
184 inline const Aws::String& GetIdentityProviderUserId() const { return m_identityProviderUserId; }
185 inline bool IdentityProviderUserIdHasBeenSet() const { return m_identityProviderUserIdHasBeenSet; }
186 template <typename IdentityProviderUserIdT = Aws::String>
187 void SetIdentityProviderUserId(IdentityProviderUserIdT&& value) {
188 m_identityProviderUserIdHasBeenSet = true;
189 m_identityProviderUserId = std::forward<IdentityProviderUserIdT>(value);
190 }
191 template <typename IdentityProviderUserIdT = Aws::String>
192 CreateUserRequest& WithIdentityProviderUserId(IdentityProviderUserIdT&& value) {
193 SetIdentityProviderUserId(std::forward<IdentityProviderUserIdT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_organizationId;
199
200 Aws::String m_name;
201
202 Aws::String m_displayName;
203
204 Aws::String m_password;
205
207
208 Aws::String m_firstName;
209
210 Aws::String m_lastName;
211
212 bool m_hiddenFromGlobalAddressList{false};
213
214 Aws::String m_identityProviderUserId;
215 bool m_organizationIdHasBeenSet = false;
216 bool m_nameHasBeenSet = false;
217 bool m_displayNameHasBeenSet = false;
218 bool m_passwordHasBeenSet = false;
219 bool m_roleHasBeenSet = false;
220 bool m_firstNameHasBeenSet = false;
221 bool m_lastNameHasBeenSet = false;
222 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
223 bool m_identityProviderUserIdHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace WorkMail
228} // namespace Aws
const Aws::String & GetFirstName() const
CreateUserRequest & WithRole(UserRole value)
const Aws::String & GetDisplayName() const
CreateUserRequest & WithHiddenFromGlobalAddressList(bool value)
const Aws::String & GetPassword() const
void SetIdentityProviderUserId(IdentityProviderUserIdT &&value)
const Aws::String & GetOrganizationId() const
void SetDisplayName(DisplayNameT &&value)
CreateUserRequest & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetLastName() const
CreateUserRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateUserRequest & WithLastName(LastNameT &&value)
const Aws::String & GetIdentityProviderUserId() const
void SetOrganizationId(OrganizationIdT &&value)
CreateUserRequest & WithFirstName(FirstNameT &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
CreateUserRequest & WithIdentityProviderUserId(IdentityProviderUserIdT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserRequest & WithOrganizationId(OrganizationIdT &&value)
AWS_WORKMAIL_API CreateUserRequest()=default
CreateUserRequest & WithPassword(PasswordT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String