AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConfigureShard.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 ConfigureShard();
38 AWS_ELASTICACHE_API ConfigureShard(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICACHE_API ConfigureShard& 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
54 inline const Aws::String& GetNodeGroupId() const{ return m_nodeGroupId; }
55 inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; }
56 inline void SetNodeGroupId(const Aws::String& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = value; }
57 inline void SetNodeGroupId(Aws::String&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::move(value); }
58 inline void SetNodeGroupId(const char* value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId.assign(value); }
59 inline ConfigureShard& WithNodeGroupId(const Aws::String& value) { SetNodeGroupId(value); return *this;}
60 inline ConfigureShard& WithNodeGroupId(Aws::String&& value) { SetNodeGroupId(std::move(value)); return *this;}
61 inline ConfigureShard& WithNodeGroupId(const char* value) { SetNodeGroupId(value); return *this;}
63
65
75 inline int GetNewReplicaCount() const{ return m_newReplicaCount; }
76 inline bool NewReplicaCountHasBeenSet() const { return m_newReplicaCountHasBeenSet; }
77 inline void SetNewReplicaCount(int value) { m_newReplicaCountHasBeenSet = true; m_newReplicaCount = value; }
78 inline ConfigureShard& WithNewReplicaCount(int value) { SetNewReplicaCount(value); return *this;}
80
82
90 inline const Aws::Vector<Aws::String>& GetPreferredAvailabilityZones() const{ return m_preferredAvailabilityZones; }
91 inline bool PreferredAvailabilityZonesHasBeenSet() const { return m_preferredAvailabilityZonesHasBeenSet; }
92 inline void SetPreferredAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones = value; }
93 inline void SetPreferredAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones = std::move(value); }
96 inline ConfigureShard& AddPreferredAvailabilityZones(const Aws::String& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(value); return *this; }
97 inline ConfigureShard& AddPreferredAvailabilityZones(Aws::String&& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(std::move(value)); return *this; }
98 inline ConfigureShard& AddPreferredAvailabilityZones(const char* value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(value); return *this; }
100
102
105 inline const Aws::Vector<Aws::String>& GetPreferredOutpostArns() const{ return m_preferredOutpostArns; }
106 inline bool PreferredOutpostArnsHasBeenSet() const { return m_preferredOutpostArnsHasBeenSet; }
107 inline void SetPreferredOutpostArns(const Aws::Vector<Aws::String>& value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns = value; }
108 inline void SetPreferredOutpostArns(Aws::Vector<Aws::String>&& value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns = std::move(value); }
111 inline ConfigureShard& AddPreferredOutpostArns(const Aws::String& value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns.push_back(value); return *this; }
112 inline ConfigureShard& AddPreferredOutpostArns(Aws::String&& value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns.push_back(std::move(value)); return *this; }
113 inline ConfigureShard& AddPreferredOutpostArns(const char* value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns.push_back(value); return *this; }
115 private:
116
117 Aws::String m_nodeGroupId;
118 bool m_nodeGroupIdHasBeenSet = false;
119
120 int m_newReplicaCount;
121 bool m_newReplicaCountHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_preferredAvailabilityZones;
124 bool m_preferredAvailabilityZonesHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_preferredOutpostArns;
127 bool m_preferredOutpostArnsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace ElastiCache
132} // namespace Aws
ConfigureShard & AddPreferredAvailabilityZones(Aws::String &&value)
ConfigureShard & WithNodeGroupId(Aws::String &&value)
void SetNodeGroupId(const Aws::String &value)
ConfigureShard & WithPreferredAvailabilityZones(const Aws::Vector< Aws::String > &value)
ConfigureShard & WithPreferredOutpostArns(Aws::Vector< Aws::String > &&value)
ConfigureShard & WithNewReplicaCount(int value)
void SetPreferredOutpostArns(Aws::Vector< Aws::String > &&value)
ConfigureShard & AddPreferredOutpostArns(const Aws::String &value)
void SetPreferredAvailabilityZones(const Aws::Vector< Aws::String > &value)
AWS_ELASTICACHE_API ConfigureShard & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API ConfigureShard(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPreferredOutpostArns(const Aws::Vector< Aws::String > &value)
ConfigureShard & WithNodeGroupId(const Aws::String &value)
ConfigureShard & WithNodeGroupId(const char *value)
ConfigureShard & AddPreferredAvailabilityZones(const char *value)
ConfigureShard & WithPreferredAvailabilityZones(Aws::Vector< Aws::String > &&value)
void SetNodeGroupId(Aws::String &&value)
ConfigureShard & WithPreferredOutpostArns(const Aws::Vector< Aws::String > &value)
const Aws::String & GetNodeGroupId() const
void SetPreferredAvailabilityZones(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetPreferredAvailabilityZones() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetPreferredOutpostArns() const
ConfigureShard & AddPreferredOutpostArns(const char *value)
ConfigureShard & AddPreferredOutpostArns(Aws::String &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ConfigureShard & AddPreferredAvailabilityZones(const 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