AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PendingModifiedValues.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 <aws/elasticache/model/AuthTokenUpdateStatus.h>
12#include <aws/elasticache/model/TransitEncryptionMode.h>
13#include <aws/elasticache/model/ScaleConfig.h>
14#include <aws/elasticache/model/PendingLogDeliveryConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace ElastiCache
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_ELASTICACHE_API PendingModifiedValues() = default;
41 AWS_ELASTICACHE_API PendingModifiedValues(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_ELASTICACHE_API PendingModifiedValues& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
54 inline int GetNumCacheNodes() const { return m_numCacheNodes; }
55 inline bool NumCacheNodesHasBeenSet() const { return m_numCacheNodesHasBeenSet; }
56 inline void SetNumCacheNodes(int value) { m_numCacheNodesHasBeenSet = true; m_numCacheNodes = value; }
57 inline PendingModifiedValues& WithNumCacheNodes(int value) { SetNumCacheNodes(value); return *this;}
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) { m_cacheNodeIdsToRemoveHasBeenSet = true; m_cacheNodeIdsToRemove = std::forward<CacheNodeIdsToRemoveT>(value); }
69 template<typename CacheNodeIdsToRemoveT = Aws::Vector<Aws::String>>
70 PendingModifiedValues& WithCacheNodeIdsToRemove(CacheNodeIdsToRemoveT&& value) { SetCacheNodeIdsToRemove(std::forward<CacheNodeIdsToRemoveT>(value)); return *this;}
71 template<typename CacheNodeIdsToRemoveT = Aws::String>
72 PendingModifiedValues& AddCacheNodeIdsToRemove(CacheNodeIdsToRemoveT&& value) { m_cacheNodeIdsToRemoveHasBeenSet = true; m_cacheNodeIdsToRemove.emplace_back(std::forward<CacheNodeIdsToRemoveT>(value)); return *this; }
74
76
79 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
80 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
81 template<typename EngineVersionT = Aws::String>
82 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
83 template<typename EngineVersionT = Aws::String>
84 PendingModifiedValues& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
86
88
91 inline const Aws::String& GetCacheNodeType() const { return m_cacheNodeType; }
92 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
93 template<typename CacheNodeTypeT = Aws::String>
94 void SetCacheNodeType(CacheNodeTypeT&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::forward<CacheNodeTypeT>(value); }
95 template<typename CacheNodeTypeT = Aws::String>
96 PendingModifiedValues& WithCacheNodeType(CacheNodeTypeT&& value) { SetCacheNodeType(std::forward<CacheNodeTypeT>(value)); return *this;}
98
100
103 inline AuthTokenUpdateStatus GetAuthTokenStatus() const { return m_authTokenStatus; }
104 inline bool AuthTokenStatusHasBeenSet() const { return m_authTokenStatusHasBeenSet; }
105 inline void SetAuthTokenStatus(AuthTokenUpdateStatus value) { m_authTokenStatusHasBeenSet = true; m_authTokenStatus = value; }
108
110
113 inline const Aws::Vector<PendingLogDeliveryConfiguration>& GetLogDeliveryConfigurations() const { return m_logDeliveryConfigurations; }
114 inline bool LogDeliveryConfigurationsHasBeenSet() const { return m_logDeliveryConfigurationsHasBeenSet; }
115 template<typename LogDeliveryConfigurationsT = Aws::Vector<PendingLogDeliveryConfiguration>>
116 void SetLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations = std::forward<LogDeliveryConfigurationsT>(value); }
117 template<typename LogDeliveryConfigurationsT = Aws::Vector<PendingLogDeliveryConfiguration>>
118 PendingModifiedValues& WithLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) { SetLogDeliveryConfigurations(std::forward<LogDeliveryConfigurationsT>(value)); return *this;}
119 template<typename LogDeliveryConfigurationsT = PendingLogDeliveryConfiguration>
120 PendingModifiedValues& AddLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations.emplace_back(std::forward<LogDeliveryConfigurationsT>(value)); return *this; }
122
124
127 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
128 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
129 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
132
134
138 inline TransitEncryptionMode GetTransitEncryptionMode() const { return m_transitEncryptionMode; }
139 inline bool TransitEncryptionModeHasBeenSet() const { return m_transitEncryptionModeHasBeenSet; }
140 inline void SetTransitEncryptionMode(TransitEncryptionMode value) { m_transitEncryptionModeHasBeenSet = true; m_transitEncryptionMode = value; }
143
145
149 inline const ScaleConfig& GetScaleConfig() const { return m_scaleConfig; }
150 inline bool ScaleConfigHasBeenSet() const { return m_scaleConfigHasBeenSet; }
151 template<typename ScaleConfigT = ScaleConfig>
152 void SetScaleConfig(ScaleConfigT&& value) { m_scaleConfigHasBeenSet = true; m_scaleConfig = std::forward<ScaleConfigT>(value); }
153 template<typename ScaleConfigT = ScaleConfig>
154 PendingModifiedValues& WithScaleConfig(ScaleConfigT&& value) { SetScaleConfig(std::forward<ScaleConfigT>(value)); return *this;}
156 private:
157
158 int m_numCacheNodes{0};
159 bool m_numCacheNodesHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_cacheNodeIdsToRemove;
162 bool m_cacheNodeIdsToRemoveHasBeenSet = false;
163
164 Aws::String m_engineVersion;
165 bool m_engineVersionHasBeenSet = false;
166
167 Aws::String m_cacheNodeType;
168 bool m_cacheNodeTypeHasBeenSet = false;
169
171 bool m_authTokenStatusHasBeenSet = false;
172
173 Aws::Vector<PendingLogDeliveryConfiguration> m_logDeliveryConfigurations;
174 bool m_logDeliveryConfigurationsHasBeenSet = false;
175
176 bool m_transitEncryptionEnabled{false};
177 bool m_transitEncryptionEnabledHasBeenSet = false;
178
180 bool m_transitEncryptionModeHasBeenSet = false;
181
182 ScaleConfig m_scaleConfig;
183 bool m_scaleConfigHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace ElastiCache
188} // 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