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>
53 template<
typename NodeGroupIdT = Aws::String>
54 void SetNodeGroupId(NodeGroupIdT&& value) { m_nodeGroupIdHasBeenSet =
true; m_nodeGroupId = std::forward<NodeGroupIdT>(value); }
55 template<
typename NodeGroupIdT = Aws::String>
67 template<
typename SlotsT = Aws::String>
68 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet =
true; m_slots = std::forward<SlotsT>(value); }
69 template<
typename SlotsT = Aws::String>
79 inline void SetReplicaCount(
int value) { m_replicaCountHasBeenSet =
true; m_replicaCount = value; }
90 template<
typename PrimaryAvailabilityZoneT = Aws::String>
91 void SetPrimaryAvailabilityZone(PrimaryAvailabilityZoneT&& value) { m_primaryAvailabilityZoneHasBeenSet =
true; m_primaryAvailabilityZone = std::forward<PrimaryAvailabilityZoneT>(value); }
92 template<
typename PrimaryAvailabilityZoneT = Aws::String>
105 template<
typename ReplicaAvailabilityZonesT = Aws::Vector<Aws::String>>
106 void SetReplicaAvailabilityZones(ReplicaAvailabilityZonesT&& value) { m_replicaAvailabilityZonesHasBeenSet =
true; m_replicaAvailabilityZones = std::forward<ReplicaAvailabilityZonesT>(value); }
107 template<
typename ReplicaAvailabilityZonesT = Aws::Vector<Aws::String>>
109 template<
typename ReplicaAvailabilityZonesT = Aws::String>
119 template<
typename PrimaryOutpostArnT = Aws::String>
120 void SetPrimaryOutpostArn(PrimaryOutpostArnT&& value) { m_primaryOutpostArnHasBeenSet =
true; m_primaryOutpostArn = std::forward<PrimaryOutpostArnT>(value); }
121 template<
typename PrimaryOutpostArnT = Aws::String>
131 template<
typename ReplicaOutpostArnsT = Aws::Vector<Aws::String>>
132 void SetReplicaOutpostArns(ReplicaOutpostArnsT&& value) { m_replicaOutpostArnsHasBeenSet =
true; m_replicaOutpostArns = std::forward<ReplicaOutpostArnsT>(value); }
133 template<
typename ReplicaOutpostArnsT = Aws::Vector<Aws::String>>
135 template<
typename ReplicaOutpostArnsT = Aws::String>
141 bool m_nodeGroupIdHasBeenSet =
false;
144 bool m_slotsHasBeenSet =
false;
146 int m_replicaCount{0};
147 bool m_replicaCountHasBeenSet =
false;
150 bool m_primaryAvailabilityZoneHasBeenSet =
false;
153 bool m_replicaAvailabilityZonesHasBeenSet =
false;
156 bool m_primaryOutpostArnHasBeenSet =
false;
159 bool m_replicaOutpostArnsHasBeenSet =
false;
void SetSlots(SlotsT &&value)
NodeGroupConfiguration & WithReplicaAvailabilityZones(ReplicaAvailabilityZonesT &&value)
AWS_ELASTICACHE_API NodeGroupConfiguration()=default
bool PrimaryOutpostArnHasBeenSet() const
bool PrimaryAvailabilityZoneHasBeenSet() const
NodeGroupConfiguration & WithPrimaryOutpostArn(PrimaryOutpostArnT &&value)
const Aws::Vector< Aws::String > & GetReplicaAvailabilityZones() const
NodeGroupConfiguration & WithSlots(SlotsT &&value)
int GetReplicaCount() const
AWS_ELASTICACHE_API NodeGroupConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPrimaryOutpostArn() const
const Aws::String & GetSlots() const
const Aws::String & GetPrimaryAvailabilityZone() const
void SetReplicaAvailabilityZones(ReplicaAvailabilityZonesT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool NodeGroupIdHasBeenSet() const
NodeGroupConfiguration & WithNodeGroupId(NodeGroupIdT &&value)
void SetPrimaryAvailabilityZone(PrimaryAvailabilityZoneT &&value)
void SetReplicaOutpostArns(ReplicaOutpostArnsT &&value)
const Aws::String & GetNodeGroupId() const
bool SlotsHasBeenSet() const
NodeGroupConfiguration & WithPrimaryAvailabilityZone(PrimaryAvailabilityZoneT &&value)
NodeGroupConfiguration & AddReplicaOutpostArns(ReplicaOutpostArnsT &&value)
NodeGroupConfiguration & WithReplicaOutpostArns(ReplicaOutpostArnsT &&value)
AWS_ELASTICACHE_API NodeGroupConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetReplicaCount(int value)
void SetNodeGroupId(NodeGroupIdT &&value)
bool ReplicaOutpostArnsHasBeenSet() const
bool ReplicaCountHasBeenSet() const
void SetPrimaryOutpostArn(PrimaryOutpostArnT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NodeGroupConfiguration & WithReplicaCount(int value)
bool ReplicaAvailabilityZonesHasBeenSet() const
const Aws::Vector< Aws::String > & GetReplicaOutpostArns() const
NodeGroupConfiguration & AddReplicaAvailabilityZones(ReplicaAvailabilityZonesT &&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