AWS SDK for C++  1.9.108
AWS SDK for C++
GlobalClusterMember.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace RDS
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetDBClusterArn() const{ return m_dBClusterArn; }
49 
53  inline bool DBClusterArnHasBeenSet() const { return m_dBClusterArnHasBeenSet; }
54 
58  inline void SetDBClusterArn(const Aws::String& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = value; }
59 
63  inline void SetDBClusterArn(Aws::String&& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = std::move(value); }
64 
68  inline void SetDBClusterArn(const char* value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn.assign(value); }
69 
73  inline GlobalClusterMember& WithDBClusterArn(const Aws::String& value) { SetDBClusterArn(value); return *this;}
74 
78  inline GlobalClusterMember& WithDBClusterArn(Aws::String&& value) { SetDBClusterArn(std::move(value)); return *this;}
79 
83  inline GlobalClusterMember& WithDBClusterArn(const char* value) { SetDBClusterArn(value); return *this;}
84 
85 
90  inline const Aws::Vector<Aws::String>& GetReaders() const{ return m_readers; }
91 
96  inline bool ReadersHasBeenSet() const { return m_readersHasBeenSet; }
97 
102  inline void SetReaders(const Aws::Vector<Aws::String>& value) { m_readersHasBeenSet = true; m_readers = value; }
103 
108  inline void SetReaders(Aws::Vector<Aws::String>&& value) { m_readersHasBeenSet = true; m_readers = std::move(value); }
109 
114  inline GlobalClusterMember& WithReaders(const Aws::Vector<Aws::String>& value) { SetReaders(value); return *this;}
115 
120  inline GlobalClusterMember& WithReaders(Aws::Vector<Aws::String>&& value) { SetReaders(std::move(value)); return *this;}
121 
126  inline GlobalClusterMember& AddReaders(const Aws::String& value) { m_readersHasBeenSet = true; m_readers.push_back(value); return *this; }
127 
132  inline GlobalClusterMember& AddReaders(Aws::String&& value) { m_readersHasBeenSet = true; m_readers.push_back(std::move(value)); return *this; }
133 
138  inline GlobalClusterMember& AddReaders(const char* value) { m_readersHasBeenSet = true; m_readers.push_back(value); return *this; }
139 
140 
146  inline bool GetIsWriter() const{ return m_isWriter; }
147 
153  inline bool IsWriterHasBeenSet() const { return m_isWriterHasBeenSet; }
154 
160  inline void SetIsWriter(bool value) { m_isWriterHasBeenSet = true; m_isWriter = value; }
161 
167  inline GlobalClusterMember& WithIsWriter(bool value) { SetIsWriter(value); return *this;}
168 
169 
174  inline const WriteForwardingStatus& GetGlobalWriteForwardingStatus() const{ return m_globalWriteForwardingStatus; }
175 
180  inline bool GlobalWriteForwardingStatusHasBeenSet() const { return m_globalWriteForwardingStatusHasBeenSet; }
181 
186  inline void SetGlobalWriteForwardingStatus(const WriteForwardingStatus& value) { m_globalWriteForwardingStatusHasBeenSet = true; m_globalWriteForwardingStatus = value; }
187 
192  inline void SetGlobalWriteForwardingStatus(WriteForwardingStatus&& value) { m_globalWriteForwardingStatusHasBeenSet = true; m_globalWriteForwardingStatus = std::move(value); }
193 
198  inline GlobalClusterMember& WithGlobalWriteForwardingStatus(const WriteForwardingStatus& value) { SetGlobalWriteForwardingStatus(value); return *this;}
199 
204  inline GlobalClusterMember& WithGlobalWriteForwardingStatus(WriteForwardingStatus&& value) { SetGlobalWriteForwardingStatus(std::move(value)); return *this;}
205 
206  private:
207 
208  Aws::String m_dBClusterArn;
209  bool m_dBClusterArnHasBeenSet;
210 
211  Aws::Vector<Aws::String> m_readers;
212  bool m_readersHasBeenSet;
213 
214  bool m_isWriter;
215  bool m_isWriterHasBeenSet;
216 
217  WriteForwardingStatus m_globalWriteForwardingStatus;
218  bool m_globalWriteForwardingStatusHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace RDS
223 } // namespace Aws
Aws::RDS::Model::GlobalClusterMember::SetDBClusterArn
void SetDBClusterArn(Aws::String &&value)
Definition: GlobalClusterMember.h:63
WriteForwardingStatus.h
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::GlobalClusterMember::AddReaders
GlobalClusterMember & AddReaders(const Aws::String &value)
Definition: GlobalClusterMember.h:126
Aws::RDS::Model::GlobalClusterMember::SetReaders
void SetReaders(Aws::Vector< Aws::String > &&value)
Definition: GlobalClusterMember.h:108
Aws::RDS::Model::GlobalClusterMember::GlobalWriteForwardingStatusHasBeenSet
bool GlobalWriteForwardingStatusHasBeenSet() const
Definition: GlobalClusterMember.h:180
Aws::RDS::Model::GlobalClusterMember::WithDBClusterArn
GlobalClusterMember & WithDBClusterArn(Aws::String &&value)
Definition: GlobalClusterMember.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::GlobalClusterMember::SetGlobalWriteForwardingStatus
void SetGlobalWriteForwardingStatus(WriteForwardingStatus &&value)
Definition: GlobalClusterMember.h:192
AWSStreamFwd.h
Aws::RDS::Model::GlobalClusterMember::GetGlobalWriteForwardingStatus
const WriteForwardingStatus & GetGlobalWriteForwardingStatus() const
Definition: GlobalClusterMember.h:174
Aws::RDS::Model::GlobalClusterMember::SetDBClusterArn
void SetDBClusterArn(const char *value)
Definition: GlobalClusterMember.h:68
AWSVector.h
Aws::RDS::Model::GlobalClusterMember::GlobalClusterMember
GlobalClusterMember(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::WriteForwardingStatus
WriteForwardingStatus
Definition: WriteForwardingStatus.h:17
Aws::RDS::Model::GlobalClusterMember::operator=
GlobalClusterMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::GlobalClusterMember::GetIsWriter
bool GetIsWriter() const
Definition: GlobalClusterMember.h:146
Aws::RDS::Model::GlobalClusterMember::WithReaders
GlobalClusterMember & WithReaders(const Aws::Vector< Aws::String > &value)
Definition: GlobalClusterMember.h:114
Aws::RDS::Model::GlobalClusterMember::GlobalClusterMember
GlobalClusterMember()
RDS_EXPORTS.h
Aws::RDS::Model::GlobalClusterMember::WithGlobalWriteForwardingStatus
GlobalClusterMember & WithGlobalWriteForwardingStatus(WriteForwardingStatus &&value)
Definition: GlobalClusterMember.h:204
Aws::RDS::Model::GlobalClusterMember::WithDBClusterArn
GlobalClusterMember & WithDBClusterArn(const Aws::String &value)
Definition: GlobalClusterMember.h:73
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::GlobalClusterMember::ReadersHasBeenSet
bool ReadersHasBeenSet() const
Definition: GlobalClusterMember.h:96
Aws::RDS::Model::GlobalClusterMember::WithGlobalWriteForwardingStatus
GlobalClusterMember & WithGlobalWriteForwardingStatus(const WriteForwardingStatus &value)
Definition: GlobalClusterMember.h:198
Aws::RDS::Model::GlobalClusterMember::WithDBClusterArn
GlobalClusterMember & WithDBClusterArn(const char *value)
Definition: GlobalClusterMember.h:83
AWSString.h
Aws::RDS::Model::GlobalClusterMember::WithIsWriter
GlobalClusterMember & WithIsWriter(bool value)
Definition: GlobalClusterMember.h:167
Aws::RDS::Model::GlobalClusterMember::AddReaders
GlobalClusterMember & AddReaders(Aws::String &&value)
Definition: GlobalClusterMember.h:132
Aws::RDS::Model::GlobalClusterMember::SetIsWriter
void SetIsWriter(bool value)
Definition: GlobalClusterMember.h:160
Aws::RDS::Model::GlobalClusterMember::SetDBClusterArn
void SetDBClusterArn(const Aws::String &value)
Definition: GlobalClusterMember.h:58
Aws::RDS::Model::GlobalClusterMember::GetDBClusterArn
const Aws::String & GetDBClusterArn() const
Definition: GlobalClusterMember.h:48
Aws::RDS::Model::GlobalClusterMember
Definition: GlobalClusterMember.h:35
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::GlobalClusterMember::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::GlobalClusterMember::AddReaders
GlobalClusterMember & AddReaders(const char *value)
Definition: GlobalClusterMember.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::GlobalClusterMember::GetReaders
const Aws::Vector< Aws::String > & GetReaders() const
Definition: GlobalClusterMember.h:90
Aws::RDS::Model::GlobalClusterMember::SetGlobalWriteForwardingStatus
void SetGlobalWriteForwardingStatus(const WriteForwardingStatus &value)
Definition: GlobalClusterMember.h:186
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::GlobalClusterMember::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::GlobalClusterMember::IsWriterHasBeenSet
bool IsWriterHasBeenSet() const
Definition: GlobalClusterMember.h:153
Aws::RDS::Model::GlobalClusterMember::WithReaders
GlobalClusterMember & WithReaders(Aws::Vector< Aws::String > &&value)
Definition: GlobalClusterMember.h:120
Aws::RDS::Model::GlobalClusterMember::DBClusterArnHasBeenSet
bool DBClusterArnHasBeenSet() const
Definition: GlobalClusterMember.h:53
Aws::RDS::Model::GlobalClusterMember::SetReaders
void SetReaders(const Aws::Vector< Aws::String > &value)
Definition: GlobalClusterMember.h:102