7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/AuthenticationMode.h>
12#include <aws/elasticache/model/Tag.h>
48 template<
typename UserIdT = Aws::String>
49 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet =
true; m_userId = std::forward<UserIdT>(value); }
50 template<
typename UserIdT = Aws::String>
60 template<
typename UserNameT = Aws::String>
61 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet =
true; m_userName = std::forward<UserNameT>(value); }
62 template<
typename UserNameT = Aws::String>
72 template<
typename EngineT = Aws::String>
73 void SetEngine(EngineT&& value) { m_engineHasBeenSet =
true; m_engine = std::forward<EngineT>(value); }
74 template<
typename EngineT = Aws::String>
85 template<
typename PasswordsT = Aws::Vector<Aws::String>>
86 void SetPasswords(PasswordsT&& value) { m_passwordsHasBeenSet =
true; m_passwords = std::forward<PasswordsT>(value); }
87 template<
typename PasswordsT = Aws::Vector<Aws::String>>
89 template<
typename PasswordsT = Aws::String>
90 CreateUserRequest&
AddPasswords(PasswordsT&& value) { m_passwordsHasBeenSet =
true; m_passwords.emplace_back(std::forward<PasswordsT>(value));
return *
this; }
99 template<
typename AccessStringT = Aws::String>
100 void SetAccessString(AccessStringT&& value) { m_accessStringHasBeenSet =
true; m_accessString = std::forward<AccessStringT>(value); }
101 template<
typename AccessStringT = Aws::String>
111 inline void SetNoPasswordRequired(
bool value) { m_noPasswordRequiredHasBeenSet =
true; m_noPasswordRequired = value; }
122 template<
typename TagsT = Aws::Vector<Tag>>
123 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
124 template<
typename TagsT = Aws::Vector<Tag>>
126 template<
typename TagsT = Tag>
127 CreateUserRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
136 template<
typename AuthenticationModeT = AuthenticationMode>
137 void SetAuthenticationMode(AuthenticationModeT&& value) { m_authenticationModeHasBeenSet =
true; m_authenticationMode = std::forward<AuthenticationModeT>(value); }
138 template<
typename AuthenticationModeT = AuthenticationMode>
144 bool m_userIdHasBeenSet =
false;
147 bool m_userNameHasBeenSet =
false;
150 bool m_engineHasBeenSet =
false;
153 bool m_passwordsHasBeenSet =
false;
156 bool m_accessStringHasBeenSet =
false;
158 bool m_noPasswordRequired{
false};
159 bool m_noPasswordRequiredHasBeenSet =
false;
162 bool m_tagsHasBeenSet =
false;
164 AuthenticationMode m_authenticationMode;
165 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