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>
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>
57 inline void SetConsoleAccess(
bool value) { m_consoleAccessHasBeenSet =
true; m_consoleAccess = value; }
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>>
73 template<
typename GroupsT = Aws::String>
74 CreateUserRequest&
AddGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups.emplace_back(std::forward<GroupsT>(value));
return *
this; }
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>
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>
111 inline void SetReplicationUser(
bool value) { m_replicationUserHasBeenSet =
true; m_replicationUser = value; }
117 bool m_brokerIdHasBeenSet =
false;
119 bool m_consoleAccess{
false};
120 bool m_consoleAccessHasBeenSet =
false;
123 bool m_groupsHasBeenSet =
false;
126 bool m_passwordHasBeenSet =
false;
129 bool m_usernameHasBeenSet =
false;
131 bool m_replicationUser{
false};
132 bool m_replicationUserHasBeenSet =
false;
CreateUserRequest & WithGroups(GroupsT &&value)
void SetUsername(UsernameT &&value)
void SetPassword(PasswordT &&value)
const Aws::Vector< Aws::String > & GetGroups() const
void SetBrokerId(BrokerIdT &&value)
AWS_MQ_API Aws::String SerializePayload() const override
bool PasswordHasBeenSet() const
CreateUserRequest & WithUsername(UsernameT &&value)
CreateUserRequest & WithConsoleAccess(bool value)
CreateUserRequest & WithPassword(PasswordT &&value)
void SetConsoleAccess(bool value)
bool ConsoleAccessHasBeenSet() const
CreateUserRequest & WithReplicationUser(bool value)
bool BrokerIdHasBeenSet() const
const Aws::String & GetUsername() const
bool UsernameHasBeenSet() const
void SetReplicationUser(bool value)
bool ReplicationUserHasBeenSet() const
void SetGroups(GroupsT &&value)
bool GetConsoleAccess() const
const Aws::String & GetBrokerId() const
virtual const char * GetServiceRequestName() const override
bool GetReplicationUser() const
CreateUserRequest & AddGroups(GroupsT &&value)
CreateUserRequest & WithBrokerId(BrokerIdT &&value)
const Aws::String & GetPassword() const
bool GroupsHasBeenSet() const
AWS_MQ_API CreateUserRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector