AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
User.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MQ
23{
24namespace Model
25{
26
36 class User
37 {
38 public:
39 AWS_MQ_API User() = default;
40 AWS_MQ_API User(Aws::Utils::Json::JsonView jsonValue);
43
44
46
50 inline bool GetConsoleAccess() const { return m_consoleAccess; }
51 inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; }
52 inline void SetConsoleAccess(bool value) { m_consoleAccessHasBeenSet = true; m_consoleAccess = value; }
53 inline User& WithConsoleAccess(bool value) { SetConsoleAccess(value); return *this;}
55
57
63 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
64 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
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>>
68 User& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
69 template<typename GroupsT = Aws::String>
70 User& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
72
74
79 inline const Aws::String& GetPassword() const { return m_password; }
80 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
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>
84 User& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
86
88
102 inline const Aws::String& GetUsername() const { return m_username; }
103 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
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>
107 User& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
109
111
114 inline bool GetReplicationUser() const { return m_replicationUser; }
115 inline bool ReplicationUserHasBeenSet() const { return m_replicationUserHasBeenSet; }
116 inline void SetReplicationUser(bool value) { m_replicationUserHasBeenSet = true; m_replicationUser = value; }
117 inline User& WithReplicationUser(bool value) { SetReplicationUser(value); return *this;}
119 private:
120
121 bool m_consoleAccess{false};
122 bool m_consoleAccessHasBeenSet = false;
123
125 bool m_groupsHasBeenSet = false;
126
127 Aws::String m_password;
128 bool m_passwordHasBeenSet = false;
129
130 Aws::String m_username;
131 bool m_usernameHasBeenSet = false;
132
133 bool m_replicationUser{false};
134 bool m_replicationUserHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace MQ
139} // namespace Aws
void SetUsername(UsernameT &&value)
Definition User.h:105
bool UsernameHasBeenSet() const
Definition User.h:103
User & AddGroups(GroupsT &&value)
Definition User.h:70
AWS_MQ_API User(Aws::Utils::Json::JsonView jsonValue)
bool GetReplicationUser() const
Definition User.h:114
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReplicationUser(bool value)
Definition User.h:116
bool GroupsHasBeenSet() const
Definition User.h:64
User & WithGroups(GroupsT &&value)
Definition User.h:68
const Aws::Vector< Aws::String > & GetGroups() const
Definition User.h:63
bool PasswordHasBeenSet() const
Definition User.h:80
void SetPassword(PasswordT &&value)
Definition User.h:82
User & WithReplicationUser(bool value)
Definition User.h:117
const Aws::String & GetPassword() const
Definition User.h:79
AWS_MQ_API User()=default
bool GetConsoleAccess() const
Definition User.h:50
const Aws::String & GetUsername() const
Definition User.h:102
User & WithUsername(UsernameT &&value)
Definition User.h:107
void SetGroups(GroupsT &&value)
Definition User.h:66
bool ConsoleAccessHasBeenSet() const
Definition User.h:51
void SetConsoleAccess(bool value)
Definition User.h:52
User & WithPassword(PasswordT &&value)
Definition User.h:84
bool ReplicationUserHasBeenSet() const
Definition User.h:115
AWS_MQ_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
User & WithConsoleAccess(bool value)
Definition User.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue