AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GlobalClusterMember.h
1
6#pragma once
7#include <aws/rds/RDS_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/rds/model/WriteForwardingStatus.h>
12#include <aws/rds/model/GlobalClusterMemberSynchronizationStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_RDS_API GlobalClusterMember();
40 AWS_RDS_API GlobalClusterMember(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
52 inline const Aws::String& GetDBClusterArn() const{ return m_dBClusterArn; }
53 inline bool DBClusterArnHasBeenSet() const { return m_dBClusterArnHasBeenSet; }
54 inline void SetDBClusterArn(const Aws::String& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = value; }
55 inline void SetDBClusterArn(Aws::String&& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = std::move(value); }
56 inline void SetDBClusterArn(const char* value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn.assign(value); }
57 inline GlobalClusterMember& WithDBClusterArn(const Aws::String& value) { SetDBClusterArn(value); return *this;}
58 inline GlobalClusterMember& WithDBClusterArn(Aws::String&& value) { SetDBClusterArn(std::move(value)); return *this;}
59 inline GlobalClusterMember& WithDBClusterArn(const char* value) { SetDBClusterArn(value); return *this;}
61
63
67 inline const Aws::Vector<Aws::String>& GetReaders() const{ return m_readers; }
68 inline bool ReadersHasBeenSet() const { return m_readersHasBeenSet; }
69 inline void SetReaders(const Aws::Vector<Aws::String>& value) { m_readersHasBeenSet = true; m_readers = value; }
70 inline void SetReaders(Aws::Vector<Aws::String>&& value) { m_readersHasBeenSet = true; m_readers = std::move(value); }
71 inline GlobalClusterMember& WithReaders(const Aws::Vector<Aws::String>& value) { SetReaders(value); return *this;}
72 inline GlobalClusterMember& WithReaders(Aws::Vector<Aws::String>&& value) { SetReaders(std::move(value)); return *this;}
73 inline GlobalClusterMember& AddReaders(const Aws::String& value) { m_readersHasBeenSet = true; m_readers.push_back(value); return *this; }
74 inline GlobalClusterMember& AddReaders(Aws::String&& value) { m_readersHasBeenSet = true; m_readers.push_back(std::move(value)); return *this; }
75 inline GlobalClusterMember& AddReaders(const char* value) { m_readersHasBeenSet = true; m_readers.push_back(value); return *this; }
77
79
83 inline bool GetIsWriter() const{ return m_isWriter; }
84 inline bool IsWriterHasBeenSet() const { return m_isWriterHasBeenSet; }
85 inline void SetIsWriter(bool value) { m_isWriterHasBeenSet = true; m_isWriter = value; }
86 inline GlobalClusterMember& WithIsWriter(bool value) { SetIsWriter(value); return *this;}
88
90
94 inline const WriteForwardingStatus& GetGlobalWriteForwardingStatus() const{ return m_globalWriteForwardingStatus; }
95 inline bool GlobalWriteForwardingStatusHasBeenSet() const { return m_globalWriteForwardingStatusHasBeenSet; }
96 inline void SetGlobalWriteForwardingStatus(const WriteForwardingStatus& value) { m_globalWriteForwardingStatusHasBeenSet = true; m_globalWriteForwardingStatus = value; }
97 inline void SetGlobalWriteForwardingStatus(WriteForwardingStatus&& value) { m_globalWriteForwardingStatusHasBeenSet = true; m_globalWriteForwardingStatus = std::move(value); }
101
103
107 inline const GlobalClusterMemberSynchronizationStatus& GetSynchronizationStatus() const{ return m_synchronizationStatus; }
108 inline bool SynchronizationStatusHasBeenSet() const { return m_synchronizationStatusHasBeenSet; }
109 inline void SetSynchronizationStatus(const GlobalClusterMemberSynchronizationStatus& value) { m_synchronizationStatusHasBeenSet = true; m_synchronizationStatus = value; }
110 inline void SetSynchronizationStatus(GlobalClusterMemberSynchronizationStatus&& value) { m_synchronizationStatusHasBeenSet = true; m_synchronizationStatus = std::move(value); }
114 private:
115
116 Aws::String m_dBClusterArn;
117 bool m_dBClusterArnHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_readers;
120 bool m_readersHasBeenSet = false;
121
122 bool m_isWriter;
123 bool m_isWriterHasBeenSet = false;
124
125 WriteForwardingStatus m_globalWriteForwardingStatus;
126 bool m_globalWriteForwardingStatusHasBeenSet = false;
127
128 GlobalClusterMemberSynchronizationStatus m_synchronizationStatus;
129 bool m_synchronizationStatusHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace RDS
134} // namespace Aws
AWS_RDS_API GlobalClusterMember(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalClusterMember & WithReaders(Aws::Vector< Aws::String > &&value)
void SetGlobalWriteForwardingStatus(const WriteForwardingStatus &value)
AWS_RDS_API GlobalClusterMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDBClusterArn(const Aws::String &value)
void SetDBClusterArn(Aws::String &&value)
GlobalClusterMember & WithDBClusterArn(Aws::String &&value)
GlobalClusterMember & WithDBClusterArn(const Aws::String &value)
void SetReaders(const Aws::Vector< Aws::String > &value)
GlobalClusterMember & WithIsWriter(bool value)
GlobalClusterMember & WithGlobalWriteForwardingStatus(const WriteForwardingStatus &value)
GlobalClusterMember & WithSynchronizationStatus(const GlobalClusterMemberSynchronizationStatus &value)
const Aws::Vector< Aws::String > & GetReaders() const
GlobalClusterMember & WithGlobalWriteForwardingStatus(WriteForwardingStatus &&value)
GlobalClusterMember & AddReaders(const Aws::String &value)
void SetReaders(Aws::Vector< Aws::String > &&value)
const Aws::String & GetDBClusterArn() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const GlobalClusterMemberSynchronizationStatus & GetSynchronizationStatus() const
GlobalClusterMember & WithSynchronizationStatus(GlobalClusterMemberSynchronizationStatus &&value)
GlobalClusterMember & AddReaders(const char *value)
void SetGlobalWriteForwardingStatus(WriteForwardingStatus &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
GlobalClusterMember & WithReaders(const Aws::Vector< Aws::String > &value)
const WriteForwardingStatus & GetGlobalWriteForwardingStatus() const
void SetSynchronizationStatus(const GlobalClusterMemberSynchronizationStatus &value)
void SetSynchronizationStatus(GlobalClusterMemberSynchronizationStatus &&value)
GlobalClusterMember & WithDBClusterArn(const char *value)
GlobalClusterMember & AddReaders(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