AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
User.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/MQ_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MQ {
21namespace Model {
22
32class User {
33 public:
34 AWS_MQ_API User() = default;
35 AWS_MQ_API User(Aws::Utils::Json::JsonView jsonValue);
38
40
44 inline bool GetConsoleAccess() const { return m_consoleAccess; }
45 inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; }
46 inline void SetConsoleAccess(bool value) {
47 m_consoleAccessHasBeenSet = true;
48 m_consoleAccess = value;
49 }
50 inline User& WithConsoleAccess(bool value) {
51 SetConsoleAccess(value);
52 return *this;
53 }
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) {
67 m_groupsHasBeenSet = true;
68 m_groups = std::forward<GroupsT>(value);
69 }
70 template <typename GroupsT = Aws::Vector<Aws::String>>
71 User& WithGroups(GroupsT&& value) {
72 SetGroups(std::forward<GroupsT>(value));
73 return *this;
74 }
75 template <typename GroupsT = Aws::String>
76 User& AddGroups(GroupsT&& value) {
77 m_groupsHasBeenSet = true;
78 m_groups.emplace_back(std::forward<GroupsT>(value));
79 return *this;
80 }
82
84
89 inline const Aws::String& GetPassword() const { return m_password; }
90 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
91 template <typename PasswordT = Aws::String>
92 void SetPassword(PasswordT&& value) {
93 m_passwordHasBeenSet = true;
94 m_password = std::forward<PasswordT>(value);
95 }
96 template <typename PasswordT = Aws::String>
97 User& WithPassword(PasswordT&& value) {
98 SetPassword(std::forward<PasswordT>(value));
99 return *this;
100 }
102
104
118 inline const Aws::String& GetUsername() const { return m_username; }
119 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
120 template <typename UsernameT = Aws::String>
121 void SetUsername(UsernameT&& value) {
122 m_usernameHasBeenSet = true;
123 m_username = std::forward<UsernameT>(value);
124 }
125 template <typename UsernameT = Aws::String>
126 User& WithUsername(UsernameT&& value) {
127 SetUsername(std::forward<UsernameT>(value));
128 return *this;
129 }
131
133
136 inline bool GetReplicationUser() const { return m_replicationUser; }
137 inline bool ReplicationUserHasBeenSet() const { return m_replicationUserHasBeenSet; }
138 inline void SetReplicationUser(bool value) {
139 m_replicationUserHasBeenSet = true;
140 m_replicationUser = value;
141 }
142 inline User& WithReplicationUser(bool value) {
143 SetReplicationUser(value);
144 return *this;
145 }
147 private:
148 bool m_consoleAccess{false};
149
151
152 Aws::String m_password;
153
154 Aws::String m_username;
155
156 bool m_replicationUser{false};
157 bool m_consoleAccessHasBeenSet = false;
158 bool m_groupsHasBeenSet = false;
159 bool m_passwordHasBeenSet = false;
160 bool m_usernameHasBeenSet = false;
161 bool m_replicationUserHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace MQ
166} // namespace Aws
void SetUsername(UsernameT &&value)
Definition User.h:121
bool UsernameHasBeenSet() const
Definition User.h:119
User & AddGroups(GroupsT &&value)
Definition User.h:76
AWS_MQ_API User(Aws::Utils::Json::JsonView jsonValue)
bool GetReplicationUser() const
Definition User.h:136
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReplicationUser(bool value)
Definition User.h:138
bool GroupsHasBeenSet() const
Definition User.h:64
User & WithGroups(GroupsT &&value)
Definition User.h:71
const Aws::Vector< Aws::String > & GetGroups() const
Definition User.h:63
bool PasswordHasBeenSet() const
Definition User.h:90
void SetPassword(PasswordT &&value)
Definition User.h:92
User & WithReplicationUser(bool value)
Definition User.h:142
const Aws::String & GetPassword() const
Definition User.h:89
AWS_MQ_API User()=default
bool GetConsoleAccess() const
Definition User.h:44
const Aws::String & GetUsername() const
Definition User.h:118
User & WithUsername(UsernameT &&value)
Definition User.h:126
void SetGroups(GroupsT &&value)
Definition User.h:66
bool ConsoleAccessHasBeenSet() const
Definition User.h:45
void SetConsoleAccess(bool value)
Definition User.h:46
User & WithPassword(PasswordT &&value)
Definition User.h:97
bool ReplicationUserHasBeenSet() const
Definition User.h:137
AWS_MQ_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
User & WithConsoleAccess(bool value)
Definition User.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue