AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename OrganizationIdT = Aws::String>
45 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
46 template<typename OrganizationIdT = Aws::String>
47 CreateUserRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
49
51
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreateUserRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDisplayName() const { return m_displayName; }
68 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
69 template<typename DisplayNameT = Aws::String>
70 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
71 template<typename DisplayNameT = Aws::String>
72 CreateUserRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetPassword() const { return m_password; }
80 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
81 template<typename PasswordT = Aws::String>
82 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
83 template<typename PasswordT = Aws::String>
84 CreateUserRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
86
88
93 inline UserRole GetRole() const { return m_role; }
94 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
95 inline void SetRole(UserRole value) { m_roleHasBeenSet = true; m_role = value; }
96 inline CreateUserRequest& WithRole(UserRole value) { SetRole(value); return *this;}
98
100
103 inline const Aws::String& GetFirstName() const { return m_firstName; }
104 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
105 template<typename FirstNameT = Aws::String>
106 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
107 template<typename FirstNameT = Aws::String>
108 CreateUserRequest& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
110
112
115 inline const Aws::String& GetLastName() const { return m_lastName; }
116 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
117 template<typename LastNameT = Aws::String>
118 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
119 template<typename LastNameT = Aws::String>
120 CreateUserRequest& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
122
124
128 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
129 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
130 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
133
135
140 inline const Aws::String& GetIdentityProviderUserId() const { return m_identityProviderUserId; }
141 inline bool IdentityProviderUserIdHasBeenSet() const { return m_identityProviderUserIdHasBeenSet; }
142 template<typename IdentityProviderUserIdT = Aws::String>
143 void SetIdentityProviderUserId(IdentityProviderUserIdT&& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = std::forward<IdentityProviderUserIdT>(value); }
144 template<typename IdentityProviderUserIdT = Aws::String>
145 CreateUserRequest& WithIdentityProviderUserId(IdentityProviderUserIdT&& value) { SetIdentityProviderUserId(std::forward<IdentityProviderUserIdT>(value)); return *this;}
147 private:
148
149 Aws::String m_organizationId;
150 bool m_organizationIdHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_displayName;
156 bool m_displayNameHasBeenSet = false;
157
158 Aws::String m_password;
159 bool m_passwordHasBeenSet = false;
160
162 bool m_roleHasBeenSet = false;
163
164 Aws::String m_firstName;
165 bool m_firstNameHasBeenSet = false;
166
167 Aws::String m_lastName;
168 bool m_lastNameHasBeenSet = false;
169
170 bool m_hiddenFromGlobalAddressList{false};
171 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
172
173 Aws::String m_identityProviderUserId;
174 bool m_identityProviderUserIdHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace WorkMail
179} // 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