AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PendingModifiedValues.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#include <aws/elasticache/model/AuthTokenUpdateStatus.h>
12#include <aws/elasticache/model/PendingLogDeliveryConfiguration.h>
13#include <aws/elasticache/model/ScaleConfig.h>
14#include <aws/elasticache/model/TransitEncryptionMode.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache {
25namespace Model {
26
34 public:
35 AWS_ELASTICACHE_API PendingModifiedValues() = default;
36 AWS_ELASTICACHE_API PendingModifiedValues(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API PendingModifiedValues& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
48 inline int GetNumCacheNodes() const { return m_numCacheNodes; }
49 inline bool NumCacheNodesHasBeenSet() const { return m_numCacheNodesHasBeenSet; }
50 inline void SetNumCacheNodes(int value) {
51 m_numCacheNodesHasBeenSet = true;
52 m_numCacheNodes = value;
53 }
55 SetNumCacheNodes(value);
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Aws::String>& GetCacheNodeIdsToRemove() const { return m_cacheNodeIdsToRemove; }
66 inline bool CacheNodeIdsToRemoveHasBeenSet() const { return m_cacheNodeIdsToRemoveHasBeenSet; }
67 template <typename CacheNodeIdsToRemoveT = Aws::Vector<Aws::String>>
68 void SetCacheNodeIdsToRemove(CacheNodeIdsToRemoveT&& value) {
69 m_cacheNodeIdsToRemoveHasBeenSet = true;
70 m_cacheNodeIdsToRemove = std::forward<CacheNodeIdsToRemoveT>(value);
71 }
72 template <typename CacheNodeIdsToRemoveT = Aws::Vector<Aws::String>>
73 PendingModifiedValues& WithCacheNodeIdsToRemove(CacheNodeIdsToRemoveT&& value) {
74 SetCacheNodeIdsToRemove(std::forward<CacheNodeIdsToRemoveT>(value));
75 return *this;
76 }
77 template <typename CacheNodeIdsToRemoveT = Aws::String>
78 PendingModifiedValues& AddCacheNodeIdsToRemove(CacheNodeIdsToRemoveT&& value) {
79 m_cacheNodeIdsToRemoveHasBeenSet = true;
80 m_cacheNodeIdsToRemove.emplace_back(std::forward<CacheNodeIdsToRemoveT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
90 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
91 template <typename EngineVersionT = Aws::String>
92 void SetEngineVersion(EngineVersionT&& value) {
93 m_engineVersionHasBeenSet = true;
94 m_engineVersion = std::forward<EngineVersionT>(value);
95 }
96 template <typename EngineVersionT = Aws::String>
97 PendingModifiedValues& WithEngineVersion(EngineVersionT&& value) {
98 SetEngineVersion(std::forward<EngineVersionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetCacheNodeType() const { return m_cacheNodeType; }
108 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
109 template <typename CacheNodeTypeT = Aws::String>
110 void SetCacheNodeType(CacheNodeTypeT&& value) {
111 m_cacheNodeTypeHasBeenSet = true;
112 m_cacheNodeType = std::forward<CacheNodeTypeT>(value);
113 }
114 template <typename CacheNodeTypeT = Aws::String>
115 PendingModifiedValues& WithCacheNodeType(CacheNodeTypeT&& value) {
116 SetCacheNodeType(std::forward<CacheNodeTypeT>(value));
117 return *this;
118 }
120
122
125 inline AuthTokenUpdateStatus GetAuthTokenStatus() const { return m_authTokenStatus; }
126 inline bool AuthTokenStatusHasBeenSet() const { return m_authTokenStatusHasBeenSet; }
128 m_authTokenStatusHasBeenSet = true;
129 m_authTokenStatus = value;
130 }
132 SetAuthTokenStatus(value);
133 return *this;
134 }
136
138
141 inline const Aws::Vector<PendingLogDeliveryConfiguration>& GetLogDeliveryConfigurations() const { return m_logDeliveryConfigurations; }
142 inline bool LogDeliveryConfigurationsHasBeenSet() const { return m_logDeliveryConfigurationsHasBeenSet; }
143 template <typename LogDeliveryConfigurationsT = Aws::Vector<PendingLogDeliveryConfiguration>>
144 void SetLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) {
145 m_logDeliveryConfigurationsHasBeenSet = true;
146 m_logDeliveryConfigurations = std::forward<LogDeliveryConfigurationsT>(value);
147 }
148 template <typename LogDeliveryConfigurationsT = Aws::Vector<PendingLogDeliveryConfiguration>>
149 PendingModifiedValues& WithLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) {
150 SetLogDeliveryConfigurations(std::forward<LogDeliveryConfigurationsT>(value));
151 return *this;
152 }
153 template <typename LogDeliveryConfigurationsT = PendingLogDeliveryConfiguration>
154 PendingModifiedValues& AddLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) {
155 m_logDeliveryConfigurationsHasBeenSet = true;
156 m_logDeliveryConfigurations.emplace_back(std::forward<LogDeliveryConfigurationsT>(value));
157 return *this;
158 }
160
162
165 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
166 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
167 inline void SetTransitEncryptionEnabled(bool value) {
168 m_transitEncryptionEnabledHasBeenSet = true;
169 m_transitEncryptionEnabled = value;
170 }
173 return *this;
174 }
176
178
182 inline TransitEncryptionMode GetTransitEncryptionMode() const { return m_transitEncryptionMode; }
183 inline bool TransitEncryptionModeHasBeenSet() const { return m_transitEncryptionModeHasBeenSet; }
185 m_transitEncryptionModeHasBeenSet = true;
186 m_transitEncryptionMode = value;
187 }
190 return *this;
191 }
193
195
199 inline const ScaleConfig& GetScaleConfig() const { return m_scaleConfig; }
200 inline bool ScaleConfigHasBeenSet() const { return m_scaleConfigHasBeenSet; }
201 template <typename ScaleConfigT = ScaleConfig>
202 void SetScaleConfig(ScaleConfigT&& value) {
203 m_scaleConfigHasBeenSet = true;
204 m_scaleConfig = std::forward<ScaleConfigT>(value);
205 }
206 template <typename ScaleConfigT = ScaleConfig>
207 PendingModifiedValues& WithScaleConfig(ScaleConfigT&& value) {
208 SetScaleConfig(std::forward<ScaleConfigT>(value));
209 return *this;
210 }
212 private:
213 int m_numCacheNodes{0};
214
215 Aws::Vector<Aws::String> m_cacheNodeIdsToRemove;
216
217 Aws::String m_engineVersion;
218
219 Aws::String m_cacheNodeType;
220
222
223 Aws::Vector<PendingLogDeliveryConfiguration> m_logDeliveryConfigurations;
224
225 bool m_transitEncryptionEnabled{false};
226
228
229 ScaleConfig m_scaleConfig;
230 bool m_numCacheNodesHasBeenSet = false;
231 bool m_cacheNodeIdsToRemoveHasBeenSet = false;
232 bool m_engineVersionHasBeenSet = false;
233 bool m_cacheNodeTypeHasBeenSet = false;
234 bool m_authTokenStatusHasBeenSet = false;
235 bool m_logDeliveryConfigurationsHasBeenSet = false;
236 bool m_transitEncryptionEnabledHasBeenSet = false;
237 bool m_transitEncryptionModeHasBeenSet = false;
238 bool m_scaleConfigHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace ElastiCache
243} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTransitEncryptionMode(TransitEncryptionMode value)
void SetAuthTokenStatus(AuthTokenUpdateStatus value)
PendingModifiedValues & WithCacheNodeType(CacheNodeTypeT &&value)
void SetLogDeliveryConfigurations(LogDeliveryConfigurationsT &&value)
const Aws::Vector< Aws::String > & GetCacheNodeIdsToRemove() const
PendingModifiedValues & AddCacheNodeIdsToRemove(CacheNodeIdsToRemoveT &&value)
PendingModifiedValues & WithAuthTokenStatus(AuthTokenUpdateStatus value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PendingModifiedValues & WithLogDeliveryConfigurations(LogDeliveryConfigurationsT &&value)
PendingModifiedValues & WithNumCacheNodes(int value)
PendingModifiedValues & AddLogDeliveryConfigurations(LogDeliveryConfigurationsT &&value)
AWS_ELASTICACHE_API PendingModifiedValues & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API PendingModifiedValues(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCacheNodeIdsToRemove(CacheNodeIdsToRemoveT &&value)
PendingModifiedValues & WithEngineVersion(EngineVersionT &&value)
AWS_ELASTICACHE_API PendingModifiedValues()=default
PendingModifiedValues & WithTransitEncryptionMode(TransitEncryptionMode value)
PendingModifiedValues & WithScaleConfig(ScaleConfigT &&value)
PendingModifiedValues & WithCacheNodeIdsToRemove(CacheNodeIdsToRemoveT &&value)
PendingModifiedValues & WithTransitEncryptionEnabled(bool value)
const Aws::Vector< PendingLogDeliveryConfiguration > & GetLogDeliveryConfigurations() const
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