AWS SDK for C++  1.9.104
AWS SDK for C++
CreateUserRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkMail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
41 
45  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 
50  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
51 
55  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
56 
60  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
61 
65  inline CreateUserRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
66 
70  inline CreateUserRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
71 
75  inline CreateUserRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
76 
77 
82  inline const Aws::String& GetName() const{ return m_name; }
83 
88  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 
94  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 
100  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
112  inline CreateUserRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
118  inline CreateUserRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
119 
124  inline CreateUserRequest& WithName(const char* value) { SetName(value); return *this;}
125 
126 
130  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
131 
135  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
136 
140  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
141 
145  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
146 
150  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
151 
155  inline CreateUserRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
156 
160  inline CreateUserRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
161 
165  inline CreateUserRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
166 
167 
171  inline const Aws::String& GetPassword() const{ return m_password; }
172 
176  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
177 
181  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
182 
186  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
187 
191  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
192 
196  inline CreateUserRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
197 
201  inline CreateUserRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
202 
206  inline CreateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
207 
208  private:
209 
210  Aws::String m_organizationId;
211  bool m_organizationIdHasBeenSet;
212 
213  Aws::String m_name;
214  bool m_nameHasBeenSet;
215 
216  Aws::String m_displayName;
217  bool m_displayNameHasBeenSet;
218 
219  Aws::String m_password;
220  bool m_passwordHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace WorkMail
225 } // namespace Aws
Aws::WorkMail::Model::CreateUserRequest::SetDisplayName
void SetDisplayName(const char *value)
Definition: CreateUserRequest.h:150
Aws::WorkMail::Model::CreateUserRequest::WithPassword
CreateUserRequest & WithPassword(Aws::String &&value)
Definition: CreateUserRequest.h:201
Aws::WorkMail::Model::CreateUserRequest::WithPassword
CreateUserRequest & WithPassword(const Aws::String &value)
Definition: CreateUserRequest.h:196
Aws::WorkMail::Model::CreateUserRequest::SetPassword
void SetPassword(const char *value)
Definition: CreateUserRequest.h:191
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::CreateUserRequest::WithOrganizationId
CreateUserRequest & WithOrganizationId(Aws::String &&value)
Definition: CreateUserRequest.h:70
WorkMail_EXPORTS.h
WorkMailRequest.h
Aws::WorkMail::Model::CreateUserRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateUserRequest.h:94
Aws::WorkMail::Model::CreateUserRequest::GetName
const Aws::String & GetName() const
Definition: CreateUserRequest.h:82
Aws::WorkMail::Model::CreateUserRequest::WithDisplayName
CreateUserRequest & WithDisplayName(const char *value)
Definition: CreateUserRequest.h:165
Aws::WorkMail::Model::CreateUserRequest::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: CreateUserRequest.h:130
Aws::WorkMail::Model::CreateUserRequest::CreateUserRequest
CreateUserRequest()
Aws::WorkMail::Model::CreateUserRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: CreateUserRequest.h:45
Aws::WorkMail::Model::CreateUserRequest::WithOrganizationId
CreateUserRequest & WithOrganizationId(const Aws::String &value)
Definition: CreateUserRequest.h:65
Aws::WorkMail::Model::CreateUserRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: CreateUserRequest.h:40
Aws::WorkMail::Model::CreateUserRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::CreateUserRequest::WithPassword
CreateUserRequest & WithPassword(const char *value)
Definition: CreateUserRequest.h:206
Aws::WorkMail::Model::CreateUserRequest::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: CreateUserRequest.h:140
Aws::WorkMail::Model::CreateUserRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: CreateUserRequest.h:50
Aws::WorkMail::Model::CreateUserRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: CreateUserRequest.h:55
AWSString.h
Aws::WorkMail::Model::CreateUserRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: CreateUserRequest.h:176
Aws::WorkMail::Model::CreateUserRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: CreateUserRequest.h:186
Aws::WorkMail::Model::CreateUserRequest
Definition: CreateUserRequest.h:22
Aws::WorkMail::Model::CreateUserRequest::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: CreateUserRequest.h:145
Aws::WorkMail::Model::CreateUserRequest::WithName
CreateUserRequest & WithName(const Aws::String &value)
Definition: CreateUserRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::CreateUserRequest::WithOrganizationId
CreateUserRequest & WithOrganizationId(const char *value)
Definition: CreateUserRequest.h:75
Aws::WorkMail::Model::CreateUserRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateUserRequest.h:30
Aws::WorkMail::Model::CreateUserRequest::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: CreateUserRequest.h:135
Aws::WorkMail::Model::CreateUserRequest::WithDisplayName
CreateUserRequest & WithDisplayName(Aws::String &&value)
Definition: CreateUserRequest.h:160
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::CreateUserRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::CreateUserRequest::WithName
CreateUserRequest & WithName(const char *value)
Definition: CreateUserRequest.h:124
Aws::WorkMail::Model::CreateUserRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateUserRequest.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::CreateUserRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: CreateUserRequest.h:181
Aws::WorkMail::Model::CreateUserRequest::WithName
CreateUserRequest & WithName(Aws::String &&value)
Definition: CreateUserRequest.h:118
Aws::WorkMail::Model::CreateUserRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: CreateUserRequest.h:60
Aws::WorkMail::Model::CreateUserRequest::GetPassword
const Aws::String & GetPassword() const
Definition: CreateUserRequest.h:171
Aws::WorkMail::Model::CreateUserRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateUserRequest.h:100
Aws::WorkMail::Model::CreateUserRequest::WithDisplayName
CreateUserRequest & WithDisplayName(const Aws::String &value)
Definition: CreateUserRequest.h:155
Aws::WorkMail::Model::CreateUserRequest::SetName
void SetName(const char *value)
Definition: CreateUserRequest.h:106