AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserIdsToRemove(const Aws::Vector<Aws::String>& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove = value; }
51 inline void SetUserIdsToRemove(Aws::Vector<Aws::String>&& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove = std::move(value); }
54 inline UserGroupPendingChanges& AddUserIdsToRemove(const Aws::String& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove.push_back(value); return *this; }
55 inline UserGroupPendingChanges& AddUserIdsToRemove(Aws::String&& value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove.push_back(std::move(value)); return *this; }
56 inline UserGroupPendingChanges& AddUserIdsToRemove(const char* value) { m_userIdsToRemoveHasBeenSet = true; m_userIdsToRemove.push_back(value); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetUserIdsToAdd() const{ return m_userIdsToAdd; }
64 inline bool UserIdsToAddHasBeenSet() const { return m_userIdsToAddHasBeenSet; }
65 inline void SetUserIdsToAdd(const Aws::Vector<Aws::String>& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd = value; }
66 inline void SetUserIdsToAdd(Aws::Vector<Aws::String>&& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd = std::move(value); }
68 inline UserGroupPendingChanges& WithUserIdsToAdd(Aws::Vector<Aws::String>&& value) { SetUserIdsToAdd(std::move(value)); return *this;}
69 inline UserGroupPendingChanges& AddUserIdsToAdd(const Aws::String& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd.push_back(value); return *this; }
70 inline UserGroupPendingChanges& AddUserIdsToAdd(Aws::String&& value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd.push_back(std::move(value)); return *this; }
71 inline UserGroupPendingChanges& AddUserIdsToAdd(const char* value) { m_userIdsToAddHasBeenSet = true; m_userIdsToAdd.push_back(value); return *this; }
73 private:
74
75 Aws::Vector<Aws::String> m_userIdsToRemove;
76 bool m_userIdsToRemoveHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_userIdsToAdd;
79 bool m_userIdsToAddHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace ElastiCache
84} // namespace Aws
const Aws::Vector< Aws::String > & GetUserIdsToAdd() const
void SetUserIdsToRemove(const Aws::Vector< Aws::String > &value)
void SetUserIdsToAdd(const Aws::Vector< Aws::String > &value)
UserGroupPendingChanges & AddUserIdsToAdd(const Aws::String &value)
UserGroupPendingChanges & AddUserIdsToRemove(const char *value)
UserGroupPendingChanges & AddUserIdsToAdd(const char *value)
UserGroupPendingChanges & WithUserIdsToRemove(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetUserIdsToRemove() const
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
UserGroupPendingChanges & WithUserIdsToRemove(Aws::Vector< Aws::String > &&value)
void SetUserIdsToAdd(Aws::Vector< Aws::String > &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
UserGroupPendingChanges & WithUserIdsToAdd(const Aws::Vector< Aws::String > &value)
UserGroupPendingChanges & AddUserIdsToAdd(Aws::String &&value)
UserGroupPendingChanges & WithUserIdsToAdd(Aws::Vector< Aws::String > &&value)
UserGroupPendingChanges & AddUserIdsToRemove(const Aws::String &value)
AWS_ELASTICACHE_API UserGroupPendingChanges & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserIdsToRemove(Aws::Vector< Aws::String > &&value)
UserGroupPendingChanges & AddUserIdsToRemove(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream