AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/memorydb/MemoryDBRequest.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/AuthenticationMode.h>
12#include <aws/memorydb/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MemoryDB {
18namespace Model {
19
23 public:
24 AWS_MEMORYDB_API CreateUserRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
31
32 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetUserName() const { return m_userName; }
42 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
43 template <typename UserNameT = Aws::String>
44 void SetUserName(UserNameT&& value) {
45 m_userNameHasBeenSet = true;
46 m_userName = std::forward<UserNameT>(value);
47 }
48 template <typename UserNameT = Aws::String>
49 CreateUserRequest& WithUserName(UserNameT&& value) {
50 SetUserName(std::forward<UserNameT>(value));
51 return *this;
52 }
54
56
60 inline const AuthenticationMode& GetAuthenticationMode() const { return m_authenticationMode; }
61 inline bool AuthenticationModeHasBeenSet() const { return m_authenticationModeHasBeenSet; }
62 template <typename AuthenticationModeT = AuthenticationMode>
63 void SetAuthenticationMode(AuthenticationModeT&& value) {
64 m_authenticationModeHasBeenSet = true;
65 m_authenticationMode = std::forward<AuthenticationModeT>(value);
66 }
67 template <typename AuthenticationModeT = AuthenticationMode>
68 CreateUserRequest& WithAuthenticationMode(AuthenticationModeT&& value) {
69 SetAuthenticationMode(std::forward<AuthenticationModeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAccessString() const { return m_accessString; }
79 inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; }
80 template <typename AccessStringT = Aws::String>
81 void SetAccessString(AccessStringT&& value) {
82 m_accessStringHasBeenSet = true;
83 m_accessString = std::forward<AccessStringT>(value);
84 }
85 template <typename AccessStringT = Aws::String>
86 CreateUserRequest& WithAccessString(AccessStringT&& value) {
87 SetAccessString(std::forward<AccessStringT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template <typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags = std::forward<TagsT>(value);
103 }
104 template <typename TagsT = Aws::Vector<Tag>>
105 CreateUserRequest& WithTags(TagsT&& value) {
106 SetTags(std::forward<TagsT>(value));
107 return *this;
108 }
109 template <typename TagsT = Tag>
110 CreateUserRequest& AddTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags.emplace_back(std::forward<TagsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_userName;
118
119 AuthenticationMode m_authenticationMode;
120
121 Aws::String m_accessString;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_userNameHasBeenSet = false;
125 bool m_authenticationModeHasBeenSet = false;
126 bool m_accessStringHasBeenSet = false;
127 bool m_tagsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace MemoryDB
132} // namespace Aws
CreateUserRequest & AddTags(TagsT &&value)
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserRequest & WithAccessString(AccessStringT &&value)
AWS_MEMORYDB_API Aws::String SerializePayload() const override
void SetAccessString(AccessStringT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAccessString() const
const Aws::String & GetUserName() const
AWS_MEMORYDB_API CreateUserRequest()=default
void SetAuthenticationMode(AuthenticationModeT &&value)
CreateUserRequest & WithUserName(UserNameT &&value)
const AuthenticationMode & GetAuthenticationMode() const
const Aws::Vector< Tag > & GetTags() const
CreateUserRequest & WithAuthenticationMode(AuthenticationModeT &&value)
CreateUserRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector