AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/Authentication.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace MemoryDB {
22namespace Model {
23
32class User {
33 public:
34 AWS_MEMORYDB_API User() = default;
35 AWS_MEMORYDB_API User(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API User& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 User& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 template <typename StatusT = Aws::String>
64 void SetStatus(StatusT&& value) {
65 m_statusHasBeenSet = true;
66 m_status = std::forward<StatusT>(value);
67 }
68 template <typename StatusT = Aws::String>
69 User& WithStatus(StatusT&& value) {
70 SetStatus(std::forward<StatusT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAccessString() const { return m_accessString; }
80 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
81 template <typename AccessStringT = Aws::String>
82 void SetAccessString(AccessStringT&& value) {
83 m_accessStringHasBeenSet = true;
84 m_accessString = std::forward<AccessStringT>(value);
85 }
86 template <typename AccessStringT = Aws::String>
87 User& WithAccessString(AccessStringT&& value) {
88 SetAccessString(std::forward<AccessStringT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Aws::String>& GetACLNames() const { return m_aCLNames; }
98 inline bool ACLNamesHasBeenSet() const { return m_aCLNamesHasBeenSet; }
99 template <typename ACLNamesT = Aws::Vector<Aws::String>>
100 void SetACLNames(ACLNamesT&& value) {
101 m_aCLNamesHasBeenSet = true;
102 m_aCLNames = std::forward<ACLNamesT>(value);
103 }
104 template <typename ACLNamesT = Aws::Vector<Aws::String>>
105 User& WithACLNames(ACLNamesT&& value) {
106 SetACLNames(std::forward<ACLNamesT>(value));
107 return *this;
108 }
109 template <typename ACLNamesT = Aws::String>
110 User& AddACLNames(ACLNamesT&& value) {
111 m_aCLNamesHasBeenSet = true;
112 m_aCLNames.emplace_back(std::forward<ACLNamesT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetMinimumEngineVersion() const { return m_minimumEngineVersion; }
122 inline bool MinimumEngineVersionHasBeenSet() const { return m_minimumEngineVersionHasBeenSet; }
123 template <typename MinimumEngineVersionT = Aws::String>
124 void SetMinimumEngineVersion(MinimumEngineVersionT&& value) {
125 m_minimumEngineVersionHasBeenSet = true;
126 m_minimumEngineVersion = std::forward<MinimumEngineVersionT>(value);
127 }
128 template <typename MinimumEngineVersionT = Aws::String>
129 User& WithMinimumEngineVersion(MinimumEngineVersionT&& value) {
130 SetMinimumEngineVersion(std::forward<MinimumEngineVersionT>(value));
131 return *this;
132 }
134
136
139 inline const Authentication& GetAuthentication() const { return m_authentication; }
140 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
141 template <typename AuthenticationT = Authentication>
142 void SetAuthentication(AuthenticationT&& value) {
143 m_authenticationHasBeenSet = true;
144 m_authentication = std::forward<AuthenticationT>(value);
145 }
146 template <typename AuthenticationT = Authentication>
147 User& WithAuthentication(AuthenticationT&& value) {
148 SetAuthentication(std::forward<AuthenticationT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetARN() const { return m_aRN; }
158 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
159 template <typename ARNT = Aws::String>
160 void SetARN(ARNT&& value) {
161 m_aRNHasBeenSet = true;
162 m_aRN = std::forward<ARNT>(value);
163 }
164 template <typename ARNT = Aws::String>
165 User& WithARN(ARNT&& value) {
166 SetARN(std::forward<ARNT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_name;
172
173 Aws::String m_status;
174
175 Aws::String m_accessString;
176
177 Aws::Vector<Aws::String> m_aCLNames;
178
179 Aws::String m_minimumEngineVersion;
180
181 Authentication m_authentication;
182
183 Aws::String m_aRN;
184 bool m_nameHasBeenSet = false;
185 bool m_statusHasBeenSet = false;
186 bool m_accessStringHasBeenSet = false;
187 bool m_aCLNamesHasBeenSet = false;
188 bool m_minimumEngineVersionHasBeenSet = false;
189 bool m_authenticationHasBeenSet = false;
190 bool m_aRNHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace MemoryDB
195} // namespace Aws
const Aws::String & GetARN() const
Definition User.h:157
void SetAuthentication(AuthenticationT &&value)
Definition User.h:142
bool MinimumEngineVersionHasBeenSet() const
Definition User.h:122
bool ARNHasBeenSet() const
Definition User.h:158
AWS_MEMORYDB_API User(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
User & WithARN(ARNT &&value)
Definition User.h:165
void SetMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition User.h:124
const Aws::String & GetAccessString() const
Definition User.h:79
const Aws::String & GetName() const
Definition User.h:43
void SetAccessString(AccessStringT &&value)
Definition User.h:82
const Aws::String & GetStatus() const
Definition User.h:61
User & WithAccessString(AccessStringT &&value)
Definition User.h:87
void SetStatus(StatusT &&value)
Definition User.h:64
User & WithACLNames(ACLNamesT &&value)
Definition User.h:105
AWS_MEMORYDB_API User & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API User()=default
bool NameHasBeenSet() const
Definition User.h:44
bool ACLNamesHasBeenSet() const
Definition User.h:98
User & AddACLNames(ACLNamesT &&value)
Definition User.h:110
void SetACLNames(ACLNamesT &&value)
Definition User.h:100
bool StatusHasBeenSet() const
Definition User.h:62
User & WithAuthentication(AuthenticationT &&value)
Definition User.h:147
bool AuthenticationHasBeenSet() const
Definition User.h:140
User & WithStatus(StatusT &&value)
Definition User.h:69
void SetARN(ARNT &&value)
Definition User.h:160
User & WithName(NameT &&value)
Definition User.h:51
User & WithMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition User.h:129
const Aws::Vector< Aws::String > & GetACLNames() const
Definition User.h:97
bool AccessStringHasBeenSet() const
Definition User.h:80
void SetName(NameT &&value)
Definition User.h:46
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Authentication & GetAuthentication() const
Definition User.h:139
const Aws::String & GetMinimumEngineVersion() const
Definition User.h:121
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector