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>
17namespace ElastiCache {
44 template <
typename UserIdT = Aws::String>
46 m_userIdHasBeenSet =
true;
47 m_userId = std::forward<UserIdT>(value);
49 template <
typename UserIdT = Aws::String>
62 template <
typename UserNameT = Aws::String>
64 m_userNameHasBeenSet =
true;
65 m_userName = std::forward<UserNameT>(value);
67 template <
typename UserNameT = Aws::String>
80 template <
typename EngineT = Aws::String>
82 m_engineHasBeenSet =
true;
83 m_engine = std::forward<EngineT>(value);
85 template <
typename EngineT = Aws::String>
99 template <
typename PasswordsT = Aws::Vector<Aws::String>>
101 m_passwordsHasBeenSet =
true;
102 m_passwords = std::forward<PasswordsT>(value);
104 template <
typename PasswordsT = Aws::Vector<Aws::String>>
109 template <
typename PasswordsT = Aws::String>
111 m_passwordsHasBeenSet =
true;
112 m_passwords.emplace_back(std::forward<PasswordsT>(value));
123 template <
typename AccessStringT = Aws::String>
125 m_accessStringHasBeenSet =
true;
126 m_accessString = std::forward<AccessStringT>(value);
128 template <
typename AccessStringT = Aws::String>
142 m_noPasswordRequiredHasBeenSet =
true;
143 m_noPasswordRequired = value;
158 template <
typename TagsT = Aws::Vector<Tag>>
160 m_tagsHasBeenSet =
true;
161 m_tags = std::forward<TagsT>(value);
163 template <
typename TagsT = Aws::Vector<Tag>>
165 SetTags(std::forward<TagsT>(value));
168 template <
typename TagsT = Tag>
170 m_tagsHasBeenSet =
true;
171 m_tags.emplace_back(std::forward<TagsT>(value));
182 template <
typename AuthenticationModeT = AuthenticationMode>
184 m_authenticationModeHasBeenSet =
true;
185 m_authenticationMode = std::forward<AuthenticationModeT>(value);
187 template <
typename AuthenticationModeT = AuthenticationMode>
204 bool m_noPasswordRequired{
false};
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;
CreateUserRequest & WithUserName(UserNameT &&value)
void SetAccessString(AccessStringT &&value)
CreateUserRequest & WithUserId(UserIdT &&value)
CreateUserRequest & WithNoPasswordRequired(bool value)
void SetUserName(UserNameT &&value)
bool GetNoPasswordRequired() const
CreateUserRequest & AddTags(TagsT &&value)
bool UserIdHasBeenSet() const
const Aws::String & GetEngine() const
void SetTags(TagsT &&value)
bool UserNameHasBeenSet() const
const Aws::Vector< Aws::String > & GetPasswords() const
void SetAuthenticationMode(AuthenticationModeT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateUserRequest & WithAuthenticationMode(AuthenticationModeT &&value)
bool AccessStringHasBeenSet() const
void SetEngine(EngineT &&value)
const Aws::String & GetUserId() const
const Aws::String & GetAccessString() const
CreateUserRequest & AddPasswords(PasswordsT &&value)
bool AuthenticationModeHasBeenSet() const
CreateUserRequest & WithEngine(EngineT &&value)
virtual const char * GetServiceRequestName() const override
bool PasswordsHasBeenSet() const
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
bool NoPasswordRequiredHasBeenSet() const
const Aws::String & GetUserName() const
void SetNoPasswordRequired(bool value)
AWS_ELASTICACHE_API CreateUserRequest()=default
void SetUserId(UserIdT &&value)
void SetPasswords(PasswordsT &&value)
bool EngineHasBeenSet() const
const AuthenticationMode & GetAuthenticationMode() const
CreateUserRequest & WithTags(TagsT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateUserRequest & WithAccessString(AccessStringT &&value)
CreateUserRequest & WithPasswords(PasswordsT &&value)
bool TagsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector