7#include <aws/mq/MQ_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
39 AWS_MQ_API
User() =
default;
52 inline void SetConsoleAccess(
bool value) { m_consoleAccessHasBeenSet =
true; m_consoleAccess = value; }
65 template<
typename GroupsT = Aws::Vector<Aws::String>>
66 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups = std::forward<GroupsT>(value); }
67 template<
typename GroupsT = Aws::Vector<Aws::String>>
69 template<
typename GroupsT = Aws::String>
70 User&
AddGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups.emplace_back(std::forward<GroupsT>(value));
return *
this; }
81 template<
typename PasswordT = Aws::String>
82 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet =
true; m_password = std::forward<PasswordT>(value); }
83 template<
typename PasswordT = Aws::String>
104 template<
typename UsernameT = Aws::String>
105 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet =
true; m_username = std::forward<UsernameT>(value); }
106 template<
typename UsernameT = Aws::String>
116 inline void SetReplicationUser(
bool value) { m_replicationUserHasBeenSet =
true; m_replicationUser = value; }
121 bool m_consoleAccess{
false};
122 bool m_consoleAccessHasBeenSet =
false;
125 bool m_groupsHasBeenSet =
false;
128 bool m_passwordHasBeenSet =
false;
131 bool m_usernameHasBeenSet =
false;
133 bool m_replicationUser{
false};
134 bool m_replicationUserHasBeenSet =
false;
void SetUsername(UsernameT &&value)
bool UsernameHasBeenSet() const
User & AddGroups(GroupsT &&value)
AWS_MQ_API User(Aws::Utils::Json::JsonView jsonValue)
bool GetReplicationUser() const
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReplicationUser(bool value)
bool GroupsHasBeenSet() const
User & WithGroups(GroupsT &&value)
const Aws::Vector< Aws::String > & GetGroups() const
bool PasswordHasBeenSet() const
void SetPassword(PasswordT &&value)
User & WithReplicationUser(bool value)
const Aws::String & GetPassword() const
AWS_MQ_API User()=default
bool GetConsoleAccess() const
const Aws::String & GetUsername() const
User & WithUsername(UsernameT &&value)
void SetGroups(GroupsT &&value)
bool ConsoleAccessHasBeenSet() const
void SetConsoleAccess(bool value)
User & WithPassword(PasswordT &&value)
bool ReplicationUserHasBeenSet() const
AWS_MQ_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
User & WithConsoleAccess(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue