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/docdb/DocDB_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 DocDB
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_DOCDB_API GlobalClusterMember();
38 AWS_DOCDB_API GlobalClusterMember(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDBClusterArn() const{ return m_dBClusterArn; }
50 inline bool DBClusterArnHasBeenSet() const { return m_dBClusterArnHasBeenSet; }
51 inline void SetDBClusterArn(const Aws::String& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = value; }
52 inline void SetDBClusterArn(Aws::String&& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = std::move(value); }
53 inline void SetDBClusterArn(const char* value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn.assign(value); }
54 inline GlobalClusterMember& WithDBClusterArn(const Aws::String& value) { SetDBClusterArn(value); return *this;}
55 inline GlobalClusterMember& WithDBClusterArn(Aws::String&& value) { SetDBClusterArn(std::move(value)); return *this;}
56 inline GlobalClusterMember& WithDBClusterArn(const char* value) { SetDBClusterArn(value); return *this;}
58
60
64 inline const Aws::Vector<Aws::String>& GetReaders() const{ return m_readers; }
65 inline bool ReadersHasBeenSet() const { return m_readersHasBeenSet; }
66 inline void SetReaders(const Aws::Vector<Aws::String>& value) { m_readersHasBeenSet = true; m_readers = value; }
67 inline void SetReaders(Aws::Vector<Aws::String>&& value) { m_readersHasBeenSet = true; m_readers = std::move(value); }
68 inline GlobalClusterMember& WithReaders(const Aws::Vector<Aws::String>& value) { SetReaders(value); return *this;}
69 inline GlobalClusterMember& WithReaders(Aws::Vector<Aws::String>&& value) { SetReaders(std::move(value)); return *this;}
70 inline GlobalClusterMember& AddReaders(const Aws::String& value) { m_readersHasBeenSet = true; m_readers.push_back(value); return *this; }
71 inline GlobalClusterMember& AddReaders(Aws::String&& value) { m_readersHasBeenSet = true; m_readers.push_back(std::move(value)); return *this; }
72 inline GlobalClusterMember& AddReaders(const char* value) { m_readersHasBeenSet = true; m_readers.push_back(value); return *this; }
74
76
81 inline bool GetIsWriter() const{ return m_isWriter; }
82 inline bool IsWriterHasBeenSet() const { return m_isWriterHasBeenSet; }
83 inline void SetIsWriter(bool value) { m_isWriterHasBeenSet = true; m_isWriter = value; }
84 inline GlobalClusterMember& WithIsWriter(bool value) { SetIsWriter(value); return *this;}
86 private:
87
88 Aws::String m_dBClusterArn;
89 bool m_dBClusterArnHasBeenSet = false;
90
92 bool m_readersHasBeenSet = false;
93
94 bool m_isWriter;
95 bool m_isWriterHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace DocDB
100} // namespace Aws
GlobalClusterMember & WithDBClusterArn(Aws::String &&value)
AWS_DOCDB_API GlobalClusterMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalClusterMember & WithReaders(const Aws::Vector< Aws::String > &value)
GlobalClusterMember & AddReaders(const Aws::String &value)
void SetDBClusterArn(const Aws::String &value)
GlobalClusterMember & WithIsWriter(bool value)
GlobalClusterMember & AddReaders(const char *value)
void SetReaders(const Aws::Vector< Aws::String > &value)
GlobalClusterMember & AddReaders(Aws::String &&value)
GlobalClusterMember & WithDBClusterArn(const Aws::String &value)
const Aws::String & GetDBClusterArn() const
GlobalClusterMember & WithDBClusterArn(const char *value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Aws::String > & GetReaders() const
void SetReaders(Aws::Vector< Aws::String > &&value)
AWS_DOCDB_API GlobalClusterMember(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
GlobalClusterMember & WithReaders(Aws::Vector< 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