AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateUserRequest.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/elasticache/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/AuthenticationMode.h>
12#include <aws/elasticache/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ElastiCache {
18namespace Model {
19
23 public:
24 AWS_ELASTICACHE_API CreateUserRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
31
32 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetUserId() const { return m_userId; }
43 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
44 template <typename UserIdT = Aws::String>
45 void SetUserId(UserIdT&& value) {
46 m_userIdHasBeenSet = true;
47 m_userId = std::forward<UserIdT>(value);
48 }
49 template <typename UserIdT = Aws::String>
50 CreateUserRequest& WithUserId(UserIdT&& value) {
51 SetUserId(std::forward<UserIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetUserName() const { return m_userName; }
61 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
62 template <typename UserNameT = Aws::String>
63 void SetUserName(UserNameT&& value) {
64 m_userNameHasBeenSet = true;
65 m_userName = std::forward<UserNameT>(value);
66 }
67 template <typename UserNameT = Aws::String>
68 CreateUserRequest& WithUserName(UserNameT&& value) {
69 SetUserName(std::forward<UserNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetEngine() const { return m_engine; }
79 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
80 template <typename EngineT = Aws::String>
81 void SetEngine(EngineT&& value) {
82 m_engineHasBeenSet = true;
83 m_engine = std::forward<EngineT>(value);
84 }
85 template <typename EngineT = Aws::String>
86 CreateUserRequest& WithEngine(EngineT&& value) {
87 SetEngine(std::forward<EngineT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Vector<Aws::String>& GetPasswords() const { return m_passwords; }
98 inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; }
99 template <typename PasswordsT = Aws::Vector<Aws::String>>
100 void SetPasswords(PasswordsT&& value) {
101 m_passwordsHasBeenSet = true;
102 m_passwords = std::forward<PasswordsT>(value);
103 }
104 template <typename PasswordsT = Aws::Vector<Aws::String>>
105 CreateUserRequest& WithPasswords(PasswordsT&& value) {
106 SetPasswords(std::forward<PasswordsT>(value));
107 return *this;
108 }
109 template <typename PasswordsT = Aws::String>
110 CreateUserRequest& AddPasswords(PasswordsT&& value) {
111 m_passwordsHasBeenSet = true;
112 m_passwords.emplace_back(std::forward<PasswordsT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetAccessString() const { return m_accessString; }
122 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
123 template <typename AccessStringT = Aws::String>
124 void SetAccessString(AccessStringT&& value) {
125 m_accessStringHasBeenSet = true;
126 m_accessString = std::forward<AccessStringT>(value);
127 }
128 template <typename AccessStringT = Aws::String>
129 CreateUserRequest& WithAccessString(AccessStringT&& value) {
130 SetAccessString(std::forward<AccessStringT>(value));
131 return *this;
132 }
134
136
139 inline bool GetNoPasswordRequired() const { return m_noPasswordRequired; }
140 inline bool NoPasswordRequiredHasBeenSet() const { return m_noPasswordRequiredHasBeenSet; }
141 inline void SetNoPasswordRequired(bool value) {
142 m_noPasswordRequiredHasBeenSet = true;
143 m_noPasswordRequired = value;
144 }
147 return *this;
148 }
150
152
156 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template <typename TagsT = Aws::Vector<Tag>>
159 void SetTags(TagsT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags = std::forward<TagsT>(value);
162 }
163 template <typename TagsT = Aws::Vector<Tag>>
164 CreateUserRequest& WithTags(TagsT&& value) {
165 SetTags(std::forward<TagsT>(value));
166 return *this;
167 }
168 template <typename TagsT = Tag>
169 CreateUserRequest& AddTags(TagsT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags.emplace_back(std::forward<TagsT>(value));
172 return *this;
173 }
175
177
180 inline const AuthenticationMode& GetAuthenticationMode() const { return m_authenticationMode; }
181 inline bool AuthenticationModeHasBeenSet() const { return m_authenticationModeHasBeenSet; }
182 template <typename AuthenticationModeT = AuthenticationMode>
183 void SetAuthenticationMode(AuthenticationModeT&& value) {
184 m_authenticationModeHasBeenSet = true;
185 m_authenticationMode = std::forward<AuthenticationModeT>(value);
186 }
187 template <typename AuthenticationModeT = AuthenticationMode>
188 CreateUserRequest& WithAuthenticationMode(AuthenticationModeT&& value) {
189 SetAuthenticationMode(std::forward<AuthenticationModeT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_userId;
195
196 Aws::String m_userName;
197
198 Aws::String m_engine;
199
200 Aws::Vector<Aws::String> m_passwords;
201
202 Aws::String m_accessString;
203
204 bool m_noPasswordRequired{false};
205
206 Aws::Vector<Tag> m_tags;
207
208 AuthenticationMode m_authenticationMode;
209 bool m_userIdHasBeenSet = false;
210 bool m_userNameHasBeenSet = false;
211 bool m_engineHasBeenSet = false;
212 bool m_passwordsHasBeenSet = false;
213 bool m_accessStringHasBeenSet = false;
214 bool m_noPasswordRequiredHasBeenSet = false;
215 bool m_tagsHasBeenSet = false;
216 bool m_authenticationModeHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace ElastiCache
221} // namespace Aws
CreateUserRequest & WithUserName(UserNameT &&value)
CreateUserRequest & WithUserId(UserIdT &&value)
CreateUserRequest & WithNoPasswordRequired(bool value)
CreateUserRequest & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetPasswords() const
void SetAuthenticationMode(AuthenticationModeT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateUserRequest & WithAuthenticationMode(AuthenticationModeT &&value)
CreateUserRequest & AddPasswords(PasswordsT &&value)
CreateUserRequest & WithEngine(EngineT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API CreateUserRequest()=default
const AuthenticationMode & GetAuthenticationMode() const
CreateUserRequest & WithTags(TagsT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateUserRequest & WithAccessString(AccessStringT &&value)
CreateUserRequest & WithPasswords(PasswordsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector