AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyUserGroupRequest.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 <utility>
12
13namespace Aws
14{
15namespace ElastiCache
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ELASTICACHE_API ModifyUserGroupRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyUserGroup"; }
32
33 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetUserGroupId() const{ return m_userGroupId; }
45 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
46 inline void SetUserGroupId(const Aws::String& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = value; }
47 inline void SetUserGroupId(Aws::String&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::move(value); }
48 inline void SetUserGroupId(const char* value) { m_userGroupIdHasBeenSet = true; m_userGroupId.assign(value); }
49 inline ModifyUserGroupRequest& WithUserGroupId(const Aws::String& value) { SetUserGroupId(value); return *this;}
50 inline ModifyUserGroupRequest& WithUserGroupId(Aws::String&& value) { SetUserGroupId(std::move(value)); return *this;}
51 inline ModifyUserGroupRequest& WithUserGroupId(const char* value) { SetUserGroupId(value); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetUserIdsToAdd() const{ return m_userIdsToAdd; }
59 inline bool UserIdsToAddHasBeenSet() const { return m_userIdsToAddHasBeenSet; }
60 inline void SetUserIdsToAdd(const Aws::Vector<Aws::String>& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd = value; }
61 inline void SetUserIdsToAdd(Aws::Vector<Aws::String>&& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd = std::move(value); }
63 inline ModifyUserGroupRequest& WithUserIdsToAdd(Aws::Vector<Aws::String>&& value) { SetUserIdsToAdd(std::move(value)); return *this;}
64 inline ModifyUserGroupRequest& AddUserIdsToAdd(const Aws::String& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd.push_back(value); return *this; }
65 inline ModifyUserGroupRequest& AddUserIdsToAdd(Aws::String&& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd.push_back(std::move(value)); return *this; }
66 inline ModifyUserGroupRequest& AddUserIdsToAdd(const char* value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd.push_back(value); return *this; }
68
70
73 inline const Aws::Vector<Aws::String>& GetUserIdsToRemove() const{ return m_userIdsToRemove; }
74 inline bool UserIdsToRemoveHasBeenSet() const { return m_userIdsToRemoveHasBeenSet; }
75 inline void SetUserIdsToRemove(const Aws::Vector<Aws::String>& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove = value; }
76 inline void SetUserIdsToRemove(Aws::Vector<Aws::String>&& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove = std::move(value); }
79 inline ModifyUserGroupRequest& AddUserIdsToRemove(const Aws::String& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove.push_back(value); return *this; }
80 inline ModifyUserGroupRequest& AddUserIdsToRemove(Aws::String&& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove.push_back(std::move(value)); return *this; }
81 inline ModifyUserGroupRequest& AddUserIdsToRemove(const char* value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove.push_back(value); return *this; }
83 private:
84
85 Aws::String m_userGroupId;
86 bool m_userGroupIdHasBeenSet = false;
87
88 Aws::Vector<Aws::String> m_userIdsToAdd;
89 bool m_userIdsToAddHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_userIdsToRemove;
92 bool m_userIdsToRemoveHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ElastiCache
97} // namespace Aws
ModifyUserGroupRequest & WithUserIdsToRemove(Aws::Vector< Aws::String > &&value)
ModifyUserGroupRequest & WithUserGroupId(const Aws::String &value)
ModifyUserGroupRequest & WithUserIdsToAdd(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetUserIdsToAdd() const
const Aws::Vector< Aws::String > & GetUserIdsToRemove() const
void SetUserIdsToRemove(const Aws::Vector< Aws::String > &value)
ModifyUserGroupRequest & WithUserIdsToRemove(const Aws::Vector< Aws::String > &value)
ModifyUserGroupRequest & AddUserIdsToAdd(const Aws::String &value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetUserIdsToAdd(Aws::Vector< Aws::String > &&value)
ModifyUserGroupRequest & AddUserIdsToRemove(Aws::String &&value)
ModifyUserGroupRequest & WithUserIdsToAdd(const Aws::Vector< Aws::String > &value)
ModifyUserGroupRequest & AddUserIdsToRemove(const Aws::String &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyUserGroupRequest & WithUserGroupId(const char *value)
void SetUserIdsToRemove(Aws::Vector< Aws::String > &&value)
ModifyUserGroupRequest & AddUserIdsToAdd(Aws::String &&value)
ModifyUserGroupRequest & AddUserIdsToAdd(const char *value)
ModifyUserGroupRequest & WithUserGroupId(Aws::String &&value)
void SetUserIdsToAdd(const Aws::Vector< Aws::String > &value)
ModifyUserGroupRequest & AddUserIdsToRemove(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector