AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReplicationGroupPendingModifiedValues.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/ClusterMode.h>
13#include <aws/elasticache/model/PendingAutomaticFailoverStatus.h>
14#include <aws/elasticache/model/PendingLogDeliveryConfiguration.h>
15#include <aws/elasticache/model/ReshardingStatus.h>
16#include <aws/elasticache/model/TransitEncryptionMode.h>
17#include <aws/elasticache/model/UserGroupsUpdateStatus.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Xml {
24class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace ElastiCache {
28namespace Model {
29
38 public:
39 AWS_ELASTICACHE_API ReplicationGroupPendingModifiedValues() = default;
42
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
47
52 inline const Aws::String& GetPrimaryClusterId() const { return m_primaryClusterId; }
53 inline bool PrimaryClusterIdHasBeenSet() const { return m_primaryClusterIdHasBeenSet; }
54 template <typename PrimaryClusterIdT = Aws::String>
55 void SetPrimaryClusterId(PrimaryClusterIdT&& value) {
56 m_primaryClusterIdHasBeenSet = true;
57 m_primaryClusterId = std::forward<PrimaryClusterIdT>(value);
58 }
59 template <typename PrimaryClusterIdT = Aws::String>
61 SetPrimaryClusterId(std::forward<PrimaryClusterIdT>(value));
62 return *this;
63 }
65
67
71 inline PendingAutomaticFailoverStatus GetAutomaticFailoverStatus() const { return m_automaticFailoverStatus; }
72 inline bool AutomaticFailoverStatusHasBeenSet() const { return m_automaticFailoverStatusHasBeenSet; }
74 m_automaticFailoverStatusHasBeenSet = true;
75 m_automaticFailoverStatus = value;
76 }
79 return *this;
80 }
82
84
87 inline const ReshardingStatus& GetResharding() const { return m_resharding; }
88 inline bool ReshardingHasBeenSet() const { return m_reshardingHasBeenSet; }
89 template <typename ReshardingT = ReshardingStatus>
90 void SetResharding(ReshardingT&& value) {
91 m_reshardingHasBeenSet = true;
92 m_resharding = std::forward<ReshardingT>(value);
93 }
94 template <typename ReshardingT = ReshardingStatus>
96 SetResharding(std::forward<ReshardingT>(value));
97 return *this;
98 }
100
102
105 inline AuthTokenUpdateStatus GetAuthTokenStatus() const { return m_authTokenStatus; }
106 inline bool AuthTokenStatusHasBeenSet() const { return m_authTokenStatusHasBeenSet; }
108 m_authTokenStatusHasBeenSet = true;
109 m_authTokenStatus = value;
110 }
112 SetAuthTokenStatus(value);
113 return *this;
114 }
116
118
121 inline const UserGroupsUpdateStatus& GetUserGroups() const { return m_userGroups; }
122 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
123 template <typename UserGroupsT = UserGroupsUpdateStatus>
124 void SetUserGroups(UserGroupsT&& value) {
125 m_userGroupsHasBeenSet = true;
126 m_userGroups = std::forward<UserGroupsT>(value);
127 }
128 template <typename UserGroupsT = UserGroupsUpdateStatus>
130 SetUserGroups(std::forward<UserGroupsT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Vector<PendingLogDeliveryConfiguration>& GetLogDeliveryConfigurations() const { return m_logDeliveryConfigurations; }
140 inline bool LogDeliveryConfigurationsHasBeenSet() const { return m_logDeliveryConfigurationsHasBeenSet; }
141 template <typename LogDeliveryConfigurationsT = Aws::Vector<PendingLogDeliveryConfiguration>>
142 void SetLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) {
143 m_logDeliveryConfigurationsHasBeenSet = true;
144 m_logDeliveryConfigurations = std::forward<LogDeliveryConfigurationsT>(value);
145 }
146 template <typename LogDeliveryConfigurationsT = Aws::Vector<PendingLogDeliveryConfiguration>>
148 SetLogDeliveryConfigurations(std::forward<LogDeliveryConfigurationsT>(value));
149 return *this;
150 }
151 template <typename LogDeliveryConfigurationsT = PendingLogDeliveryConfiguration>
153 m_logDeliveryConfigurationsHasBeenSet = true;
154 m_logDeliveryConfigurations.emplace_back(std::forward<LogDeliveryConfigurationsT>(value));
155 return *this;
156 }
158
160
163 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
164 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
165 inline void SetTransitEncryptionEnabled(bool value) {
166 m_transitEncryptionEnabledHasBeenSet = true;
167 m_transitEncryptionEnabled = value;
168 }
171 return *this;
172 }
174
176
180 inline TransitEncryptionMode GetTransitEncryptionMode() const { return m_transitEncryptionMode; }
181 inline bool TransitEncryptionModeHasBeenSet() const { return m_transitEncryptionModeHasBeenSet; }
183 m_transitEncryptionModeHasBeenSet = true;
184 m_transitEncryptionMode = value;
185 }
188 return *this;
189 }
191
193
201 inline ClusterMode GetClusterMode() const { return m_clusterMode; }
202 inline bool ClusterModeHasBeenSet() const { return m_clusterModeHasBeenSet; }
203 inline void SetClusterMode(ClusterMode value) {
204 m_clusterModeHasBeenSet = true;
205 m_clusterMode = value;
206 }
208 SetClusterMode(value);
209 return *this;
210 }
212 private:
213 Aws::String m_primaryClusterId;
214
216
217 ReshardingStatus m_resharding;
218
220
221 UserGroupsUpdateStatus m_userGroups;
222
223 Aws::Vector<PendingLogDeliveryConfiguration> m_logDeliveryConfigurations;
224
225 bool m_transitEncryptionEnabled{false};
226
228
229 ClusterMode m_clusterMode{ClusterMode::NOT_SET};
230 bool m_primaryClusterIdHasBeenSet = false;
231 bool m_automaticFailoverStatusHasBeenSet = false;
232 bool m_reshardingHasBeenSet = false;
233 bool m_authTokenStatusHasBeenSet = false;
234 bool m_userGroupsHasBeenSet = false;
235 bool m_logDeliveryConfigurationsHasBeenSet = false;
236 bool m_transitEncryptionEnabledHasBeenSet = false;
237 bool m_transitEncryptionModeHasBeenSet = false;
238 bool m_clusterModeHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace ElastiCache
243} // namespace Aws
ReplicationGroupPendingModifiedValues & WithAuthTokenStatus(AuthTokenUpdateStatus value)
ReplicationGroupPendingModifiedValues & WithUserGroups(UserGroupsT &&value)
ReplicationGroupPendingModifiedValues & WithPrimaryClusterId(PrimaryClusterIdT &&value)
AWS_ELASTICACHE_API ReplicationGroupPendingModifiedValues(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationGroupPendingModifiedValues & WithResharding(ReshardingT &&value)
ReplicationGroupPendingModifiedValues & WithTransitEncryptionEnabled(bool value)
ReplicationGroupPendingModifiedValues & WithAutomaticFailoverStatus(PendingAutomaticFailoverStatus value)
AWS_ELASTICACHE_API ReplicationGroupPendingModifiedValues & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< PendingLogDeliveryConfiguration > & GetLogDeliveryConfigurations() const
ReplicationGroupPendingModifiedValues & AddLogDeliveryConfigurations(LogDeliveryConfigurationsT &&value)
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
ReplicationGroupPendingModifiedValues & WithTransitEncryptionMode(TransitEncryptionMode value)
ReplicationGroupPendingModifiedValues & WithClusterMode(ClusterMode value)
ReplicationGroupPendingModifiedValues & WithLogDeliveryConfigurations(LogDeliveryConfigurationsT &&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