AWS SDK for C++  0.12.9
AWS SDK for C++
ReplicationGroup.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlNode;
31 } // namespace Xml
32 } // namespace Utils
33 namespace ElastiCache
34 {
35 namespace Model
36 {
37 
42  {
43  public:
46  ReplicationGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
54  inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
55 
59  inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
60 
64  inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
65 
69  inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
70 
74  inline ReplicationGroup& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;}
75 
79  inline ReplicationGroup& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(value); return *this;}
80 
84  inline ReplicationGroup& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
85 
89  inline const Aws::String& GetDescription() const{ return m_description; }
90 
94  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 
99  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
100 
104  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 
109  inline ReplicationGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 
114  inline ReplicationGroup& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
115 
119  inline ReplicationGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
120 
125  inline const Aws::String& GetStatus() const{ return m_status; }
126 
131  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
132 
137  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
138 
143  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
144 
149  inline ReplicationGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
150 
155  inline ReplicationGroup& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
156 
161  inline ReplicationGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
162 
167  inline const ReplicationGroupPendingModifiedValues& GetPendingModifiedValues() const{ return m_pendingModifiedValues; }
168 
173  inline void SetPendingModifiedValues(const ReplicationGroupPendingModifiedValues& value) { m_pendingModifiedValuesHasBeenSet = true; m_pendingModifiedValues = value; }
174 
179  inline void SetPendingModifiedValues(ReplicationGroupPendingModifiedValues&& value) { m_pendingModifiedValuesHasBeenSet = true; m_pendingModifiedValues = value; }
180 
185  inline ReplicationGroup& WithPendingModifiedValues(const ReplicationGroupPendingModifiedValues& value) { SetPendingModifiedValues(value); return *this;}
186 
191  inline ReplicationGroup& WithPendingModifiedValues(ReplicationGroupPendingModifiedValues&& value) { SetPendingModifiedValues(value); return *this;}
192 
197  inline const Aws::Vector<Aws::String>& GetMemberClusters() const{ return m_memberClusters; }
198 
203  inline void SetMemberClusters(const Aws::Vector<Aws::String>& value) { m_memberClustersHasBeenSet = true; m_memberClusters = value; }
204 
209  inline void SetMemberClusters(Aws::Vector<Aws::String>&& value) { m_memberClustersHasBeenSet = true; m_memberClusters = value; }
210 
215  inline ReplicationGroup& WithMemberClusters(const Aws::Vector<Aws::String>& value) { SetMemberClusters(value); return *this;}
216 
221  inline ReplicationGroup& WithMemberClusters(Aws::Vector<Aws::String>&& value) { SetMemberClusters(value); return *this;}
222 
227  inline ReplicationGroup& AddMemberClusters(const Aws::String& value) { m_memberClustersHasBeenSet = true; m_memberClusters.push_back(value); return *this; }
228 
233  inline ReplicationGroup& AddMemberClusters(Aws::String&& value) { m_memberClustersHasBeenSet = true; m_memberClusters.push_back(value); return *this; }
234 
239  inline ReplicationGroup& AddMemberClusters(const char* value) { m_memberClustersHasBeenSet = true; m_memberClusters.push_back(value); return *this; }
240 
245  inline const Aws::Vector<NodeGroup>& GetNodeGroups() const{ return m_nodeGroups; }
246 
251  inline void SetNodeGroups(const Aws::Vector<NodeGroup>& value) { m_nodeGroupsHasBeenSet = true; m_nodeGroups = value; }
252 
257  inline void SetNodeGroups(Aws::Vector<NodeGroup>&& value) { m_nodeGroupsHasBeenSet = true; m_nodeGroups = value; }
258 
263  inline ReplicationGroup& WithNodeGroups(const Aws::Vector<NodeGroup>& value) { SetNodeGroups(value); return *this;}
264 
269  inline ReplicationGroup& WithNodeGroups(Aws::Vector<NodeGroup>&& value) { SetNodeGroups(value); return *this;}
270 
275  inline ReplicationGroup& AddNodeGroups(const NodeGroup& value) { m_nodeGroupsHasBeenSet = true; m_nodeGroups.push_back(value); return *this; }
276 
281  inline ReplicationGroup& AddNodeGroups(NodeGroup&& value) { m_nodeGroupsHasBeenSet = true; m_nodeGroups.push_back(value); return *this; }
282 
287  inline const Aws::String& GetSnapshottingClusterId() const{ return m_snapshottingClusterId; }
288 
293  inline void SetSnapshottingClusterId(const Aws::String& value) { m_snapshottingClusterIdHasBeenSet = true; m_snapshottingClusterId = value; }
294 
299  inline void SetSnapshottingClusterId(Aws::String&& value) { m_snapshottingClusterIdHasBeenSet = true; m_snapshottingClusterId = value; }
300 
305  inline void SetSnapshottingClusterId(const char* value) { m_snapshottingClusterIdHasBeenSet = true; m_snapshottingClusterId.assign(value); }
306 
311  inline ReplicationGroup& WithSnapshottingClusterId(const Aws::String& value) { SetSnapshottingClusterId(value); return *this;}
312 
317  inline ReplicationGroup& WithSnapshottingClusterId(Aws::String&& value) { SetSnapshottingClusterId(value); return *this;}
318 
323  inline ReplicationGroup& WithSnapshottingClusterId(const char* value) { SetSnapshottingClusterId(value); return *this;}
324 
331  inline const AutomaticFailoverStatus& GetAutomaticFailover() const{ return m_automaticFailover; }
332 
339  inline void SetAutomaticFailover(const AutomaticFailoverStatus& value) { m_automaticFailoverHasBeenSet = true; m_automaticFailover = value; }
340 
347  inline void SetAutomaticFailover(AutomaticFailoverStatus&& value) { m_automaticFailoverHasBeenSet = true; m_automaticFailover = value; }
348 
355  inline ReplicationGroup& WithAutomaticFailover(const AutomaticFailoverStatus& value) { SetAutomaticFailover(value); return *this;}
356 
363  inline ReplicationGroup& WithAutomaticFailover(AutomaticFailoverStatus&& value) { SetAutomaticFailover(value); return *this;}
364 
365  private:
366  Aws::String m_replicationGroupId;
367  bool m_replicationGroupIdHasBeenSet;
368  Aws::String m_description;
369  bool m_descriptionHasBeenSet;
370  Aws::String m_status;
371  bool m_statusHasBeenSet;
372  ReplicationGroupPendingModifiedValues m_pendingModifiedValues;
373  bool m_pendingModifiedValuesHasBeenSet;
374  Aws::Vector<Aws::String> m_memberClusters;
375  bool m_memberClustersHasBeenSet;
376  Aws::Vector<NodeGroup> m_nodeGroups;
377  bool m_nodeGroupsHasBeenSet;
378  Aws::String m_snapshottingClusterId;
379  bool m_snapshottingClusterIdHasBeenSet;
380  AutomaticFailoverStatus m_automaticFailover;
381  bool m_automaticFailoverHasBeenSet;
382  };
383 
384 } // namespace Model
385 } // namespace ElastiCache
386 } // namespace Aws
void SetReplicationGroupId(const char *value)
ReplicationGroup & WithNodeGroups(Aws::Vector< NodeGroup > &&value)
const Aws::String & GetSnapshottingClusterId() const
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
const Aws::Vector< Aws::String > & GetMemberClusters() const
void SetSnapshottingClusterId(const Aws::String &value)
ReplicationGroup & WithAutomaticFailover(AutomaticFailoverStatus &&value)
void SetSnapshottingClusterId(const char *value)
ReplicationGroup & WithReplicationGroupId(Aws::String &&value)
ReplicationGroup & WithSnapshottingClusterId(const Aws::String &value)
void SetPendingModifiedValues(ReplicationGroupPendingModifiedValues &&value)
ReplicationGroup & WithAutomaticFailover(const AutomaticFailoverStatus &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetReplicationGroupId(Aws::String &&value)
void SetStatus(const Aws::String &value)
ReplicationGroup & WithDescription(Aws::String &&value)
ReplicationGroup & WithNodeGroups(const Aws::Vector< NodeGroup > &value)
ReplicationGroup & WithPendingModifiedValues(const ReplicationGroupPendingModifiedValues &value)
void SetSnapshottingClusterId(Aws::String &&value)
ReplicationGroup & AddMemberClusters(const char *value)
ReplicationGroup & WithMemberClusters(Aws::Vector< Aws::String > &&value)
ReplicationGroup & WithStatus(Aws::String &&value)
ReplicationGroup & AddNodeGroups(const NodeGroup &value)
void SetAutomaticFailover(AutomaticFailoverStatus &&value)
void SetNodeGroups(const Aws::Vector< NodeGroup > &value)
const Aws::String & GetStatus() const
void SetNodeGroups(Aws::Vector< NodeGroup > &&value)
ReplicationGroup & WithMemberClusters(const Aws::Vector< Aws::String > &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const ReplicationGroupPendingModifiedValues & GetPendingModifiedValues() const
ReplicationGroup & AddNodeGroups(NodeGroup &&value)
ReplicationGroup & WithSnapshottingClusterId(const char *value)
ReplicationGroup & WithStatus(const char *value)
ReplicationGroup & AddMemberClusters(const Aws::String &value)
ReplicationGroup & WithReplicationGroupId(const Aws::String &value)
void SetMemberClusters(Aws::Vector< Aws::String > &&value)
void SetDescription(Aws::String &&value)
void SetReplicationGroupId(const Aws::String &value)
void SetAutomaticFailover(const AutomaticFailoverStatus &value)
void SetPendingModifiedValues(const ReplicationGroupPendingModifiedValues &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ReplicationGroup & AddMemberClusters(Aws::String &&value)
const Aws::Vector< NodeGroup > & GetNodeGroups() const
#define AWS_ELASTICACHE_API
const Aws::String & GetReplicationGroupId() const
const AutomaticFailoverStatus & GetAutomaticFailover() const
ReplicationGroup & WithDescription(const Aws::String &value)
ReplicationGroup & WithStatus(const Aws::String &value)
ReplicationGroup & WithDescription(const char *value)
ReplicationGroup & WithSnapshottingClusterId(Aws::String &&value)
void SetMemberClusters(const Aws::Vector< Aws::String > &value)
ReplicationGroup & WithReplicationGroupId(const char *value)
ReplicationGroup & WithPendingModifiedValues(ReplicationGroupPendingModifiedValues &&value)
JSON (JavaScript Object Notation).