AWS SDK for C++  1.9.40
AWS SDK for C++
CreateUserRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/mq/MQ_EXPORTS.h>
8 #include <aws/mq/MQRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MQ
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetBrokerId() const{ return m_brokerId; }
43 
47  inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
48 
52  inline void SetBrokerId(const Aws::String& value) { m_brokerIdHasBeenSet = true; m_brokerId = value; }
53 
57  inline void SetBrokerId(Aws::String&& value) { m_brokerIdHasBeenSet = true; m_brokerId = std::move(value); }
58 
62  inline void SetBrokerId(const char* value) { m_brokerIdHasBeenSet = true; m_brokerId.assign(value); }
63 
67  inline CreateUserRequest& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;}
68 
72  inline CreateUserRequest& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;}
73 
77  inline CreateUserRequest& WithBrokerId(const char* value) { SetBrokerId(value); return *this;}
78 
79 
83  inline bool GetConsoleAccess() const{ return m_consoleAccess; }
84 
88  inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; }
89 
93  inline void SetConsoleAccess(bool value) { m_consoleAccessHasBeenSet = true; m_consoleAccess = value; }
94 
98  inline CreateUserRequest& WithConsoleAccess(bool value) { SetConsoleAccess(value); return *this;}
99 
100 
106  inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
107 
113  inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
114 
120  inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
121 
127  inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
128 
134  inline CreateUserRequest& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
135 
141  inline CreateUserRequest& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
142 
148  inline CreateUserRequest& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
149 
155  inline CreateUserRequest& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
156 
162  inline CreateUserRequest& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
163 
164 
169  inline const Aws::String& GetPassword() const{ return m_password; }
170 
175  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
176 
181  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
182 
187  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
188 
193  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
194 
199  inline CreateUserRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
200 
205  inline CreateUserRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
206 
211  inline CreateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
212 
213 
219  inline const Aws::String& GetUsername() const{ return m_username; }
220 
226  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
227 
233  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
234 
240  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
241 
247  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
248 
254  inline CreateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
255 
261  inline CreateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
262 
268  inline CreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
269 
270  private:
271 
272  Aws::String m_brokerId;
273  bool m_brokerIdHasBeenSet;
274 
275  bool m_consoleAccess;
276  bool m_consoleAccessHasBeenSet;
277 
278  Aws::Vector<Aws::String> m_groups;
279  bool m_groupsHasBeenSet;
280 
281  Aws::String m_password;
282  bool m_passwordHasBeenSet;
283 
284  Aws::String m_username;
285  bool m_usernameHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace MQ
290 } // namespace Aws
Aws::MQ::Model::CreateUserRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: CreateUserRequest.h:181
Aws::MQ::Model::CreateUserRequest::GetBrokerId
const Aws::String & GetBrokerId() const
Definition: CreateUserRequest.h:42
Aws::MQ::Model::CreateUserRequest::BrokerIdHasBeenSet
bool BrokerIdHasBeenSet() const
Definition: CreateUserRequest.h:47
AWS_MQ_API
#define AWS_MQ_API
Definition: MQ_EXPORTS.h:28
Aws::MQ::Model::CreateUserRequest::WithBrokerId
CreateUserRequest & WithBrokerId(Aws::String &&value)
Definition: CreateUserRequest.h:72
Aws::MQ::Model::CreateUserRequest::WithGroups
CreateUserRequest & WithGroups(Aws::Vector< Aws::String > &&value)
Definition: CreateUserRequest.h:141
Aws::MQ::Model::CreateUserRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: CreateUserRequest.h:175
Aws::MQ::Model::CreateUserRequest::SetBrokerId
void SetBrokerId(Aws::String &&value)
Definition: CreateUserRequest.h:57
MQ_EXPORTS.h
Aws::MQ::Model::CreateUserRequest::SetUsername
void SetUsername(const char *value)
Definition: CreateUserRequest.h:247
Aws::MQ::Model::CreateUserRequest::SetConsoleAccess
void SetConsoleAccess(bool value)
Definition: CreateUserRequest.h:93
Aws::MQ::Model::CreateUserRequest::SetGroups
void SetGroups(Aws::Vector< Aws::String > &&value)
Definition: CreateUserRequest.h:127
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MQ::Model::CreateUserRequest::WithBrokerId
CreateUserRequest & WithBrokerId(const char *value)
Definition: CreateUserRequest.h:77
Aws::MQ::Model::CreateUserRequest::SetBrokerId
void SetBrokerId(const char *value)
Definition: CreateUserRequest.h:62
Aws::MQ::Model::CreateUserRequest::SetPassword
void SetPassword(const char *value)
Definition: CreateUserRequest.h:193
Aws::MQ::Model::CreateUserRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: CreateUserRequest.h:187
AWSVector.h
Aws::MQ::Model::CreateUserRequest::SetUsername
void SetUsername(Aws::String &&value)
Definition: CreateUserRequest.h:240
Aws::MQ::Model::CreateUserRequest::GetConsoleAccess
bool GetConsoleAccess() const
Definition: CreateUserRequest.h:83
Aws::MQ::Model::CreateUserRequest::AddGroups
CreateUserRequest & AddGroups(const Aws::String &value)
Definition: CreateUserRequest.h:148
Aws::MQ::Model::CreateUserRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateUserRequest.h:34
Aws::MQ::Model::CreateUserRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::MQ::Model::CreateUserRequest::AddGroups
CreateUserRequest & AddGroups(const char *value)
Definition: CreateUserRequest.h:162
Aws::MQ::Model::CreateUserRequest::GroupsHasBeenSet
bool GroupsHasBeenSet() const
Definition: CreateUserRequest.h:113
Aws::MQ::Model::CreateUserRequest
Definition: CreateUserRequest.h:26
Aws::MQ::Model::CreateUserRequest::WithBrokerId
CreateUserRequest & WithBrokerId(const Aws::String &value)
Definition: CreateUserRequest.h:67
Aws::MQ::Model::CreateUserRequest::WithUsername
CreateUserRequest & WithUsername(const char *value)
Definition: CreateUserRequest.h:268
MQRequest.h
Aws::MQ::Model::CreateUserRequest::WithPassword
CreateUserRequest & WithPassword(Aws::String &&value)
Definition: CreateUserRequest.h:205
Aws::MQ::Model::CreateUserRequest::WithUsername
CreateUserRequest & WithUsername(Aws::String &&value)
Definition: CreateUserRequest.h:261
Aws::MQ::Model::CreateUserRequest::AddGroups
CreateUserRequest & AddGroups(Aws::String &&value)
Definition: CreateUserRequest.h:155
Aws::MQ::Model::CreateUserRequest::WithUsername
CreateUserRequest & WithUsername(const Aws::String &value)
Definition: CreateUserRequest.h:254
Aws
Definition: AccessManagementClient.h:15
Aws::MQ::Model::CreateUserRequest::GetPassword
const Aws::String & GetPassword() const
Definition: CreateUserRequest.h:169
Aws::MQ::Model::CreateUserRequest::CreateUserRequest
CreateUserRequest()
Aws::MQ::MQRequest
Definition: MQRequest.h:17
Aws::MQ::Model::CreateUserRequest::GetGroups
const Aws::Vector< Aws::String > & GetGroups() const
Definition: CreateUserRequest.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MQ::Model::CreateUserRequest::SetBrokerId
void SetBrokerId(const Aws::String &value)
Definition: CreateUserRequest.h:52
Aws::MQ::Model::CreateUserRequest::ConsoleAccessHasBeenSet
bool ConsoleAccessHasBeenSet() const
Definition: CreateUserRequest.h:88
Aws::MQ::Model::CreateUserRequest::SetGroups
void SetGroups(const Aws::Vector< Aws::String > &value)
Definition: CreateUserRequest.h:120
Aws::MQ::Model::CreateUserRequest::WithConsoleAccess
CreateUserRequest & WithConsoleAccess(bool value)
Definition: CreateUserRequest.h:98
Aws::MQ::Model::CreateUserRequest::WithPassword
CreateUserRequest & WithPassword(const Aws::String &value)
Definition: CreateUserRequest.h:199
Aws::MQ::Model::CreateUserRequest::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: CreateUserRequest.h:226
Aws::MQ::Model::CreateUserRequest::SetUsername
void SetUsername(const Aws::String &value)
Definition: CreateUserRequest.h:233
Aws::MQ::Model::CreateUserRequest::WithPassword
CreateUserRequest & WithPassword(const char *value)
Definition: CreateUserRequest.h:211
Aws::MQ::Model::CreateUserRequest::WithGroups
CreateUserRequest & WithGroups(const Aws::Vector< Aws::String > &value)
Definition: CreateUserRequest.h:134
Aws::MQ::Model::CreateUserRequest::GetUsername
const Aws::String & GetUsername() const
Definition: CreateUserRequest.h:219