AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mq/MQRequest.h>
10#include <aws/mq/MQ_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MQ {
16namespace Model {
17
24 public:
25 AWS_MQ_API UpdateUserRequest() = 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 "UpdateUser"; }
32
33 AWS_MQ_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetBrokerId() const { return m_brokerId; }
40 inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
41 template <typename BrokerIdT = Aws::String>
42 void SetBrokerId(BrokerIdT&& value) {
43 m_brokerIdHasBeenSet = true;
44 m_brokerId = std::forward<BrokerIdT>(value);
45 }
46 template <typename BrokerIdT = Aws::String>
47 UpdateUserRequest& WithBrokerId(BrokerIdT&& value) {
48 SetBrokerId(std::forward<BrokerIdT>(value));
49 return *this;
50 }
52
54
57 inline bool GetConsoleAccess() const { return m_consoleAccess; }
58 inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; }
59 inline void SetConsoleAccess(bool value) {
60 m_consoleAccessHasBeenSet = true;
61 m_consoleAccess = value;
62 }
64 SetConsoleAccess(value);
65 return *this;
66 }
68
70
75 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
76 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
77 template <typename GroupsT = Aws::Vector<Aws::String>>
78 void SetGroups(GroupsT&& value) {
79 m_groupsHasBeenSet = true;
80 m_groups = std::forward<GroupsT>(value);
81 }
82 template <typename GroupsT = Aws::Vector<Aws::String>>
83 UpdateUserRequest& WithGroups(GroupsT&& value) {
84 SetGroups(std::forward<GroupsT>(value));
85 return *this;
86 }
87 template <typename GroupsT = Aws::String>
88 UpdateUserRequest& AddGroups(GroupsT&& value) {
89 m_groupsHasBeenSet = true;
90 m_groups.emplace_back(std::forward<GroupsT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetPassword() const { return m_password; }
102 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
103 template <typename PasswordT = Aws::String>
104 void SetPassword(PasswordT&& value) {
105 m_passwordHasBeenSet = true;
106 m_password = std::forward<PasswordT>(value);
107 }
108 template <typename PasswordT = Aws::String>
109 UpdateUserRequest& WithPassword(PasswordT&& value) {
110 SetPassword(std::forward<PasswordT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::String& GetUsername() const { return m_username; }
122 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
123 template <typename UsernameT = Aws::String>
124 void SetUsername(UsernameT&& value) {
125 m_usernameHasBeenSet = true;
126 m_username = std::forward<UsernameT>(value);
127 }
128 template <typename UsernameT = Aws::String>
129 UpdateUserRequest& WithUsername(UsernameT&& value) {
130 SetUsername(std::forward<UsernameT>(value));
131 return *this;
132 }
134
136
139 inline bool GetReplicationUser() const { return m_replicationUser; }
140 inline bool ReplicationUserHasBeenSet() const { return m_replicationUserHasBeenSet; }
141 inline void SetReplicationUser(bool value) {
142 m_replicationUserHasBeenSet = true;
143 m_replicationUser = value;
144 }
146 SetReplicationUser(value);
147 return *this;
148 }
150 private:
151 Aws::String m_brokerId;
152
153 bool m_consoleAccess{false};
154
156
157 Aws::String m_password;
158
159 Aws::String m_username;
160
161 bool m_replicationUser{false};
162 bool m_brokerIdHasBeenSet = false;
163 bool m_consoleAccessHasBeenSet = false;
164 bool m_groupsHasBeenSet = false;
165 bool m_passwordHasBeenSet = false;
166 bool m_usernameHasBeenSet = false;
167 bool m_replicationUserHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace MQ
172} // 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