AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateUserRequest.h
1
6#pragma once
7#include <aws/mq/MQ_EXPORTS.h>
8#include <aws/mq/MQRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MQ
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_MQ_API UpdateUserRequest() = default;
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_MQ_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetBrokerId() const { return m_brokerId; }
44 inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
45 template<typename BrokerIdT = Aws::String>
46 void SetBrokerId(BrokerIdT&& value) { m_brokerIdHasBeenSet = true; m_brokerId = std::forward<BrokerIdT>(value); }
47 template<typename BrokerIdT = Aws::String>
48 UpdateUserRequest& WithBrokerId(BrokerIdT&& value) { SetBrokerId(std::forward<BrokerIdT>(value)); return *this;}
50
52
55 inline bool GetConsoleAccess() const { return m_consoleAccess; }
56 inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; }
57 inline void SetConsoleAccess(bool value) { m_consoleAccessHasBeenSet = true; m_consoleAccess = value; }
58 inline UpdateUserRequest& WithConsoleAccess(bool value) { SetConsoleAccess(value); return *this;}
60
62
67 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
68 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
69 template<typename GroupsT = Aws::Vector<Aws::String>>
70 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
71 template<typename GroupsT = Aws::Vector<Aws::String>>
72 UpdateUserRequest& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
73 template<typename GroupsT = Aws::String>
74 UpdateUserRequest& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
76
78
83 inline const Aws::String& GetPassword() const { return m_password; }
84 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
85 template<typename PasswordT = Aws::String>
86 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
87 template<typename PasswordT = Aws::String>
88 UpdateUserRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
90
92
97 inline const Aws::String& GetUsername() const { return m_username; }
98 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
99 template<typename UsernameT = Aws::String>
100 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
101 template<typename UsernameT = Aws::String>
102 UpdateUserRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
104
106
109 inline bool GetReplicationUser() const { return m_replicationUser; }
110 inline bool ReplicationUserHasBeenSet() const { return m_replicationUserHasBeenSet; }
111 inline void SetReplicationUser(bool value) { m_replicationUserHasBeenSet = true; m_replicationUser = value; }
112 inline UpdateUserRequest& WithReplicationUser(bool value) { SetReplicationUser(value); return *this;}
114 private:
115
116 Aws::String m_brokerId;
117 bool m_brokerIdHasBeenSet = false;
118
119 bool m_consoleAccess{false};
120 bool m_consoleAccessHasBeenSet = false;
121
123 bool m_groupsHasBeenSet = false;
124
125 Aws::String m_password;
126 bool m_passwordHasBeenSet = false;
127
128 Aws::String m_username;
129 bool m_usernameHasBeenSet = false;
130
131 bool m_replicationUser{false};
132 bool m_replicationUserHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace MQ
137} // namespace Aws
AWS_MQ_API Aws::String SerializePayload() const override
const Aws::String & GetUsername() const
UpdateUserRequest & WithConsoleAccess(bool value)
const Aws::String & GetPassword() const
UpdateUserRequest & WithUsername(UsernameT &&value)
UpdateUserRequest & WithGroups(GroupsT &&value)
UpdateUserRequest & WithBrokerId(BrokerIdT &&value)
UpdateUserRequest & WithPassword(PasswordT &&value)
UpdateUserRequest & WithReplicationUser(bool value)
UpdateUserRequest & AddGroups(GroupsT &&value)
virtual const char * GetServiceRequestName() const override
void SetUsername(UsernameT &&value)
const Aws::String & GetBrokerId() const
void SetPassword(PasswordT &&value)
const Aws::Vector< Aws::String > & GetGroups() const
void SetBrokerId(BrokerIdT &&value)
AWS_MQ_API UpdateUserRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector