AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserGroupPendingChanges.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElastiCache
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICACHE_API UserGroupPendingChanges() = default;
37 AWS_ELASTICACHE_API UserGroupPendingChanges(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICACHE_API UserGroupPendingChanges& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetUserIdsToRemove() const { return m_userIdsToRemove; }
49 inline bool UserIdsToRemoveHasBeenSet() const { return m_userIdsToRemoveHasBeenSet; }
50 template<typename UserIdsToRemoveT = Aws::Vector<Aws::String>>
51 void SetUserIdsToRemove(UserIdsToRemoveT&& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove = std::forward<UserIdsToRemoveT>(value); }
52 template<typename UserIdsToRemoveT = Aws::Vector<Aws::String>>
53 UserGroupPendingChanges& WithUserIdsToRemove(UserIdsToRemoveT&& value) { SetUserIdsToRemove(std::forward<UserIdsToRemoveT>(value)); return *this;}
54 template<typename UserIdsToRemoveT = Aws::String>
55 UserGroupPendingChanges& AddUserIdsToRemove(UserIdsToRemoveT&& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove.emplace_back(std::forward<UserIdsToRemoveT>(value)); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetUserIdsToAdd() const { return m_userIdsToAdd; }
63 inline bool UserIdsToAddHasBeenSet() const { return m_userIdsToAddHasBeenSet; }
64 template<typename UserIdsToAddT = Aws::Vector<Aws::String>>
65 void SetUserIdsToAdd(UserIdsToAddT&& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd = std::forward<UserIdsToAddT>(value); }
66 template<typename UserIdsToAddT = Aws::Vector<Aws::String>>
67 UserGroupPendingChanges& WithUserIdsToAdd(UserIdsToAddT&& value) { SetUserIdsToAdd(std::forward<UserIdsToAddT>(value)); return *this;}
68 template<typename UserIdsToAddT = Aws::String>
69 UserGroupPendingChanges& AddUserIdsToAdd(UserIdsToAddT&& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd.emplace_back(std::forward<UserIdsToAddT>(value)); return *this; }
71 private:
72
73 Aws::Vector<Aws::String> m_userIdsToRemove;
74 bool m_userIdsToRemoveHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_userIdsToAdd;
77 bool m_userIdsToAddHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ElastiCache
82} // 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