AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ACL.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/ACLPendingChanges.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace MemoryDB {
22namespace Model {
23
32class ACL {
33 public:
34 AWS_MEMORYDB_API ACL() = default;
35 AWS_MEMORYDB_API ACL(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API ACL& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 ACL& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 template <typename StatusT = Aws::String>
65 void SetStatus(StatusT&& value) {
66 m_statusHasBeenSet = true;
67 m_status = std::forward<StatusT>(value);
68 }
69 template <typename StatusT = Aws::String>
70 ACL& WithStatus(StatusT&& value) {
71 SetStatus(std::forward<StatusT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Aws::String>& GetUserNames() const { return m_userNames; }
81 inline bool UserNamesHasBeenSet() const { return m_userNamesHasBeenSet; }
82 template <typename UserNamesT = Aws::Vector<Aws::String>>
83 void SetUserNames(UserNamesT&& value) {
84 m_userNamesHasBeenSet = true;
85 m_userNames = std::forward<UserNamesT>(value);
86 }
87 template <typename UserNamesT = Aws::Vector<Aws::String>>
88 ACL& WithUserNames(UserNamesT&& value) {
89 SetUserNames(std::forward<UserNamesT>(value));
90 return *this;
91 }
92 template <typename UserNamesT = Aws::String>
93 ACL& AddUserNames(UserNamesT&& value) {
94 m_userNamesHasBeenSet = true;
95 m_userNames.emplace_back(std::forward<UserNamesT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetMinimumEngineVersion() const { return m_minimumEngineVersion; }
105 inline bool MinimumEngineVersionHasBeenSet() const { return m_minimumEngineVersionHasBeenSet; }
106 template <typename MinimumEngineVersionT = Aws::String>
107 void SetMinimumEngineVersion(MinimumEngineVersionT&& value) {
108 m_minimumEngineVersionHasBeenSet = true;
109 m_minimumEngineVersion = std::forward<MinimumEngineVersionT>(value);
110 }
111 template <typename MinimumEngineVersionT = Aws::String>
112 ACL& WithMinimumEngineVersion(MinimumEngineVersionT&& value) {
113 SetMinimumEngineVersion(std::forward<MinimumEngineVersionT>(value));
114 return *this;
115 }
117
119
122 inline const ACLPendingChanges& GetPendingChanges() const { return m_pendingChanges; }
123 inline bool PendingChangesHasBeenSet() const { return m_pendingChangesHasBeenSet; }
124 template <typename PendingChangesT = ACLPendingChanges>
125 void SetPendingChanges(PendingChangesT&& value) {
126 m_pendingChangesHasBeenSet = true;
127 m_pendingChanges = std::forward<PendingChangesT>(value);
128 }
129 template <typename PendingChangesT = ACLPendingChanges>
130 ACL& WithPendingChanges(PendingChangesT&& value) {
131 SetPendingChanges(std::forward<PendingChangesT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<Aws::String>& GetClusters() const { return m_clusters; }
141 inline bool ClustersHasBeenSet() const { return m_clustersHasBeenSet; }
142 template <typename ClustersT = Aws::Vector<Aws::String>>
143 void SetClusters(ClustersT&& value) {
144 m_clustersHasBeenSet = true;
145 m_clusters = std::forward<ClustersT>(value);
146 }
147 template <typename ClustersT = Aws::Vector<Aws::String>>
148 ACL& WithClusters(ClustersT&& value) {
149 SetClusters(std::forward<ClustersT>(value));
150 return *this;
151 }
152 template <typename ClustersT = Aws::String>
153 ACL& AddClusters(ClustersT&& value) {
154 m_clustersHasBeenSet = true;
155 m_clusters.emplace_back(std::forward<ClustersT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetARN() const { return m_aRN; }
165 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
166 template <typename ARNT = Aws::String>
167 void SetARN(ARNT&& value) {
168 m_aRNHasBeenSet = true;
169 m_aRN = std::forward<ARNT>(value);
170 }
171 template <typename ARNT = Aws::String>
172 ACL& WithARN(ARNT&& value) {
173 SetARN(std::forward<ARNT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_name;
179
180 Aws::String m_status;
181
182 Aws::Vector<Aws::String> m_userNames;
183
184 Aws::String m_minimumEngineVersion;
185
186 ACLPendingChanges m_pendingChanges;
187
188 Aws::Vector<Aws::String> m_clusters;
189
190 Aws::String m_aRN;
191 bool m_nameHasBeenSet = false;
192 bool m_statusHasBeenSet = false;
193 bool m_userNamesHasBeenSet = false;
194 bool m_minimumEngineVersionHasBeenSet = false;
195 bool m_pendingChangesHasBeenSet = false;
196 bool m_clustersHasBeenSet = false;
197 bool m_aRNHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace MemoryDB
202} // namespace Aws
ACL & WithClusters(ClustersT &&value)
Definition ACL.h:148
const Aws::Vector< Aws::String > & GetClusters() const
Definition ACL.h:140
ACL & WithPendingChanges(PendingChangesT &&value)
Definition ACL.h:130
const Aws::Vector< Aws::String > & GetUserNames() const
Definition ACL.h:80
void SetClusters(ClustersT &&value)
Definition ACL.h:143
AWS_MEMORYDB_API ACL & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ACL & WithUserNames(UserNamesT &&value)
Definition ACL.h:88
void SetARN(ARNT &&value)
Definition ACL.h:167
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const ACLPendingChanges & GetPendingChanges() const
Definition ACL.h:122
bool UserNamesHasBeenSet() const
Definition ACL.h:81
const Aws::String & GetMinimumEngineVersion() const
Definition ACL.h:104
bool PendingChangesHasBeenSet() const
Definition ACL.h:123
AWS_MEMORYDB_API ACL()=default
const Aws::String & GetName() const
Definition ACL.h:43
ACL & WithMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition ACL.h:112
bool MinimumEngineVersionHasBeenSet() const
Definition ACL.h:105
ACL & WithName(NameT &&value)
Definition ACL.h:51
void SetPendingChanges(PendingChangesT &&value)
Definition ACL.h:125
ACL & AddUserNames(UserNamesT &&value)
Definition ACL.h:93
ACL & WithStatus(StatusT &&value)
Definition ACL.h:70
void SetStatus(StatusT &&value)
Definition ACL.h:65
bool ClustersHasBeenSet() const
Definition ACL.h:141
void SetName(NameT &&value)
Definition ACL.h:46
const Aws::String & GetARN() const
Definition ACL.h:164
const Aws::String & GetStatus() const
Definition ACL.h:62
void SetMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition ACL.h:107
ACL & AddClusters(ClustersT &&value)
Definition ACL.h:153
ACL & WithARN(ARNT &&value)
Definition ACL.h:172
bool StatusHasBeenSet() const
Definition ACL.h:63
bool NameHasBeenSet() const
Definition ACL.h:44
bool ARNHasBeenSet() const
Definition ACL.h:165
AWS_MEMORYDB_API ACL(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetUserNames(UserNamesT &&value)
Definition ACL.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector