AWS SDK for C++  1.9.108
AWS SDK for C++
UpdateUserRequest.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 "UpdateUser"; }
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 UpdateUserRequest& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;}
68 
72  inline UpdateUserRequest& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;}
73 
77  inline UpdateUserRequest& 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 UpdateUserRequest& 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 UpdateUserRequest& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
135 
141  inline UpdateUserRequest& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
142 
148  inline UpdateUserRequest& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
149 
155  inline UpdateUserRequest& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
156 
162  inline UpdateUserRequest& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
163 
164 
170  inline const Aws::String& GetPassword() const{ return m_password; }
171 
177  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
178 
184  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
185 
191  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
192 
198  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
199 
205  inline UpdateUserRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
206 
212  inline UpdateUserRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
213 
219  inline UpdateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
220 
221 
227  inline const Aws::String& GetUsername() const{ return m_username; }
228 
234  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
235 
241  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
242 
248  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
249 
255  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
256 
262  inline UpdateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
263 
269  inline UpdateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
270 
276  inline UpdateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
277 
278  private:
279 
280  Aws::String m_brokerId;
281  bool m_brokerIdHasBeenSet;
282 
283  bool m_consoleAccess;
284  bool m_consoleAccessHasBeenSet;
285 
286  Aws::Vector<Aws::String> m_groups;
287  bool m_groupsHasBeenSet;
288 
289  Aws::String m_password;
290  bool m_passwordHasBeenSet;
291 
292  Aws::String m_username;
293  bool m_usernameHasBeenSet;
294  };
295 
296 } // namespace Model
297 } // namespace MQ
298 } // namespace Aws
AWS_MQ_API
#define AWS_MQ_API
Definition: MQ_EXPORTS.h:28
Aws::MQ::Model::UpdateUserRequest::WithUsername
UpdateUserRequest & WithUsername(Aws::String &&value)
Definition: UpdateUserRequest.h:269
Aws::MQ::Model::UpdateUserRequest::WithConsoleAccess
UpdateUserRequest & WithConsoleAccess(bool value)
Definition: UpdateUserRequest.h:98
Aws::MQ::Model::UpdateUserRequest::SetBrokerId
void SetBrokerId(const char *value)
Definition: UpdateUserRequest.h:62
Aws::MQ::Model::UpdateUserRequest::SetUsername
void SetUsername(const Aws::String &value)
Definition: UpdateUserRequest.h:241
Aws::MQ::Model::UpdateUserRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: UpdateUserRequest.h:177
Aws::MQ::Model::UpdateUserRequest::WithPassword
UpdateUserRequest & WithPassword(Aws::String &&value)
Definition: UpdateUserRequest.h:212
MQ_EXPORTS.h
Aws::MQ::Model::UpdateUserRequest::WithBrokerId
UpdateUserRequest & WithBrokerId(Aws::String &&value)
Definition: UpdateUserRequest.h:72
Aws::MQ::Model::UpdateUserRequest::WithPassword
UpdateUserRequest & WithPassword(const Aws::String &value)
Definition: UpdateUserRequest.h:205
Aws::MQ::Model::UpdateUserRequest::SetUsername
void SetUsername(Aws::String &&value)
Definition: UpdateUserRequest.h:248
Aws::MQ::Model::UpdateUserRequest::GetPassword
const Aws::String & GetPassword() const
Definition: UpdateUserRequest.h:170
Aws::MQ::Model::UpdateUserRequest::AddGroups
UpdateUserRequest & AddGroups(Aws::String &&value)
Definition: UpdateUserRequest.h:155
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MQ::Model::UpdateUserRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateUserRequest.h:34
Aws::MQ::Model::UpdateUserRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: UpdateUserRequest.h:191
Aws::MQ::Model::UpdateUserRequest::AddGroups
UpdateUserRequest & AddGroups(const char *value)
Definition: UpdateUserRequest.h:162
AWSVector.h
Aws::MQ::Model::UpdateUserRequest::SetGroups
void SetGroups(const Aws::Vector< Aws::String > &value)
Definition: UpdateUserRequest.h:120
Aws::MQ::Model::UpdateUserRequest::GetGroups
const Aws::Vector< Aws::String > & GetGroups() const
Definition: UpdateUserRequest.h:106
Aws::MQ::Model::UpdateUserRequest::GroupsHasBeenSet
bool GroupsHasBeenSet() const
Definition: UpdateUserRequest.h:113
Aws::MQ::Model::UpdateUserRequest::WithGroups
UpdateUserRequest & WithGroups(Aws::Vector< Aws::String > &&value)
Definition: UpdateUserRequest.h:141
Aws::MQ::Model::UpdateUserRequest::SetPassword
void SetPassword(const char *value)
Definition: UpdateUserRequest.h:198
Aws::MQ::Model::UpdateUserRequest::WithUsername
UpdateUserRequest & WithUsername(const Aws::String &value)
Definition: UpdateUserRequest.h:262
Aws::MQ::Model::UpdateUserRequest::GetConsoleAccess
bool GetConsoleAccess() const
Definition: UpdateUserRequest.h:83
Aws::MQ::Model::UpdateUserRequest::GetBrokerId
const Aws::String & GetBrokerId() const
Definition: UpdateUserRequest.h:42
Aws::MQ::Model::UpdateUserRequest::SetBrokerId
void SetBrokerId(const Aws::String &value)
Definition: UpdateUserRequest.h:52
Aws::MQ::Model::UpdateUserRequest::SetGroups
void SetGroups(Aws::Vector< Aws::String > &&value)
Definition: UpdateUserRequest.h:127
Aws::MQ::Model::UpdateUserRequest::SetConsoleAccess
void SetConsoleAccess(bool value)
Definition: UpdateUserRequest.h:93
Aws::MQ::Model::UpdateUserRequest::AddGroups
UpdateUserRequest & AddGroups(const Aws::String &value)
Definition: UpdateUserRequest.h:148
Aws::MQ::Model::UpdateUserRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::MQ::Model::UpdateUserRequest::WithUsername
UpdateUserRequest & WithUsername(const char *value)
Definition: UpdateUserRequest.h:276
Aws::MQ::Model::UpdateUserRequest::ConsoleAccessHasBeenSet
bool ConsoleAccessHasBeenSet() const
Definition: UpdateUserRequest.h:88
MQRequest.h
Aws::MQ::Model::UpdateUserRequest
Definition: UpdateUserRequest.h:26
Aws::MQ::Model::UpdateUserRequest::BrokerIdHasBeenSet
bool BrokerIdHasBeenSet() const
Definition: UpdateUserRequest.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::MQ::MQRequest
Definition: MQRequest.h:17
Aws::MQ::Model::UpdateUserRequest::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: UpdateUserRequest.h:234
Aws::MQ::Model::UpdateUserRequest::WithGroups
UpdateUserRequest & WithGroups(const Aws::Vector< Aws::String > &value)
Definition: UpdateUserRequest.h:134
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MQ::Model::UpdateUserRequest::WithBrokerId
UpdateUserRequest & WithBrokerId(const char *value)
Definition: UpdateUserRequest.h:77
Aws::MQ::Model::UpdateUserRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: UpdateUserRequest.h:184
Aws::MQ::Model::UpdateUserRequest::GetUsername
const Aws::String & GetUsername() const
Definition: UpdateUserRequest.h:227
Aws::MQ::Model::UpdateUserRequest::SetUsername
void SetUsername(const char *value)
Definition: UpdateUserRequest.h:255
Aws::MQ::Model::UpdateUserRequest::UpdateUserRequest
UpdateUserRequest()
Aws::MQ::Model::UpdateUserRequest::SetBrokerId
void SetBrokerId(Aws::String &&value)
Definition: UpdateUserRequest.h:57
Aws::MQ::Model::UpdateUserRequest::WithPassword
UpdateUserRequest & WithPassword(const char *value)
Definition: UpdateUserRequest.h:219
Aws::MQ::Model::UpdateUserRequest::WithBrokerId
UpdateUserRequest & WithBrokerId(const Aws::String &value)
Definition: UpdateUserRequest.h:67