AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NodeGroupConfiguration.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElastiCache
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_ELASTICACHE_API NodeGroupConfiguration();
39 AWS_ELASTICACHE_API NodeGroupConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICACHE_API NodeGroupConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::String& GetNodeGroupId() const{ return m_nodeGroupId; }
52 inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; }
53 inline void SetNodeGroupId(const Aws::String& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = value; }
54 inline void SetNodeGroupId(Aws::String&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::move(value); }
55 inline void SetNodeGroupId(const char* value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId.assign(value); }
56 inline NodeGroupConfiguration& WithNodeGroupId(const Aws::String& value) { SetNodeGroupId(value); return *this;}
57 inline NodeGroupConfiguration& WithNodeGroupId(Aws::String&& value) { SetNodeGroupId(std::move(value)); return *this;}
58 inline NodeGroupConfiguration& WithNodeGroupId(const char* value) { SetNodeGroupId(value); return *this;}
60
62
67 inline const Aws::String& GetSlots() const{ return m_slots; }
68 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
69 inline void SetSlots(const Aws::String& value) { m_slotsHasBeenSet = true; m_slots = value; }
70 inline void SetSlots(Aws::String&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); }
71 inline void SetSlots(const char* value) { m_slotsHasBeenSet = true; m_slots.assign(value); }
72 inline NodeGroupConfiguration& WithSlots(const Aws::String& value) { SetSlots(value); return *this;}
73 inline NodeGroupConfiguration& WithSlots(Aws::String&& value) { SetSlots(std::move(value)); return *this;}
74 inline NodeGroupConfiguration& WithSlots(const char* value) { SetSlots(value); return *this;}
76
78
81 inline int GetReplicaCount() const{ return m_replicaCount; }
82 inline bool ReplicaCountHasBeenSet() const { return m_replicaCountHasBeenSet; }
83 inline void SetReplicaCount(int value) { m_replicaCountHasBeenSet = true; m_replicaCount = value; }
84 inline NodeGroupConfiguration& WithReplicaCount(int value) { SetReplicaCount(value); return *this;}
86
88
92 inline const Aws::String& GetPrimaryAvailabilityZone() const{ return m_primaryAvailabilityZone; }
93 inline bool PrimaryAvailabilityZoneHasBeenSet() const { return m_primaryAvailabilityZoneHasBeenSet; }
94 inline void SetPrimaryAvailabilityZone(const Aws::String& value) { m_primaryAvailabilityZoneHasBeenSet = true; m_primaryAvailabilityZone = value; }
95 inline void SetPrimaryAvailabilityZone(Aws::String&& value) { m_primaryAvailabilityZoneHasBeenSet = true; m_primaryAvailabilityZone = std::move(value); }
96 inline void SetPrimaryAvailabilityZone(const char* value) { m_primaryAvailabilityZoneHasBeenSet = true; m_primaryAvailabilityZone.assign(value); }
99 inline NodeGroupConfiguration& WithPrimaryAvailabilityZone(const char* value) { SetPrimaryAvailabilityZone(value); return *this;}
101
103
109 inline const Aws::Vector<Aws::String>& GetReplicaAvailabilityZones() const{ return m_replicaAvailabilityZones; }
110 inline bool ReplicaAvailabilityZonesHasBeenSet() const { return m_replicaAvailabilityZonesHasBeenSet; }
111 inline void SetReplicaAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_replicaAvailabilityZonesHasBeenSet = true; m_replicaAvailabilityZones = value; }
112 inline void SetReplicaAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_replicaAvailabilityZonesHasBeenSet = true; m_replicaAvailabilityZones = std::move(value); }
115 inline NodeGroupConfiguration& AddReplicaAvailabilityZones(const Aws::String& value) { m_replicaAvailabilityZonesHasBeenSet = true; m_replicaAvailabilityZones.push_back(value); return *this; }
116 inline NodeGroupConfiguration& AddReplicaAvailabilityZones(Aws::String&& value) { m_replicaAvailabilityZonesHasBeenSet = true; m_replicaAvailabilityZones.push_back(std::move(value)); return *this; }
117 inline NodeGroupConfiguration& AddReplicaAvailabilityZones(const char* value) { m_replicaAvailabilityZonesHasBeenSet = true; m_replicaAvailabilityZones.push_back(value); return *this; }
119
121
124 inline const Aws::String& GetPrimaryOutpostArn() const{ return m_primaryOutpostArn; }
125 inline bool PrimaryOutpostArnHasBeenSet() const { return m_primaryOutpostArnHasBeenSet; }
126 inline void SetPrimaryOutpostArn(const Aws::String& value) { m_primaryOutpostArnHasBeenSet = true; m_primaryOutpostArn = value; }
127 inline void SetPrimaryOutpostArn(Aws::String&& value) { m_primaryOutpostArnHasBeenSet = true; m_primaryOutpostArn = std::move(value); }
128 inline void SetPrimaryOutpostArn(const char* value) { m_primaryOutpostArnHasBeenSet = true; m_primaryOutpostArn.assign(value); }
130 inline NodeGroupConfiguration& WithPrimaryOutpostArn(Aws::String&& value) { SetPrimaryOutpostArn(std::move(value)); return *this;}
131 inline NodeGroupConfiguration& WithPrimaryOutpostArn(const char* value) { SetPrimaryOutpostArn(value); return *this;}
133
135
138 inline const Aws::Vector<Aws::String>& GetReplicaOutpostArns() const{ return m_replicaOutpostArns; }
139 inline bool ReplicaOutpostArnsHasBeenSet() const { return m_replicaOutpostArnsHasBeenSet; }
140 inline void SetReplicaOutpostArns(const Aws::Vector<Aws::String>& value) { m_replicaOutpostArnsHasBeenSet = true; m_replicaOutpostArns = value; }
141 inline void SetReplicaOutpostArns(Aws::Vector<Aws::String>&& value) { m_replicaOutpostArnsHasBeenSet = true; m_replicaOutpostArns = std::move(value); }
144 inline NodeGroupConfiguration& AddReplicaOutpostArns(const Aws::String& value) { m_replicaOutpostArnsHasBeenSet = true; m_replicaOutpostArns.push_back(value); return *this; }
145 inline NodeGroupConfiguration& AddReplicaOutpostArns(Aws::String&& value) { m_replicaOutpostArnsHasBeenSet = true; m_replicaOutpostArns.push_back(std::move(value)); return *this; }
146 inline NodeGroupConfiguration& AddReplicaOutpostArns(const char* value) { m_replicaOutpostArnsHasBeenSet = true; m_replicaOutpostArns.push_back(value); return *this; }
148 private:
149
150 Aws::String m_nodeGroupId;
151 bool m_nodeGroupIdHasBeenSet = false;
152
153 Aws::String m_slots;
154 bool m_slotsHasBeenSet = false;
155
156 int m_replicaCount;
157 bool m_replicaCountHasBeenSet = false;
158
159 Aws::String m_primaryAvailabilityZone;
160 bool m_primaryAvailabilityZoneHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_replicaAvailabilityZones;
163 bool m_replicaAvailabilityZonesHasBeenSet = false;
164
165 Aws::String m_primaryOutpostArn;
166 bool m_primaryOutpostArnHasBeenSet = false;
167
168 Aws::Vector<Aws::String> m_replicaOutpostArns;
169 bool m_replicaOutpostArnsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace ElastiCache
174} // namespace Aws
void SetPrimaryAvailabilityZone(const Aws::String &value)
NodeGroupConfiguration & WithPrimaryOutpostArn(Aws::String &&value)
NodeGroupConfiguration & WithPrimaryAvailabilityZone(const Aws::String &value)
NodeGroupConfiguration & AddReplicaAvailabilityZones(const char *value)
NodeGroupConfiguration & WithSlots(const Aws::String &value)
const Aws::Vector< Aws::String > & GetReplicaAvailabilityZones() const
NodeGroupConfiguration & WithReplicaAvailabilityZones(const Aws::Vector< Aws::String > &value)
NodeGroupConfiguration & WithNodeGroupId(const Aws::String &value)
AWS_ELASTICACHE_API NodeGroupConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NodeGroupConfiguration & WithSlots(Aws::String &&value)
NodeGroupConfiguration & WithNodeGroupId(const char *value)
void SetReplicaOutpostArns(const Aws::Vector< Aws::String > &value)
NodeGroupConfiguration & AddReplicaAvailabilityZones(Aws::String &&value)
NodeGroupConfiguration & WithReplicaOutpostArns(const Aws::Vector< Aws::String > &value)
NodeGroupConfiguration & WithReplicaOutpostArns(Aws::Vector< Aws::String > &&value)
NodeGroupConfiguration & WithNodeGroupId(Aws::String &&value)
NodeGroupConfiguration & WithPrimaryOutpostArn(const char *value)
void SetReplicaAvailabilityZones(const Aws::Vector< Aws::String > &value)
void SetReplicaAvailabilityZones(Aws::Vector< Aws::String > &&value)
NodeGroupConfiguration & WithPrimaryAvailabilityZone(Aws::String &&value)
NodeGroupConfiguration & WithPrimaryAvailabilityZone(const char *value)
AWS_ELASTICACHE_API NodeGroupConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NodeGroupConfiguration & AddReplicaOutpostArns(const Aws::String &value)
NodeGroupConfiguration & WithSlots(const char *value)
NodeGroupConfiguration & WithPrimaryOutpostArn(const Aws::String &value)
NodeGroupConfiguration & WithReplicaAvailabilityZones(Aws::Vector< Aws::String > &&value)
NodeGroupConfiguration & AddReplicaAvailabilityZones(const Aws::String &value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetReplicaOutpostArns(Aws::Vector< Aws::String > &&value)
NodeGroupConfiguration & WithReplicaCount(int value)
NodeGroupConfiguration & AddReplicaOutpostArns(const char *value)
const Aws::Vector< Aws::String > & GetReplicaOutpostArns() const
NodeGroupConfiguration & AddReplicaOutpostArns(Aws::String &&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