AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/memorydb/MemoryDBRequest.h>
9#include <aws/memorydb/MemoryDB_EXPORTS.h>
10#include <aws/memorydb/model/AuthenticationMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MemoryDB {
16namespace Model {
17
21 public:
22 AWS_MEMORYDB_API UpdateUserRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateUser"; }
29
30 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetUserName() const { return m_userName; }
39 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
40 template <typename UserNameT = Aws::String>
41 void SetUserName(UserNameT&& value) {
42 m_userNameHasBeenSet = true;
43 m_userName = std::forward<UserNameT>(value);
44 }
45 template <typename UserNameT = Aws::String>
46 UpdateUserRequest& WithUserName(UserNameT&& value) {
47 SetUserName(std::forward<UserNameT>(value));
48 return *this;
49 }
51
53
57 inline const AuthenticationMode& GetAuthenticationMode() const { return m_authenticationMode; }
58 inline bool AuthenticationModeHasBeenSet() const { return m_authenticationModeHasBeenSet; }
59 template <typename AuthenticationModeT = AuthenticationMode>
60 void SetAuthenticationMode(AuthenticationModeT&& value) {
61 m_authenticationModeHasBeenSet = true;
62 m_authenticationMode = std::forward<AuthenticationModeT>(value);
63 }
64 template <typename AuthenticationModeT = AuthenticationMode>
65 UpdateUserRequest& WithAuthenticationMode(AuthenticationModeT&& value) {
66 SetAuthenticationMode(std::forward<AuthenticationModeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAccessString() const { return m_accessString; }
76 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
77 template <typename AccessStringT = Aws::String>
78 void SetAccessString(AccessStringT&& value) {
79 m_accessStringHasBeenSet = true;
80 m_accessString = std::forward<AccessStringT>(value);
81 }
82 template <typename AccessStringT = Aws::String>
83 UpdateUserRequest& WithAccessString(AccessStringT&& value) {
84 SetAccessString(std::forward<AccessStringT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_userName;
90
91 AuthenticationMode m_authenticationMode;
92
93 Aws::String m_accessString;
94 bool m_userNameHasBeenSet = false;
95 bool m_authenticationModeHasBeenSet = false;
96 bool m_accessStringHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace MemoryDB
101} // namespace Aws
void SetAuthenticationMode(AuthenticationModeT &&value)
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetUserName() const
UpdateUserRequest & WithUserName(UserNameT &&value)
const AuthenticationMode & GetAuthenticationMode() const
UpdateUserRequest & WithAccessString(AccessStringT &&value)
void SetAccessString(AccessStringT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MEMORYDB_API UpdateUserRequest()=default
const Aws::String & GetAccessString() const
UpdateUserRequest & WithAuthenticationMode(AuthenticationModeT &&value)
AWS_MEMORYDB_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String