AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace ElastiCache
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ELASTICACHE_API CreateUserRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
34
35 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetUserId() const { return m_userId; }
47 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
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>
51 CreateUserRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetUserName() const { return m_userName; }
59 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
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>
63 CreateUserRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetEngine() const { return m_engine; }
71 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
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>
75 CreateUserRequest& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
77
79
83 inline const Aws::Vector<Aws::String>& GetPasswords() const { return m_passwords; }
84 inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; }
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>>
88 CreateUserRequest& WithPasswords(PasswordsT&& value) { SetPasswords(std::forward<PasswordsT>(value)); return *this;}
89 template<typename PasswordsT = Aws::String>
90 CreateUserRequest& AddPasswords(PasswordsT&& value) { m_passwordsHasBeenSet = true; m_passwords.emplace_back(std::forward<PasswordsT>(value)); return *this; }
92
94
97 inline const Aws::String& GetAccessString() const { return m_accessString; }
98 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
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>
102 CreateUserRequest& WithAccessString(AccessStringT&& value) { SetAccessString(std::forward<AccessStringT>(value)); return *this;}
104
106
109 inline bool GetNoPasswordRequired() const { return m_noPasswordRequired; }
110 inline bool NoPasswordRequiredHasBeenSet() const { return m_noPasswordRequiredHasBeenSet; }
111 inline void SetNoPasswordRequired(bool value) { m_noPasswordRequiredHasBeenSet = true; m_noPasswordRequired = value; }
112 inline CreateUserRequest& WithNoPasswordRequired(bool value) { SetNoPasswordRequired(value); return *this;}
114
116
120 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
125 CreateUserRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
126 template<typename TagsT = Tag>
127 CreateUserRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
129
131
134 inline const AuthenticationMode& GetAuthenticationMode() const { return m_authenticationMode; }
135 inline bool AuthenticationModeHasBeenSet() const { return m_authenticationModeHasBeenSet; }
136 template<typename AuthenticationModeT = AuthenticationMode>
137 void SetAuthenticationMode(AuthenticationModeT&& value) { m_authenticationModeHasBeenSet = true; m_authenticationMode = std::forward<AuthenticationModeT>(value); }
138 template<typename AuthenticationModeT = AuthenticationMode>
139 CreateUserRequest& WithAuthenticationMode(AuthenticationModeT&& value) { SetAuthenticationMode(std::forward<AuthenticationModeT>(value)); return *this;}
141 private:
142
143 Aws::String m_userId;
144 bool m_userIdHasBeenSet = false;
145
146 Aws::String m_userName;
147 bool m_userNameHasBeenSet = false;
148
149 Aws::String m_engine;
150 bool m_engineHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_passwords;
153 bool m_passwordsHasBeenSet = false;
154
155 Aws::String m_accessString;
156 bool m_accessStringHasBeenSet = false;
157
158 bool m_noPasswordRequired{false};
159 bool m_noPasswordRequiredHasBeenSet = false;
160
161 Aws::Vector<Tag> m_tags;
162 bool m_tagsHasBeenSet = false;
163
164 AuthenticationMode m_authenticationMode;
165 bool m_authenticationModeHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace ElastiCache
170} // 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)
const Aws::String & GetAccessString() const
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