AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateUserGroupRequest.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/elasticache/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
22 public:
23 AWS_ELASTICACHE_API CreateUserGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateUserGroup"; }
30
31 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
42 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
43 template <typename UserGroupIdT = Aws::String>
44 void SetUserGroupId(UserGroupIdT&& value) {
45 m_userGroupIdHasBeenSet = true;
46 m_userGroupId = std::forward<UserGroupIdT>(value);
47 }
48 template <typename UserGroupIdT = Aws::String>
49 CreateUserGroupRequest& WithUserGroupId(UserGroupIdT&& value) {
50 SetUserGroupId(std::forward<UserGroupIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEngine() const { return m_engine; }
60 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
61 template <typename EngineT = Aws::String>
62 void SetEngine(EngineT&& value) {
63 m_engineHasBeenSet = true;
64 m_engine = std::forward<EngineT>(value);
65 }
66 template <typename EngineT = Aws::String>
68 SetEngine(std::forward<EngineT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
78 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
79 template <typename UserIdsT = Aws::Vector<Aws::String>>
80 void SetUserIds(UserIdsT&& value) {
81 m_userIdsHasBeenSet = true;
82 m_userIds = std::forward<UserIdsT>(value);
83 }
84 template <typename UserIdsT = Aws::Vector<Aws::String>>
86 SetUserIds(std::forward<UserIdsT>(value));
87 return *this;
88 }
89 template <typename UserIdsT = Aws::String>
91 m_userIdsHasBeenSet = true;
92 m_userIds.emplace_back(std::forward<UserIdsT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Vector<Tag>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Vector<Tag>>
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsT = Tag>
117 m_tagsHasBeenSet = true;
118 m_tags.emplace_back(std::forward<TagsT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_userGroupId;
124
125 Aws::String m_engine;
126
127 Aws::Vector<Aws::String> m_userIds;
128
129 Aws::Vector<Tag> m_tags;
130 bool m_userGroupIdHasBeenSet = false;
131 bool m_engineHasBeenSet = false;
132 bool m_userIdsHasBeenSet = false;
133 bool m_tagsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace ElastiCache
138} // namespace Aws
AWS_ELASTICACHE_API CreateUserGroupRequest()=default
const Aws::Vector< Aws::String > & GetUserIds() const
CreateUserGroupRequest & WithUserIds(UserIdsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateUserGroupRequest & AddTags(TagsT &&value)
CreateUserGroupRequest & WithUserGroupId(UserGroupIdT &&value)
CreateUserGroupRequest & WithEngine(EngineT &&value)
CreateUserGroupRequest & WithTags(TagsT &&value)
CreateUserGroupRequest & AddUserIds(UserIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector