/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

A list of PreferredAvailabilityZones objects that specifies the * configuration of a node group in the resharded cluster.

See Also:

* AWS * API Reference

*/ class ReshardingConfiguration { public: AWS_ELASTICACHE_API ReshardingConfiguration(); AWS_ELASTICACHE_API ReshardingConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API ReshardingConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); 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; /** *

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.

*/ inline const Aws::String& GetNodeGroupId() const{ return m_nodeGroupId; } /** *

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.

*/ inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; } /** *

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.

*/ inline void SetNodeGroupId(const Aws::String& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = value; } /** *

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.

*/ inline void SetNodeGroupId(Aws::String&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::move(value); } /** *

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.

*/ inline void SetNodeGroupId(const char* value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId.assign(value); } /** *

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.

*/ inline ReshardingConfiguration& WithNodeGroupId(const Aws::String& value) { SetNodeGroupId(value); return *this;} /** *

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.

*/ inline ReshardingConfiguration& WithNodeGroupId(Aws::String&& value) { SetNodeGroupId(std::move(value)); return *this;} /** *

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.

*/ inline ReshardingConfiguration& WithNodeGroupId(const char* value) { SetNodeGroupId(value); return *this;} /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline const Aws::Vector& GetPreferredAvailabilityZones() const{ return m_preferredAvailabilityZones; } /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline bool PreferredAvailabilityZonesHasBeenSet() const { return m_preferredAvailabilityZonesHasBeenSet; } /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline void SetPreferredAvailabilityZones(const Aws::Vector& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones = value; } /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline void SetPreferredAvailabilityZones(Aws::Vector&& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones = std::move(value); } /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline ReshardingConfiguration& WithPreferredAvailabilityZones(const Aws::Vector& value) { SetPreferredAvailabilityZones(value); return *this;} /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline ReshardingConfiguration& WithPreferredAvailabilityZones(Aws::Vector&& value) { SetPreferredAvailabilityZones(std::move(value)); return *this;} /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline ReshardingConfiguration& AddPreferredAvailabilityZones(const Aws::String& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(value); return *this; } /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline ReshardingConfiguration& AddPreferredAvailabilityZones(Aws::String&& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(std::move(value)); return *this; } /** *

A list of preferred availability zones for the nodes in this cluster.

*/ inline ReshardingConfiguration& AddPreferredAvailabilityZones(const char* value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(value); return *this; } private: Aws::String m_nodeGroupId; bool m_nodeGroupIdHasBeenSet = false; Aws::Vector m_preferredAvailabilityZones; bool m_preferredAvailabilityZonesHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws