AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workmail/model/UserRole.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkMail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKMAIL_API CreateUserRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
32
33 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
43 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
44 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
45 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
46 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
47 inline CreateUserRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
48 inline CreateUserRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
49 inline CreateUserRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
51
53
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline CreateUserRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline CreateUserRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline CreateUserRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
72 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
73 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
74 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
75 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
76 inline CreateUserRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
77 inline CreateUserRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
78 inline CreateUserRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
80
82
85 inline const Aws::String& GetPassword() const{ return m_password; }
86 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
87 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
88 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
89 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
90 inline CreateUserRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
91 inline CreateUserRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
92 inline CreateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
94
96
101 inline const UserRole& GetRole() const{ return m_role; }
102 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
103 inline void SetRole(const UserRole& value) { m_roleHasBeenSet = true; m_role = value; }
104 inline void SetRole(UserRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
105 inline CreateUserRequest& WithRole(const UserRole& value) { SetRole(value); return *this;}
106 inline CreateUserRequest& WithRole(UserRole&& value) { SetRole(std::move(value)); return *this;}
108
110
113 inline const Aws::String& GetFirstName() const{ return m_firstName; }
114 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
115 inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
116 inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
117 inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
118 inline CreateUserRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
119 inline CreateUserRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
120 inline CreateUserRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;}
122
124
127 inline const Aws::String& GetLastName() const{ return m_lastName; }
128 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
129 inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
130 inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
131 inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
132 inline CreateUserRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
133 inline CreateUserRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
134 inline CreateUserRequest& WithLastName(const char* value) { SetLastName(value); return *this;}
136
138
142 inline bool GetHiddenFromGlobalAddressList() const{ return m_hiddenFromGlobalAddressList; }
143 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
144 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
147
149
154 inline const Aws::String& GetIdentityProviderUserId() const{ return m_identityProviderUserId; }
155 inline bool IdentityProviderUserIdHasBeenSet() const { return m_identityProviderUserIdHasBeenSet; }
156 inline void SetIdentityProviderUserId(const Aws::String& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = value; }
157 inline void SetIdentityProviderUserId(Aws::String&& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = std::move(value); }
158 inline void SetIdentityProviderUserId(const char* value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId.assign(value); }
160 inline CreateUserRequest& WithIdentityProviderUserId(Aws::String&& value) { SetIdentityProviderUserId(std::move(value)); return *this;}
161 inline CreateUserRequest& WithIdentityProviderUserId(const char* value) { SetIdentityProviderUserId(value); return *this;}
163 private:
164
165 Aws::String m_organizationId;
166 bool m_organizationIdHasBeenSet = false;
167
168 Aws::String m_name;
169 bool m_nameHasBeenSet = false;
170
171 Aws::String m_displayName;
172 bool m_displayNameHasBeenSet = false;
173
174 Aws::String m_password;
175 bool m_passwordHasBeenSet = false;
176
177 UserRole m_role;
178 bool m_roleHasBeenSet = false;
179
180 Aws::String m_firstName;
181 bool m_firstNameHasBeenSet = false;
182
183 Aws::String m_lastName;
184 bool m_lastNameHasBeenSet = false;
185
186 bool m_hiddenFromGlobalAddressList;
187 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
188
189 Aws::String m_identityProviderUserId;
190 bool m_identityProviderUserIdHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace WorkMail
195} // namespace Aws
const Aws::String & GetFirstName() const
CreateUserRequest & WithDisplayName(Aws::String &&value)
CreateUserRequest & WithDisplayName(const Aws::String &value)
CreateUserRequest & WithOrganizationId(const char *value)
const Aws::String & GetDisplayName() const
void SetIdentityProviderUserId(const char *value)
CreateUserRequest & WithPassword(const char *value)
void SetLastName(const Aws::String &value)
void SetOrganizationId(Aws::String &&value)
CreateUserRequest & WithHiddenFromGlobalAddressList(bool value)
const Aws::String & GetPassword() const
CreateUserRequest & WithName(Aws::String &&value)
CreateUserRequest & WithRole(const UserRole &value)
CreateUserRequest & WithFirstName(const char *value)
CreateUserRequest & WithFirstName(const Aws::String &value)
const Aws::String & GetOrganizationId() const
void SetPassword(const Aws::String &value)
CreateUserRequest & WithRole(UserRole &&value)
const Aws::String & GetLastName() const
CreateUserRequest & WithLastName(Aws::String &&value)
CreateUserRequest & WithOrganizationId(Aws::String &&value)
CreateUserRequest & WithPassword(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetIdentityProviderUserId() const
void SetDisplayName(const Aws::String &value)
CreateUserRequest & WithDisplayName(const char *value)
CreateUserRequest & WithLastName(const Aws::String &value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
void SetName(const Aws::String &value)
CreateUserRequest & WithIdentityProviderUserId(const char *value)
CreateUserRequest & WithIdentityProviderUserId(Aws::String &&value)
CreateUserRequest & WithOrganizationId(const Aws::String &value)
CreateUserRequest & WithFirstName(Aws::String &&value)
void SetOrganizationId(const Aws::String &value)
CreateUserRequest & WithName(const char *value)
void SetIdentityProviderUserId(Aws::String &&value)
CreateUserRequest & WithName(const Aws::String &value)
CreateUserRequest & WithLastName(const char *value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetIdentityProviderUserId(const Aws::String &value)
void SetFirstName(const Aws::String &value)
CreateUserRequest & WithPassword(const Aws::String &value)
CreateUserRequest & WithIdentityProviderUserId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String