AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegionalConfiguration.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 <aws/elasticache/model/ReshardingConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ELASTICACHE_API RegionalConfiguration();
37 AWS_ELASTICACHE_API RegionalConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICACHE_API RegionalConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
49 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
50 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
51 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
52 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
54 inline RegionalConfiguration& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
55 inline RegionalConfiguration& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
57
59
62 inline const Aws::String& GetReplicationGroupRegion() const{ return m_replicationGroupRegion; }
63 inline bool ReplicationGroupRegionHasBeenSet() const { return m_replicationGroupRegionHasBeenSet; }
64 inline void SetReplicationGroupRegion(const Aws::String& value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion = value; }
65 inline void SetReplicationGroupRegion(Aws::String&& value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion = std::move(value); }
66 inline void SetReplicationGroupRegion(const char* value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion.assign(value); }
69 inline RegionalConfiguration& WithReplicationGroupRegion(const char* value) { SetReplicationGroupRegion(value); return *this;}
71
73
77 inline const Aws::Vector<ReshardingConfiguration>& GetReshardingConfiguration() const{ return m_reshardingConfiguration; }
78 inline bool ReshardingConfigurationHasBeenSet() const { return m_reshardingConfigurationHasBeenSet; }
79 inline void SetReshardingConfiguration(const Aws::Vector<ReshardingConfiguration>& value) { m_reshardingConfigurationHasBeenSet = true; m_reshardingConfiguration = value; }
80 inline void SetReshardingConfiguration(Aws::Vector<ReshardingConfiguration>&& value) { m_reshardingConfigurationHasBeenSet = true; m_reshardingConfiguration = std::move(value); }
83 inline RegionalConfiguration& AddReshardingConfiguration(const ReshardingConfiguration& value) { m_reshardingConfigurationHasBeenSet = true; m_reshardingConfiguration.push_back(value); return *this; }
84 inline RegionalConfiguration& AddReshardingConfiguration(ReshardingConfiguration&& value) { m_reshardingConfigurationHasBeenSet = true; m_reshardingConfiguration.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_replicationGroupId;
89 bool m_replicationGroupIdHasBeenSet = false;
90
91 Aws::String m_replicationGroupRegion;
92 bool m_replicationGroupRegionHasBeenSet = false;
93
94 Aws::Vector<ReshardingConfiguration> m_reshardingConfiguration;
95 bool m_reshardingConfigurationHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ElastiCache
100} // namespace Aws
void SetReplicationGroupRegion(const Aws::String &value)
RegionalConfiguration & WithReshardingConfiguration(Aws::Vector< ReshardingConfiguration > &&value)
AWS_ELASTICACHE_API RegionalConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
RegionalConfiguration & WithReplicationGroupRegion(const char *value)
RegionalConfiguration & AddReshardingConfiguration(ReshardingConfiguration &&value)
const Aws::Vector< ReshardingConfiguration > & GetReshardingConfiguration() const
void SetReshardingConfiguration(const Aws::Vector< ReshardingConfiguration > &value)
AWS_ELASTICACHE_API RegionalConfiguration & 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
RegionalConfiguration & WithReplicationGroupId(Aws::String &&value)
RegionalConfiguration & WithReplicationGroupId(const Aws::String &value)
RegionalConfiguration & AddReshardingConfiguration(const ReshardingConfiguration &value)
void SetReshardingConfiguration(Aws::Vector< ReshardingConfiguration > &&value)
RegionalConfiguration & WithReplicationGroupRegion(Aws::String &&value)
RegionalConfiguration & WithReplicationGroupId(const char *value)
RegionalConfiguration & WithReplicationGroupRegion(const Aws::String &value)
RegionalConfiguration & WithReshardingConfiguration(const Aws::Vector< ReshardingConfiguration > &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