AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GlobalReplicationGroupMember.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/elasticache/model/AutomaticFailoverStatus.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 GlobalReplicationGroupMember();
38 AWS_ELASTICACHE_API GlobalReplicationGroupMember(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
49 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
50 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
51 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
52 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
53 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
55 inline GlobalReplicationGroupMember& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
56 inline GlobalReplicationGroupMember& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
58
60
63 inline const Aws::String& GetReplicationGroupRegion() const{ return m_replicationGroupRegion; }
64 inline bool ReplicationGroupRegionHasBeenSet() const { return m_replicationGroupRegionHasBeenSet; }
65 inline void SetReplicationGroupRegion(const Aws::String& value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion = value; }
66 inline void SetReplicationGroupRegion(Aws::String&& value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion = std::move(value); }
67 inline void SetReplicationGroupRegion(const char* value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion.assign(value); }
70 inline GlobalReplicationGroupMember& WithReplicationGroupRegion(const char* value) { SetReplicationGroupRegion(value); return *this;}
72
74
77 inline const Aws::String& GetRole() const{ return m_role; }
78 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
79 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
80 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
81 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
82 inline GlobalReplicationGroupMember& WithRole(const Aws::String& value) { SetRole(value); return *this;}
83 inline GlobalReplicationGroupMember& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
84 inline GlobalReplicationGroupMember& WithRole(const char* value) { SetRole(value); return *this;}
86
88
92 inline const AutomaticFailoverStatus& GetAutomaticFailover() const{ return m_automaticFailover; }
93 inline bool AutomaticFailoverHasBeenSet() const { return m_automaticFailoverHasBeenSet; }
94 inline void SetAutomaticFailover(const AutomaticFailoverStatus& value) { m_automaticFailoverHasBeenSet = true; m_automaticFailover = value; }
95 inline void SetAutomaticFailover(AutomaticFailoverStatus&& value) { m_automaticFailoverHasBeenSet = true; m_automaticFailover = std::move(value); }
99
101
104 inline const Aws::String& GetStatus() const{ return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
107 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
108 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
109 inline GlobalReplicationGroupMember& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
110 inline GlobalReplicationGroupMember& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
111 inline GlobalReplicationGroupMember& WithStatus(const char* value) { SetStatus(value); return *this;}
113 private:
114
115 Aws::String m_replicationGroupId;
116 bool m_replicationGroupIdHasBeenSet = false;
117
118 Aws::String m_replicationGroupRegion;
119 bool m_replicationGroupRegionHasBeenSet = false;
120
121 Aws::String m_role;
122 bool m_roleHasBeenSet = false;
123
124 AutomaticFailoverStatus m_automaticFailover;
125 bool m_automaticFailoverHasBeenSet = false;
126
127 Aws::String m_status;
128 bool m_statusHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace ElastiCache
133} // namespace Aws
GlobalReplicationGroupMember & WithReplicationGroupRegion(Aws::String &&value)
void SetAutomaticFailover(const AutomaticFailoverStatus &value)
GlobalReplicationGroupMember & WithStatus(const char *value)
GlobalReplicationGroupMember & WithReplicationGroupRegion(const char *value)
AWS_ELASTICACHE_API GlobalReplicationGroupMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalReplicationGroupMember & WithRole(const char *value)
GlobalReplicationGroupMember & WithStatus(const Aws::String &value)
GlobalReplicationGroupMember & WithRole(const Aws::String &value)
GlobalReplicationGroupMember & WithReplicationGroupId(const char *value)
GlobalReplicationGroupMember & WithAutomaticFailover(AutomaticFailoverStatus &&value)
GlobalReplicationGroupMember & WithRole(Aws::String &&value)
GlobalReplicationGroupMember & WithReplicationGroupRegion(const Aws::String &value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
GlobalReplicationGroupMember & WithStatus(Aws::String &&value)
AWS_ELASTICACHE_API GlobalReplicationGroupMember(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
GlobalReplicationGroupMember & WithAutomaticFailover(const AutomaticFailoverStatus &value)
GlobalReplicationGroupMember & WithReplicationGroupId(Aws::String &&value)
GlobalReplicationGroupMember & WithReplicationGroupId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream