AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateUserGroupRequest.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/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICACHE_API CreateUserGroupRequest() = default;
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 "CreateUserGroup"; }
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& GetUserGroupId() const { return m_userGroupId; }
46 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
47 template<typename UserGroupIdT = Aws::String>
48 void SetUserGroupId(UserGroupIdT&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::forward<UserGroupIdT>(value); }
49 template<typename UserGroupIdT = Aws::String>
50 CreateUserGroupRequest& WithUserGroupId(UserGroupIdT&& value) { SetUserGroupId(std::forward<UserGroupIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetEngine() const { return m_engine; }
58 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
59 template<typename EngineT = Aws::String>
60 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
61 template<typename EngineT = Aws::String>
62 CreateUserGroupRequest& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
70 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
71 template<typename UserIdsT = Aws::Vector<Aws::String>>
72 void SetUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds = std::forward<UserIdsT>(value); }
73 template<typename UserIdsT = Aws::Vector<Aws::String>>
74 CreateUserGroupRequest& WithUserIds(UserIdsT&& value) { SetUserIds(std::forward<UserIdsT>(value)); return *this;}
75 template<typename UserIdsT = Aws::String>
76 CreateUserGroupRequest& AddUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds.emplace_back(std::forward<UserIdsT>(value)); return *this; }
78
80
85 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template<typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
89 template<typename TagsT = Aws::Vector<Tag>>
90 CreateUserGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
91 template<typename TagsT = Tag>
92 CreateUserGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
94 private:
95
96 Aws::String m_userGroupId;
97 bool m_userGroupIdHasBeenSet = false;
98
99 Aws::String m_engine;
100 bool m_engineHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_userIds;
103 bool m_userIdsHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ElastiCache
111} // 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