AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
66 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
67 inline User& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
68 inline User& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
69 inline User& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
70 inline User& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
71 inline User& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
73
75
80 inline const Aws::String& GetPassword() const{ return m_password; }
81 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
82 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
83 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
84 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
85 inline User& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
86 inline User& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
87 inline User& WithPassword(const char* value) { SetPassword(value); return *this;}
89
91
105 inline const Aws::String& GetUsername() const{ return m_username; }
106 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
107 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
108 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
109 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
110 inline User& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
111 inline User& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
112 inline User& WithUsername(const char* value) { SetUsername(value); return *this;}
114
116
119 inline bool GetReplicationUser() const{ return m_replicationUser; }
120 inline bool ReplicationUserHasBeenSet() const { return m_replicationUserHasBeenSet; }
121 inline void SetReplicationUser(bool value) { m_replicationUserHasBeenSet = true; m_replicationUser = value; }
122 inline User& WithReplicationUser(bool value) { SetReplicationUser(value); return *this;}
124 private:
125
126 bool m_consoleAccess;
127 bool m_consoleAccessHasBeenSet = false;
128
130 bool m_groupsHasBeenSet = false;
131
132 Aws::String m_password;
133 bool m_passwordHasBeenSet = false;
134
135 Aws::String m_username;
136 bool m_usernameHasBeenSet = false;
137
138 bool m_replicationUser;
139 bool m_replicationUserHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace MQ
144} // namespace Aws
User & AddGroups(Aws::String &&value)
Definition User.h:70
bool UsernameHasBeenSet() const
Definition User.h:106
void SetUsername(const Aws::String &value)
Definition User.h:107
void SetGroups(Aws::Vector< Aws::String > &&value)
Definition User.h:66
User & WithGroups(const Aws::Vector< Aws::String > &value)
Definition User.h:67
AWS_MQ_API User(Aws::Utils::Json::JsonView jsonValue)
User & WithPassword(Aws::String &&value)
Definition User.h:86
bool GetReplicationUser() const
Definition User.h:119
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReplicationUser(bool value)
Definition User.h:121
User & WithPassword(const Aws::String &value)
Definition User.h:85
bool GroupsHasBeenSet() const
Definition User.h:64
const Aws::Vector< Aws::String > & GetGroups() const
Definition User.h:63
User & AddGroups(const char *value)
Definition User.h:71
bool PasswordHasBeenSet() const
Definition User.h:81
void SetUsername(Aws::String &&value)
Definition User.h:108
User & WithReplicationUser(bool value)
Definition User.h:122
const Aws::String & GetPassword() const
Definition User.h:80
User & WithUsername(Aws::String &&value)
Definition User.h:111
User & WithPassword(const char *value)
Definition User.h:87
void SetPassword(const Aws::String &value)
Definition User.h:82
void SetPassword(const char *value)
Definition User.h:84
void SetUsername(const char *value)
Definition User.h:109
bool GetConsoleAccess() const
Definition User.h:50
User & WithUsername(const char *value)
Definition User.h:112
const Aws::String & GetUsername() const
Definition User.h:105
User & WithGroups(Aws::Vector< Aws::String > &&value)
Definition User.h:68
User & WithUsername(const Aws::String &value)
Definition User.h:110
bool ConsoleAccessHasBeenSet() const
Definition User.h:51
void SetConsoleAccess(bool value)
Definition User.h:52
void SetPassword(Aws::String &&value)
Definition User.h:83
User & AddGroups(const Aws::String &value)
Definition User.h:69
bool ReplicationUserHasBeenSet() const
Definition User.h:120
void SetGroups(const Aws::Vector< Aws::String > &value)
Definition User.h:65
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