AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UserGroupPendingChanges.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElastiCache {
21namespace Model {
22
30 public:
31 AWS_ELASTICACHE_API UserGroupPendingChanges() = default;
32 AWS_ELASTICACHE_API UserGroupPendingChanges(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICACHE_API UserGroupPendingChanges& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::Vector<Aws::String>& GetUserIdsToRemove() const { return m_userIdsToRemove; }
43 inline bool UserIdsToRemoveHasBeenSet() const { return m_userIdsToRemoveHasBeenSet; }
44 template <typename UserIdsToRemoveT = Aws::Vector<Aws::String>>
45 void SetUserIdsToRemove(UserIdsToRemoveT&& value) {
46 m_userIdsToRemoveHasBeenSet = true;
47 m_userIdsToRemove = std::forward<UserIdsToRemoveT>(value);
48 }
49 template <typename UserIdsToRemoveT = Aws::Vector<Aws::String>>
50 UserGroupPendingChanges& WithUserIdsToRemove(UserIdsToRemoveT&& value) {
51 SetUserIdsToRemove(std::forward<UserIdsToRemoveT>(value));
52 return *this;
53 }
54 template <typename UserIdsToRemoveT = Aws::String>
55 UserGroupPendingChanges& AddUserIdsToRemove(UserIdsToRemoveT&& value) {
56 m_userIdsToRemoveHasBeenSet = true;
57 m_userIdsToRemove.emplace_back(std::forward<UserIdsToRemoveT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<Aws::String>& GetUserIdsToAdd() const { return m_userIdsToAdd; }
67 inline bool UserIdsToAddHasBeenSet() const { return m_userIdsToAddHasBeenSet; }
68 template <typename UserIdsToAddT = Aws::Vector<Aws::String>>
69 void SetUserIdsToAdd(UserIdsToAddT&& value) {
70 m_userIdsToAddHasBeenSet = true;
71 m_userIdsToAdd = std::forward<UserIdsToAddT>(value);
72 }
73 template <typename UserIdsToAddT = Aws::Vector<Aws::String>>
74 UserGroupPendingChanges& WithUserIdsToAdd(UserIdsToAddT&& value) {
75 SetUserIdsToAdd(std::forward<UserIdsToAddT>(value));
76 return *this;
77 }
78 template <typename UserIdsToAddT = Aws::String>
79 UserGroupPendingChanges& AddUserIdsToAdd(UserIdsToAddT&& value) {
80 m_userIdsToAddHasBeenSet = true;
81 m_userIdsToAdd.emplace_back(std::forward<UserIdsToAddT>(value));
82 return *this;
83 }
85 private:
86 Aws::Vector<Aws::String> m_userIdsToRemove;
87
88 Aws::Vector<Aws::String> m_userIdsToAdd;
89 bool m_userIdsToRemoveHasBeenSet = false;
90 bool m_userIdsToAddHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace ElastiCache
95} // namespace Aws
const Aws::Vector< Aws::String > & GetUserIdsToAdd() const
UserGroupPendingChanges & AddUserIdsToAdd(UserIdsToAddT &&value)
UserGroupPendingChanges & AddUserIdsToRemove(UserIdsToRemoveT &&value)
const Aws::Vector< Aws::String > & GetUserIdsToRemove() const
AWS_ELASTICACHE_API UserGroupPendingChanges()=default
AWS_ELASTICACHE_API UserGroupPendingChanges(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API UserGroupPendingChanges & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
UserGroupPendingChanges & WithUserIdsToRemove(UserIdsToRemoveT &&value)
UserGroupPendingChanges & WithUserIdsToAdd(UserIdsToAddT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream