AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReplicationGroupPendingModifiedValues.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/AWSString.h>
10#include <aws/elasticache/model/PendingAutomaticFailoverStatus.h>
11#include <aws/elasticache/model/ReshardingStatus.h>
12#include <aws/elasticache/model/AuthTokenUpdateStatus.h>
13#include <aws/elasticache/model/UserGroupsUpdateStatus.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/elasticache/model/TransitEncryptionMode.h>
16#include <aws/elasticache/model/ClusterMode.h>
17#include <aws/elasticache/model/PendingLogDeliveryConfiguration.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Xml
25{
26 class XmlNode;
27} // namespace Xml
28} // namespace Utils
29namespace ElastiCache
30{
31namespace Model
32{
33
42 {
43 public:
44 AWS_ELASTICACHE_API ReplicationGroupPendingModifiedValues() = default;
47
48 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
58 inline const Aws::String& GetPrimaryClusterId() const { return m_primaryClusterId; }
59 inline bool PrimaryClusterIdHasBeenSet() const { return m_primaryClusterIdHasBeenSet; }
60 template<typename PrimaryClusterIdT = Aws::String>
61 void SetPrimaryClusterId(PrimaryClusterIdT&& value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId = std::forward<PrimaryClusterIdT>(value); }
62 template<typename PrimaryClusterIdT = Aws::String>
63 ReplicationGroupPendingModifiedValues& WithPrimaryClusterId(PrimaryClusterIdT&& value) { SetPrimaryClusterId(std::forward<PrimaryClusterIdT>(value)); return *this;}
65
67
71 inline PendingAutomaticFailoverStatus GetAutomaticFailoverStatus() const { return m_automaticFailoverStatus; }
72 inline bool AutomaticFailoverStatusHasBeenSet() const { return m_automaticFailoverStatusHasBeenSet; }
73 inline void SetAutomaticFailoverStatus(PendingAutomaticFailoverStatus value) { m_automaticFailoverStatusHasBeenSet = true; m_automaticFailoverStatus = value; }
76
78
81 inline const ReshardingStatus& GetResharding() const { return m_resharding; }
82 inline bool ReshardingHasBeenSet() const { return m_reshardingHasBeenSet; }
83 template<typename ReshardingT = ReshardingStatus>
84 void SetResharding(ReshardingT&& value) { m_reshardingHasBeenSet = true; m_resharding = std::forward<ReshardingT>(value); }
85 template<typename ReshardingT = ReshardingStatus>
86 ReplicationGroupPendingModifiedValues& WithResharding(ReshardingT&& value) { SetResharding(std::forward<ReshardingT>(value)); return *this;}
88
90
93 inline AuthTokenUpdateStatus GetAuthTokenStatus() const { return m_authTokenStatus; }
94 inline bool AuthTokenStatusHasBeenSet() const { return m_authTokenStatusHasBeenSet; }
95 inline void SetAuthTokenStatus(AuthTokenUpdateStatus value) { m_authTokenStatusHasBeenSet = true; m_authTokenStatus = value; }
98
100
103 inline const UserGroupsUpdateStatus& GetUserGroups() const { return m_userGroups; }
104 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
105 template<typename UserGroupsT = UserGroupsUpdateStatus>
106 void SetUserGroups(UserGroupsT&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::forward<UserGroupsT>(value); }
107 template<typename UserGroupsT = UserGroupsUpdateStatus>
108 ReplicationGroupPendingModifiedValues& WithUserGroups(UserGroupsT&& value) { SetUserGroups(std::forward<UserGroupsT>(value)); return *this;}
110
112
115 inline const Aws::Vector<PendingLogDeliveryConfiguration>& GetLogDeliveryConfigurations() const { return m_logDeliveryConfigurations; }
116 inline bool LogDeliveryConfigurationsHasBeenSet() const { return m_logDeliveryConfigurationsHasBeenSet; }
117 template<typename LogDeliveryConfigurationsT = Aws::Vector<PendingLogDeliveryConfiguration>>
118 void SetLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations = std::forward<LogDeliveryConfigurationsT>(value); }
119 template<typename LogDeliveryConfigurationsT = Aws::Vector<PendingLogDeliveryConfiguration>>
120 ReplicationGroupPendingModifiedValues& WithLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) { SetLogDeliveryConfigurations(std::forward<LogDeliveryConfigurationsT>(value)); return *this;}
121 template<typename LogDeliveryConfigurationsT = PendingLogDeliveryConfiguration>
122 ReplicationGroupPendingModifiedValues& AddLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations.emplace_back(std::forward<LogDeliveryConfigurationsT>(value)); return *this; }
124
126
129 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
130 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
131 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
134
136
140 inline TransitEncryptionMode GetTransitEncryptionMode() const { return m_transitEncryptionMode; }
141 inline bool TransitEncryptionModeHasBeenSet() const { return m_transitEncryptionModeHasBeenSet; }
142 inline void SetTransitEncryptionMode(TransitEncryptionMode value) { m_transitEncryptionModeHasBeenSet = true; m_transitEncryptionMode = value; }
145
147
155 inline ClusterMode GetClusterMode() const { return m_clusterMode; }
156 inline bool ClusterModeHasBeenSet() const { return m_clusterModeHasBeenSet; }
157 inline void SetClusterMode(ClusterMode value) { m_clusterModeHasBeenSet = true; m_clusterMode = value; }
160 private:
161
162 Aws::String m_primaryClusterId;
163 bool m_primaryClusterIdHasBeenSet = false;
164
166 bool m_automaticFailoverStatusHasBeenSet = false;
167
168 ReshardingStatus m_resharding;
169 bool m_reshardingHasBeenSet = false;
170
172 bool m_authTokenStatusHasBeenSet = false;
173
174 UserGroupsUpdateStatus m_userGroups;
175 bool m_userGroupsHasBeenSet = false;
176
177 Aws::Vector<PendingLogDeliveryConfiguration> m_logDeliveryConfigurations;
178 bool m_logDeliveryConfigurationsHasBeenSet = false;
179
180 bool m_transitEncryptionEnabled{false};
181 bool m_transitEncryptionEnabledHasBeenSet = false;
182
184 bool m_transitEncryptionModeHasBeenSet = false;
185
186 ClusterMode m_clusterMode{ClusterMode::NOT_SET};
187 bool m_clusterModeHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace ElastiCache
192} // 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