AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
49 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
50 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
51 inline CreateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
52 inline CreateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
53 inline CreateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
55
57
60 inline const Aws::String& GetUserName() const{ return m_userName; }
61 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
62 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
63 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
64 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
65 inline CreateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
66 inline CreateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
67 inline CreateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
69
71
74 inline const Aws::String& GetEngine() const{ return m_engine; }
75 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
76 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
77 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
78 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
79 inline CreateUserRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
80 inline CreateUserRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
81 inline CreateUserRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
83
85
89 inline const Aws::Vector<Aws::String>& GetPasswords() const{ return m_passwords; }
90 inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; }
91 inline void SetPasswords(const Aws::Vector<Aws::String>& value) { m_passwordsHasBeenSet = true; m_passwords = value; }
92 inline void SetPasswords(Aws::Vector<Aws::String>&& value) { m_passwordsHasBeenSet = true; m_passwords = std::move(value); }
93 inline CreateUserRequest& WithPasswords(const Aws::Vector<Aws::String>& value) { SetPasswords(value); return *this;}
94 inline CreateUserRequest& WithPasswords(Aws::Vector<Aws::String>&& value) { SetPasswords(std::move(value)); return *this;}
95 inline CreateUserRequest& AddPasswords(const Aws::String& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; }
96 inline CreateUserRequest& AddPasswords(Aws::String&& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(std::move(value)); return *this; }
97 inline CreateUserRequest& AddPasswords(const char* value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; }
99
101
104 inline const Aws::String& GetAccessString() const{ return m_accessString; }
105 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
106 inline void SetAccessString(const Aws::String& value) { m_accessStringHasBeenSet = true; m_accessString = value; }
107 inline void SetAccessString(Aws::String&& value) { m_accessStringHasBeenSet = true; m_accessString = std::move(value); }
108 inline void SetAccessString(const char* value) { m_accessStringHasBeenSet = true; m_accessString.assign(value); }
109 inline CreateUserRequest& WithAccessString(const Aws::String& value) { SetAccessString(value); return *this;}
110 inline CreateUserRequest& WithAccessString(Aws::String&& value) { SetAccessString(std::move(value)); return *this;}
111 inline CreateUserRequest& WithAccessString(const char* value) { SetAccessString(value); return *this;}
113
115
118 inline bool GetNoPasswordRequired() const{ return m_noPasswordRequired; }
119 inline bool NoPasswordRequiredHasBeenSet() const { return m_noPasswordRequiredHasBeenSet; }
120 inline void SetNoPasswordRequired(bool value) { m_noPasswordRequiredHasBeenSet = true; m_noPasswordRequired = value; }
121 inline CreateUserRequest& WithNoPasswordRequired(bool value) { SetNoPasswordRequired(value); return *this;}
123
125
129 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
133 inline CreateUserRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
134 inline CreateUserRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
135 inline CreateUserRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
136 inline CreateUserRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
138
140
143 inline const AuthenticationMode& GetAuthenticationMode() const{ return m_authenticationMode; }
144 inline bool AuthenticationModeHasBeenSet() const { return m_authenticationModeHasBeenSet; }
145 inline void SetAuthenticationMode(const AuthenticationMode& value) { m_authenticationModeHasBeenSet = true; m_authenticationMode = value; }
146 inline void SetAuthenticationMode(AuthenticationMode&& value) { m_authenticationModeHasBeenSet = true; m_authenticationMode = std::move(value); }
148 inline CreateUserRequest& WithAuthenticationMode(AuthenticationMode&& value) { SetAuthenticationMode(std::move(value)); return *this;}
150 private:
151
152 Aws::String m_userId;
153 bool m_userIdHasBeenSet = false;
154
155 Aws::String m_userName;
156 bool m_userNameHasBeenSet = false;
157
158 Aws::String m_engine;
159 bool m_engineHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_passwords;
162 bool m_passwordsHasBeenSet = false;
163
164 Aws::String m_accessString;
165 bool m_accessStringHasBeenSet = false;
166
167 bool m_noPasswordRequired;
168 bool m_noPasswordRequiredHasBeenSet = false;
169
170 Aws::Vector<Tag> m_tags;
171 bool m_tagsHasBeenSet = false;
172
173 AuthenticationMode m_authenticationMode;
174 bool m_authenticationModeHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace ElastiCache
179} // namespace Aws
CreateUserRequest & WithNoPasswordRequired(bool value)
CreateUserRequest & WithEngine(const char *value)
void SetEngine(const Aws::String &value)
CreateUserRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateUserRequest & WithPasswords(Aws::Vector< Aws::String > &&value)
CreateUserRequest & WithAuthenticationMode(const AuthenticationMode &value)
CreateUserRequest & WithUserId(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetAuthenticationMode(AuthenticationMode &&value)
CreateUserRequest & WithUserName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetPasswords() const
CreateUserRequest & WithUserId(const Aws::String &value)
CreateUserRequest & AddPasswords(const char *value)
const Aws::Vector< Tag > & GetTags() const
CreateUserRequest & WithAuthenticationMode(AuthenticationMode &&value)
CreateUserRequest & WithAccessString(const Aws::String &value)
CreateUserRequest & WithEngine(Aws::String &&value)
void SetAuthenticationMode(const AuthenticationMode &value)
void SetPasswords(const Aws::Vector< Aws::String > &value)
CreateUserRequest & WithAccessString(const char *value)
void SetUserName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateUserRequest & WithEngine(const Aws::String &value)
CreateUserRequest & WithTags(Aws::Vector< Tag > &&value)
void SetUserId(const Aws::String &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateUserRequest & WithUserName(Aws::String &&value)
CreateUserRequest & AddPasswords(Aws::String &&value)
CreateUserRequest & AddTags(const Tag &value)
CreateUserRequest & AddTags(Tag &&value)
CreateUserRequest & AddPasswords(const Aws::String &value)
CreateUserRequest & WithPasswords(const Aws::Vector< Aws::String > &value)
CreateUserRequest & WithUserName(const char *value)
const AuthenticationMode & GetAuthenticationMode() const
void SetAccessString(const Aws::String &value)
CreateUserRequest & WithAccessString(Aws::String &&value)
void SetPasswords(Aws::Vector< Aws::String > &&value)
CreateUserRequest & WithUserId(Aws::String &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector