AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReshardingConfiguration.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
35 {
36 public:
37 AWS_ELASTICACHE_API ReshardingConfiguration();
38 AWS_ELASTICACHE_API ReshardingConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICACHE_API ReshardingConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetNodeGroupId() const{ return m_nodeGroupId; }
51 inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; }
52 inline void SetNodeGroupId(const Aws::String& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = value; }
53 inline void SetNodeGroupId(Aws::String&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::move(value); }
54 inline void SetNodeGroupId(const char* value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId.assign(value); }
55 inline ReshardingConfiguration& WithNodeGroupId(const Aws::String& value) { SetNodeGroupId(value); return *this;}
56 inline ReshardingConfiguration& WithNodeGroupId(Aws::String&& value) { SetNodeGroupId(std::move(value)); return *this;}
57 inline ReshardingConfiguration& WithNodeGroupId(const char* value) { SetNodeGroupId(value); return *this;}
59
61
64 inline const Aws::Vector<Aws::String>& GetPreferredAvailabilityZones() const{ return m_preferredAvailabilityZones; }
65 inline bool PreferredAvailabilityZonesHasBeenSet() const { return m_preferredAvailabilityZonesHasBeenSet; }
66 inline void SetPreferredAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones = value; }
67 inline void SetPreferredAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones = std::move(value); }
70 inline ReshardingConfiguration& AddPreferredAvailabilityZones(const Aws::String& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(value); return *this; }
71 inline ReshardingConfiguration& AddPreferredAvailabilityZones(Aws::String&& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(std::move(value)); return *this; }
72 inline ReshardingConfiguration& AddPreferredAvailabilityZones(const char* value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(value); return *this; }
74 private:
75
76 Aws::String m_nodeGroupId;
77 bool m_nodeGroupIdHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_preferredAvailabilityZones;
80 bool m_preferredAvailabilityZonesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ElastiCache
85} // namespace Aws
ReshardingConfiguration & WithPreferredAvailabilityZones(Aws::Vector< Aws::String > &&value)
void SetPreferredAvailabilityZones(const Aws::Vector< Aws::String > &value)
ReshardingConfiguration & WithPreferredAvailabilityZones(const Aws::Vector< Aws::String > &value)
ReshardingConfiguration & WithNodeGroupId(const char *value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReshardingConfiguration & WithNodeGroupId(Aws::String &&value)
ReshardingConfiguration & WithNodeGroupId(const Aws::String &value)
void SetPreferredAvailabilityZones(Aws::Vector< Aws::String > &&value)
AWS_ELASTICACHE_API ReshardingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ReshardingConfiguration & AddPreferredAvailabilityZones(const Aws::String &value)
AWS_ELASTICACHE_API ReshardingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetPreferredAvailabilityZones() const
ReshardingConfiguration & AddPreferredAvailabilityZones(Aws::String &&value)
ReshardingConfiguration & AddPreferredAvailabilityZones(const char *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