AWS SDK for C++  1.9.40
AWS SDK for C++
ModifyUserRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElastiCache
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ModifyUser"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetUserId() const{ return m_userId; }
44 
48  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
49 
53  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
54 
58  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
59 
63  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
64 
68  inline ModifyUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
69 
73  inline ModifyUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
74 
78  inline ModifyUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
79 
80 
84  inline const Aws::String& GetAccessString() const{ return m_accessString; }
85 
89  inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
90 
94  inline void SetAccessString(const Aws::String& value) { m_accessStringHasBeenSet = true; m_accessString = value; }
95 
99  inline void SetAccessString(Aws::String&& value) { m_accessStringHasBeenSet = true; m_accessString = std::move(value); }
100 
104  inline void SetAccessString(const char* value) { m_accessStringHasBeenSet = true; m_accessString.assign(value); }
105 
109  inline ModifyUserRequest& WithAccessString(const Aws::String& value) { SetAccessString(value); return *this;}
110 
114  inline ModifyUserRequest& WithAccessString(Aws::String&& value) { SetAccessString(std::move(value)); return *this;}
115 
119  inline ModifyUserRequest& WithAccessString(const char* value) { SetAccessString(value); return *this;}
120 
121 
125  inline const Aws::String& GetAppendAccessString() const{ return m_appendAccessString; }
126 
130  inline bool AppendAccessStringHasBeenSet() const { return m_appendAccessStringHasBeenSet; }
131 
135  inline void SetAppendAccessString(const Aws::String& value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString = value; }
136 
140  inline void SetAppendAccessString(Aws::String&& value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString = std::move(value); }
141 
145  inline void SetAppendAccessString(const char* value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString.assign(value); }
146 
150  inline ModifyUserRequest& WithAppendAccessString(const Aws::String& value) { SetAppendAccessString(value); return *this;}
151 
155  inline ModifyUserRequest& WithAppendAccessString(Aws::String&& value) { SetAppendAccessString(std::move(value)); return *this;}
156 
160  inline ModifyUserRequest& WithAppendAccessString(const char* value) { SetAppendAccessString(value); return *this;}
161 
162 
166  inline const Aws::Vector<Aws::String>& GetPasswords() const{ return m_passwords; }
167 
171  inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; }
172 
176  inline void SetPasswords(const Aws::Vector<Aws::String>& value) { m_passwordsHasBeenSet = true; m_passwords = value; }
177 
181  inline void SetPasswords(Aws::Vector<Aws::String>&& value) { m_passwordsHasBeenSet = true; m_passwords = std::move(value); }
182 
186  inline ModifyUserRequest& WithPasswords(const Aws::Vector<Aws::String>& value) { SetPasswords(value); return *this;}
187 
191  inline ModifyUserRequest& WithPasswords(Aws::Vector<Aws::String>&& value) { SetPasswords(std::move(value)); return *this;}
192 
196  inline ModifyUserRequest& AddPasswords(const Aws::String& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; }
197 
201  inline ModifyUserRequest& AddPasswords(Aws::String&& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(std::move(value)); return *this; }
202 
206  inline ModifyUserRequest& AddPasswords(const char* value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; }
207 
208 
212  inline bool GetNoPasswordRequired() const{ return m_noPasswordRequired; }
213 
217  inline bool NoPasswordRequiredHasBeenSet() const { return m_noPasswordRequiredHasBeenSet; }
218 
222  inline void SetNoPasswordRequired(bool value) { m_noPasswordRequiredHasBeenSet = true; m_noPasswordRequired = value; }
223 
227  inline ModifyUserRequest& WithNoPasswordRequired(bool value) { SetNoPasswordRequired(value); return *this;}
228 
229  private:
230 
231  Aws::String m_userId;
232  bool m_userIdHasBeenSet;
233 
234  Aws::String m_accessString;
235  bool m_accessStringHasBeenSet;
236 
237  Aws::String m_appendAccessString;
238  bool m_appendAccessStringHasBeenSet;
239 
240  Aws::Vector<Aws::String> m_passwords;
241  bool m_passwordsHasBeenSet;
242 
243  bool m_noPasswordRequired;
244  bool m_noPasswordRequiredHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace ElastiCache
249 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::ElastiCache::Model::ModifyUserRequest::WithAccessString
ModifyUserRequest & WithAccessString(const Aws::String &value)
Definition: ModifyUserRequest.h:109
Aws::ElastiCache::Model::ModifyUserRequest::AddPasswords
ModifyUserRequest & AddPasswords(const char *value)
Definition: ModifyUserRequest.h:206
Aws::ElastiCache::Model::ModifyUserRequest::SetNoPasswordRequired
void SetNoPasswordRequired(bool value)
Definition: ModifyUserRequest.h:222
Aws::ElastiCache::Model::ModifyUserRequest::SetAccessString
void SetAccessString(Aws::String &&value)
Definition: ModifyUserRequest.h:99
Aws::ElastiCache::Model::ModifyUserRequest::AddPasswords
ModifyUserRequest & AddPasswords(const Aws::String &value)
Definition: ModifyUserRequest.h:196
Aws::ElastiCache::Model::ModifyUserRequest::SetAppendAccessString
void SetAppendAccessString(const Aws::String &value)
Definition: ModifyUserRequest.h:135
Aws::ElastiCache::Model::ModifyUserRequest::AccessStringHasBeenSet
bool AccessStringHasBeenSet() const
Definition: ModifyUserRequest.h:89
ElastiCacheRequest.h
Aws::ElastiCache::Model::ModifyUserRequest::WithUserId
ModifyUserRequest & WithUserId(const Aws::String &value)
Definition: ModifyUserRequest.h:68
Aws::ElastiCache::Model::ModifyUserRequest::GetAppendAccessString
const Aws::String & GetAppendAccessString() const
Definition: ModifyUserRequest.h:125
Aws::ElastiCache::Model::ModifyUserRequest::WithAppendAccessString
ModifyUserRequest & WithAppendAccessString(const char *value)
Definition: ModifyUserRequest.h:160
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ElastiCache_EXPORTS.h
AWSVector.h
Aws::ElastiCache::Model::ModifyUserRequest::GetNoPasswordRequired
bool GetNoPasswordRequired() const
Definition: ModifyUserRequest.h:212
Aws::ElastiCache::Model::ModifyUserRequest::SetPasswords
void SetPasswords(Aws::Vector< Aws::String > &&value)
Definition: ModifyUserRequest.h:181
Aws::ElastiCache::Model::ModifyUserRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyUserRequest.h:31
Aws::ElastiCache::Model::ModifyUserRequest::ModifyUserRequest
ModifyUserRequest()
Aws::ElastiCache::Model::ModifyUserRequest::SetAppendAccessString
void SetAppendAccessString(Aws::String &&value)
Definition: ModifyUserRequest.h:140
Aws::ElastiCache::Model::ModifyUserRequest::NoPasswordRequiredHasBeenSet
bool NoPasswordRequiredHasBeenSet() const
Definition: ModifyUserRequest.h:217
Aws::ElastiCache::Model::ModifyUserRequest::WithPasswords
ModifyUserRequest & WithPasswords(Aws::Vector< Aws::String > &&value)
Definition: ModifyUserRequest.h:191
Aws::ElastiCache::Model::ModifyUserRequest::GetPasswords
const Aws::Vector< Aws::String > & GetPasswords() const
Definition: ModifyUserRequest.h:166
Aws::ElastiCache::Model::ModifyUserRequest::GetAccessString
const Aws::String & GetAccessString() const
Definition: ModifyUserRequest.h:84
Aws::ElastiCache::Model::ModifyUserRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: ModifyUserRequest.h:58
Aws::ElastiCache::Model::ModifyUserRequest::WithUserId
ModifyUserRequest & WithUserId(const char *value)
Definition: ModifyUserRequest.h:78
Aws::ElastiCache::Model::ModifyUserRequest::SetUserId
void SetUserId(const char *value)
Definition: ModifyUserRequest.h:63
Aws::ElastiCache::Model::ModifyUserRequest::WithPasswords
ModifyUserRequest & WithPasswords(const Aws::Vector< Aws::String > &value)
Definition: ModifyUserRequest.h:186
Aws::ElastiCache::Model::ModifyUserRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
AWS_ELASTICACHE_API
#define AWS_ELASTICACHE_API
Definition: ElastiCache_EXPORTS.h:28
Aws::ElastiCache::Model::ModifyUserRequest::WithNoPasswordRequired
ModifyUserRequest & WithNoPasswordRequired(bool value)
Definition: ModifyUserRequest.h:227
Aws::ElastiCache::Model::ModifyUserRequest::WithAccessString
ModifyUserRequest & WithAccessString(const char *value)
Definition: ModifyUserRequest.h:119
Aws::ElastiCache::Model::ModifyUserRequest
Definition: ModifyUserRequest.h:23
Aws::ElastiCache::Model::ModifyUserRequest::SetPasswords
void SetPasswords(const Aws::Vector< Aws::String > &value)
Definition: ModifyUserRequest.h:176
Aws::ElastiCache::Model::ModifyUserRequest::SetAppendAccessString
void SetAppendAccessString(const char *value)
Definition: ModifyUserRequest.h:145
Aws::ElastiCache::Model::ModifyUserRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElastiCache::Model::ModifyUserRequest::SetAccessString
void SetAccessString(const char *value)
Definition: ModifyUserRequest.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::ElastiCache::Model::ModifyUserRequest::PasswordsHasBeenSet
bool PasswordsHasBeenSet() const
Definition: ModifyUserRequest.h:171
Aws::ElastiCache::Model::ModifyUserRequest::WithAppendAccessString
ModifyUserRequest & WithAppendAccessString(const Aws::String &value)
Definition: ModifyUserRequest.h:150
Aws::ElastiCache::Model::ModifyUserRequest::AddPasswords
ModifyUserRequest & AddPasswords(Aws::String &&value)
Definition: ModifyUserRequest.h:201
Aws::ElastiCache::Model::ModifyUserRequest::WithUserId
ModifyUserRequest & WithUserId(Aws::String &&value)
Definition: ModifyUserRequest.h:73
Aws::ElastiCache::Model::ModifyUserRequest::AppendAccessStringHasBeenSet
bool AppendAccessStringHasBeenSet() const
Definition: ModifyUserRequest.h:130
Aws::ElastiCache::Model::ModifyUserRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: ModifyUserRequest.h:48
Aws::ElastiCache::Model::ModifyUserRequest::WithAccessString
ModifyUserRequest & WithAccessString(Aws::String &&value)
Definition: ModifyUserRequest.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElastiCache::ElastiCacheRequest
Definition: ElastiCacheRequest.h:17
Aws::ElastiCache::Model::ModifyUserRequest::SetAccessString
void SetAccessString(const Aws::String &value)
Definition: ModifyUserRequest.h:94
Aws::ElastiCache::Model::ModifyUserRequest::WithAppendAccessString
ModifyUserRequest & WithAppendAccessString(Aws::String &&value)
Definition: ModifyUserRequest.h:155
Aws::ElastiCache::Model::ModifyUserRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: ModifyUserRequest.h:53
Aws::ElastiCache::Model::ModifyUserRequest::GetUserId
const Aws::String & GetUserId() const
Definition: ModifyUserRequest.h:43