AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyUserRequest.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 <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICACHE_API ModifyUserRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyUser"; }
33
34 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetUserId() const{ return m_userId; }
46 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
47 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
48 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
49 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
50 inline ModifyUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
51 inline ModifyUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
52 inline ModifyUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
54
56
59 inline const Aws::String& GetAccessString() const{ return m_accessString; }
60 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
61 inline void SetAccessString(const Aws::String& value) { m_accessStringHasBeenSet = true; m_accessString = value; }
62 inline void SetAccessString(Aws::String&& value) { m_accessStringHasBeenSet = true; m_accessString = std::move(value); }
63 inline void SetAccessString(const char* value) { m_accessStringHasBeenSet = true; m_accessString.assign(value); }
64 inline ModifyUserRequest& WithAccessString(const Aws::String& value) { SetAccessString(value); return *this;}
65 inline ModifyUserRequest& WithAccessString(Aws::String&& value) { SetAccessString(std::move(value)); return *this;}
66 inline ModifyUserRequest& WithAccessString(const char* value) { SetAccessString(value); return *this;}
68
70
73 inline const Aws::String& GetAppendAccessString() const{ return m_appendAccessString; }
74 inline bool AppendAccessStringHasBeenSet() const { return m_appendAccessStringHasBeenSet; }
75 inline void SetAppendAccessString(const Aws::String& value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString = value; }
76 inline void SetAppendAccessString(Aws::String&& value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString = std::move(value); }
77 inline void SetAppendAccessString(const char* value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString.assign(value); }
78 inline ModifyUserRequest& WithAppendAccessString(const Aws::String& value) { SetAppendAccessString(value); return *this;}
79 inline ModifyUserRequest& WithAppendAccessString(Aws::String&& value) { SetAppendAccessString(std::move(value)); return *this;}
80 inline ModifyUserRequest& WithAppendAccessString(const char* value) { SetAppendAccessString(value); return *this;}
82
84
87 inline const Aws::Vector<Aws::String>& GetPasswords() const{ return m_passwords; }
88 inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; }
89 inline void SetPasswords(const Aws::Vector<Aws::String>& value) { m_passwordsHasBeenSet = true; m_passwords = value; }
90 inline void SetPasswords(Aws::Vector<Aws::String>&& value) { m_passwordsHasBeenSet = true; m_passwords = std::move(value); }
91 inline ModifyUserRequest& WithPasswords(const Aws::Vector<Aws::String>& value) { SetPasswords(value); return *this;}
92 inline ModifyUserRequest& WithPasswords(Aws::Vector<Aws::String>&& value) { SetPasswords(std::move(value)); return *this;}
93 inline ModifyUserRequest& AddPasswords(const Aws::String& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; }
94 inline ModifyUserRequest& AddPasswords(Aws::String&& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(std::move(value)); return *this; }
95 inline ModifyUserRequest& AddPasswords(const char* value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; }
97
99
102 inline bool GetNoPasswordRequired() const{ return m_noPasswordRequired; }
103 inline bool NoPasswordRequiredHasBeenSet() const { return m_noPasswordRequiredHasBeenSet; }
104 inline void SetNoPasswordRequired(bool value) { m_noPasswordRequiredHasBeenSet = true; m_noPasswordRequired = value; }
105 inline ModifyUserRequest& WithNoPasswordRequired(bool value) { SetNoPasswordRequired(value); return *this;}
107
109
112 inline const AuthenticationMode& GetAuthenticationMode() const{ return m_authenticationMode; }
113 inline bool AuthenticationModeHasBeenSet() const { return m_authenticationModeHasBeenSet; }
114 inline void SetAuthenticationMode(const AuthenticationMode& value) { m_authenticationModeHasBeenSet = true; m_authenticationMode = value; }
115 inline void SetAuthenticationMode(AuthenticationMode&& value) { m_authenticationModeHasBeenSet = true; m_authenticationMode = std::move(value); }
117 inline ModifyUserRequest& WithAuthenticationMode(AuthenticationMode&& value) { SetAuthenticationMode(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_userId;
122 bool m_userIdHasBeenSet = false;
123
124 Aws::String m_accessString;
125 bool m_accessStringHasBeenSet = false;
126
127 Aws::String m_appendAccessString;
128 bool m_appendAccessStringHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_passwords;
131 bool m_passwordsHasBeenSet = false;
132
133 bool m_noPasswordRequired;
134 bool m_noPasswordRequiredHasBeenSet = false;
135
136 AuthenticationMode m_authenticationMode;
137 bool m_authenticationModeHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace ElastiCache
142} // namespace Aws
void SetPasswords(Aws::Vector< Aws::String > &&value)
ModifyUserRequest & WithAccessString(const char *value)
void SetAppendAccessString(const Aws::String &value)
ModifyUserRequest & WithUserId(const char *value)
ModifyUserRequest & WithPasswords(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
void SetPasswords(const Aws::Vector< Aws::String > &value)
ModifyUserRequest & WithUserId(const Aws::String &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyUserRequest & WithUserId(Aws::String &&value)
const Aws::String & GetAppendAccessString() const
ModifyUserRequest & WithAppendAccessString(const Aws::String &value)
ModifyUserRequest & AddPasswords(const Aws::String &value)
ModifyUserRequest & WithAccessString(const Aws::String &value)
void SetAppendAccessString(Aws::String &&value)
ModifyUserRequest & WithAppendAccessString(const char *value)
const Aws::Vector< Aws::String > & GetPasswords() const
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
ModifyUserRequest & WithAppendAccessString(Aws::String &&value)
const Aws::String & GetAccessString() const
ModifyUserRequest & WithAuthenticationMode(const AuthenticationMode &value)
void SetAuthenticationMode(const AuthenticationMode &value)
ModifyUserRequest & AddPasswords(const char *value)
ModifyUserRequest & WithNoPasswordRequired(bool value)
void SetUserId(const Aws::String &value)
void SetAccessString(const Aws::String &value)
ModifyUserRequest & WithPasswords(const Aws::Vector< Aws::String > &value)
void SetAuthenticationMode(AuthenticationMode &&value)
ModifyUserRequest & AddPasswords(Aws::String &&value)
const AuthenticationMode & GetAuthenticationMode() const
ModifyUserRequest & WithAuthenticationMode(AuthenticationMode &&value)
ModifyUserRequest & WithAccessString(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector