AWS SDK for C++  1.9.109
AWS SDK for C++
CreateUserGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElastiCache
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetUserGroupId() const{ return m_userGroupId; }
45 
49  inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
50 
54  inline void SetUserGroupId(const Aws::String& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = value; }
55 
59  inline void SetUserGroupId(Aws::String&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::move(value); }
60 
64  inline void SetUserGroupId(const char* value) { m_userGroupIdHasBeenSet = true; m_userGroupId.assign(value); }
65 
69  inline CreateUserGroupRequest& WithUserGroupId(const Aws::String& value) { SetUserGroupId(value); return *this;}
70 
74  inline CreateUserGroupRequest& WithUserGroupId(Aws::String&& value) { SetUserGroupId(std::move(value)); return *this;}
75 
79  inline CreateUserGroupRequest& WithUserGroupId(const char* value) { SetUserGroupId(value); return *this;}
80 
81 
85  inline const Aws::String& GetEngine() const{ return m_engine; }
86 
90  inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
91 
95  inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
96 
100  inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
101 
105  inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
106 
110  inline CreateUserGroupRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
111 
115  inline CreateUserGroupRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
116 
120  inline CreateUserGroupRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
121 
122 
126  inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
127 
131  inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
132 
136  inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
137 
141  inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
142 
146  inline CreateUserGroupRequest& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
147 
151  inline CreateUserGroupRequest& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
152 
156  inline CreateUserGroupRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
157 
161  inline CreateUserGroupRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
162 
166  inline CreateUserGroupRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
167 
168 
173  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
174 
179  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 
185  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
186 
191  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
192 
197  inline CreateUserGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
198 
203  inline CreateUserGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
204 
209  inline CreateUserGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
210 
215  inline CreateUserGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
216 
217  private:
218 
219  Aws::String m_userGroupId;
220  bool m_userGroupIdHasBeenSet;
221 
222  Aws::String m_engine;
223  bool m_engineHasBeenSet;
224 
225  Aws::Vector<Aws::String> m_userIds;
226  bool m_userIdsHasBeenSet;
227 
228  Aws::Vector<Tag> m_tags;
229  bool m_tagsHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace ElastiCache
234 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::ElastiCache::Model::CreateUserGroupRequest::EngineHasBeenSet
bool EngineHasBeenSet() const
Definition: CreateUserGroupRequest.h:90
Aws::ElastiCache::Model::CreateUserGroupRequest::WithUserGroupId
CreateUserGroupRequest & WithUserGroupId(const char *value)
Definition: CreateUserGroupRequest.h:79
Aws::ElastiCache::Model::CreateUserGroupRequest::WithUserIds
CreateUserGroupRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
Definition: CreateUserGroupRequest.h:146
Aws::ElastiCache::Model::CreateUserGroupRequest::WithEngine
CreateUserGroupRequest & WithEngine(Aws::String &&value)
Definition: CreateUserGroupRequest.h:115
Aws::ElastiCache::Model::CreateUserGroupRequest::WithUserIds
CreateUserGroupRequest & WithUserIds(Aws::Vector< Aws::String > &&value)
Definition: CreateUserGroupRequest.h:151
Aws::ElastiCache::Model::CreateUserGroupRequest::SetEngine
void SetEngine(Aws::String &&value)
Definition: CreateUserGroupRequest.h:100
Aws::ElastiCache::Model::CreateUserGroupRequest::WithTags
CreateUserGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateUserGroupRequest.h:203
Aws::ElastiCache::Model::CreateUserGroupRequest::AddUserIds
CreateUserGroupRequest & AddUserIds(Aws::String &&value)
Definition: CreateUserGroupRequest.h:161
Aws::ElastiCache::Model::CreateUserGroupRequest::WithUserGroupId
CreateUserGroupRequest & WithUserGroupId(Aws::String &&value)
Definition: CreateUserGroupRequest.h:74
Aws::ElastiCache::Model::CreateUserGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
ElastiCacheRequest.h
Aws::ElastiCache::Model::CreateUserGroupRequest::SetUserIds
void SetUserIds(Aws::Vector< Aws::String > &&value)
Definition: CreateUserGroupRequest.h:141
Aws::ElastiCache::Model::CreateUserGroupRequest
Definition: CreateUserGroupRequest.h:24
Aws::ElastiCache::Model::CreateUserGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateUserGroupRequest.h:173
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElastiCache::Model::CreateUserGroupRequest::GetEngine
const Aws::String & GetEngine() const
Definition: CreateUserGroupRequest.h:85
Aws::ElastiCache::Model::Tag
Definition: Tag.h:37
ElastiCache_EXPORTS.h
AWSVector.h
Aws::ElastiCache::Model::CreateUserGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateUserGroupRequest.h:185
Aws::ElastiCache::Model::CreateUserGroupRequest::GetUserGroupId
const Aws::String & GetUserGroupId() const
Definition: CreateUserGroupRequest.h:44
Aws::ElastiCache::Model::CreateUserGroupRequest::GetUserIds
const Aws::Vector< Aws::String > & GetUserIds() const
Definition: CreateUserGroupRequest.h:126
Aws::ElastiCache::Model::CreateUserGroupRequest::AddTags
CreateUserGroupRequest & AddTags(Tag &&value)
Definition: CreateUserGroupRequest.h:215
Tag.h
Aws::ElastiCache::Model::CreateUserGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateUserGroupRequest.h:32
Aws::ElastiCache::Model::CreateUserGroupRequest::SetUserGroupId
void SetUserGroupId(const char *value)
Definition: CreateUserGroupRequest.h:64
Aws::ElastiCache::Model::CreateUserGroupRequest::SetEngine
void SetEngine(const char *value)
Definition: CreateUserGroupRequest.h:105
Aws::ElastiCache::Model::CreateUserGroupRequest::SetUserIds
void SetUserIds(const Aws::Vector< Aws::String > &value)
Definition: CreateUserGroupRequest.h:136
Aws::ElastiCache::Model::CreateUserGroupRequest::AddUserIds
CreateUserGroupRequest & AddUserIds(const Aws::String &value)
Definition: CreateUserGroupRequest.h:156
Aws::ElastiCache::Model::CreateUserGroupRequest::AddUserIds
CreateUserGroupRequest & AddUserIds(const char *value)
Definition: CreateUserGroupRequest.h:166
Aws::ElastiCache::Model::CreateUserGroupRequest::SetEngine
void SetEngine(const Aws::String &value)
Definition: CreateUserGroupRequest.h:95
Aws::ElastiCache::Model::CreateUserGroupRequest::SetUserGroupId
void SetUserGroupId(Aws::String &&value)
Definition: CreateUserGroupRequest.h:59
Aws::ElastiCache::Model::CreateUserGroupRequest::WithTags
CreateUserGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateUserGroupRequest.h:197
Aws::ElastiCache::Model::CreateUserGroupRequest::AddTags
CreateUserGroupRequest & AddTags(const Tag &value)
Definition: CreateUserGroupRequest.h:209
AWSString.h
Aws::ElastiCache::Model::CreateUserGroupRequest::SetUserGroupId
void SetUserGroupId(const Aws::String &value)
Definition: CreateUserGroupRequest.h:54
Aws::ElastiCache::Model::CreateUserGroupRequest::WithUserGroupId
CreateUserGroupRequest & WithUserGroupId(const Aws::String &value)
Definition: CreateUserGroupRequest.h:69
Aws::ElastiCache::Model::CreateUserGroupRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_ELASTICACHE_API
#define AWS_ELASTICACHE_API
Definition: ElastiCache_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::ElastiCache::Model::CreateUserGroupRequest::WithEngine
CreateUserGroupRequest & WithEngine(const char *value)
Definition: CreateUserGroupRequest.h:120
Aws::ElastiCache::Model::CreateUserGroupRequest::CreateUserGroupRequest
CreateUserGroupRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElastiCache::ElastiCacheRequest
Definition: ElastiCacheRequest.h:17
Aws::ElastiCache::Model::CreateUserGroupRequest::WithEngine
CreateUserGroupRequest & WithEngine(const Aws::String &value)
Definition: CreateUserGroupRequest.h:110
Aws::ElastiCache::Model::CreateUserGroupRequest::UserGroupIdHasBeenSet
bool UserGroupIdHasBeenSet() const
Definition: CreateUserGroupRequest.h:49
Aws::ElastiCache::Model::CreateUserGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateUserGroupRequest.h:191
Aws::ElastiCache::Model::CreateUserGroupRequest::UserIdsHasBeenSet
bool UserIdsHasBeenSet() const
Definition: CreateUserGroupRequest.h:131
Aws::ElastiCache::Model::CreateUserGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateUserGroupRequest.h:179