AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserGroupId(const Aws::String& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = value; }
48 inline void SetUserGroupId(Aws::String&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::move(value); }
49 inline void SetUserGroupId(const char* value) { m_userGroupIdHasBeenSet = true; m_userGroupId.assign(value); }
50 inline CreateUserGroupRequest& WithUserGroupId(const Aws::String& value) { SetUserGroupId(value); return *this;}
51 inline CreateUserGroupRequest& WithUserGroupId(Aws::String&& value) { SetUserGroupId(std::move(value)); return *this;}
52 inline CreateUserGroupRequest& WithUserGroupId(const char* value) { SetUserGroupId(value); return *this;}
54
56
59 inline const Aws::String& GetEngine() const{ return m_engine; }
60 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
61 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
62 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
63 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
64 inline CreateUserGroupRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
65 inline CreateUserGroupRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
66 inline CreateUserGroupRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
74 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
75 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
76 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
77 inline CreateUserGroupRequest& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
78 inline CreateUserGroupRequest& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
79 inline CreateUserGroupRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
80 inline CreateUserGroupRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
81 inline CreateUserGroupRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
83
85
90 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
94 inline CreateUserGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
95 inline CreateUserGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
96 inline CreateUserGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
97 inline CreateUserGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_userGroupId;
102 bool m_userGroupIdHasBeenSet = false;
103
104 Aws::String m_engine;
105 bool m_engineHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_userIds;
108 bool m_userIdsHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ElastiCache
116} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
CreateUserGroupRequest & AddUserIds(Aws::String &&value)
CreateUserGroupRequest & AddUserIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetUserIds() const
CreateUserGroupRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateUserGroupRequest & WithUserGroupId(const char *value)
CreateUserGroupRequest & AddTags(Tag &&value)
CreateUserGroupRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateUserGroupRequest & AddTags(const Tag &value)
CreateUserGroupRequest & AddUserIds(const char *value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateUserGroupRequest & WithUserGroupId(Aws::String &&value)
void SetUserIds(const Aws::Vector< Aws::String > &value)
CreateUserGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetUserIds(Aws::Vector< Aws::String > &&value)
CreateUserGroupRequest & WithEngine(const Aws::String &value)
CreateUserGroupRequest & WithUserIds(Aws::Vector< Aws::String > &&value)
CreateUserGroupRequest & WithUserGroupId(const Aws::String &value)
CreateUserGroupRequest & WithEngine(const char *value)
CreateUserGroupRequest & WithEngine(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector