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/neptune/Neptune_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 Neptune
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NEPTUNE_API GlobalClusterMember();
37 AWS_NEPTUNE_API GlobalClusterMember(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_NEPTUNE_API GlobalClusterMember& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetDBClusterArn() const{ return m_dBClusterArn; }
49 inline bool DBClusterArnHasBeenSet() const { return m_dBClusterArnHasBeenSet; }
50 inline void SetDBClusterArn(const Aws::String& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = value; }
51 inline void SetDBClusterArn(Aws::String&& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = std::move(value); }
52 inline void SetDBClusterArn(const char* value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn.assign(value); }
53 inline GlobalClusterMember& WithDBClusterArn(const Aws::String& value) { SetDBClusterArn(value); return *this;}
54 inline GlobalClusterMember& WithDBClusterArn(Aws::String&& value) { SetDBClusterArn(std::move(value)); return *this;}
55 inline GlobalClusterMember& WithDBClusterArn(const char* value) { SetDBClusterArn(value); return *this;}
57
59
63 inline const Aws::Vector<Aws::String>& GetReaders() const{ return m_readers; }
64 inline bool ReadersHasBeenSet() const { return m_readersHasBeenSet; }
65 inline void SetReaders(const Aws::Vector<Aws::String>& value) { m_readersHasBeenSet = true; m_readers = value; }
66 inline void SetReaders(Aws::Vector<Aws::String>&& value) { m_readersHasBeenSet = true; m_readers = std::move(value); }
67 inline GlobalClusterMember& WithReaders(const Aws::Vector<Aws::String>& value) { SetReaders(value); return *this;}
68 inline GlobalClusterMember& WithReaders(Aws::Vector<Aws::String>&& value) { SetReaders(std::move(value)); return *this;}
69 inline GlobalClusterMember& AddReaders(const Aws::String& value) { m_readersHasBeenSet = true; m_readers.push_back(value); return *this; }
70 inline GlobalClusterMember& AddReaders(Aws::String&& value) { m_readersHasBeenSet = true; m_readers.push_back(std::move(value)); return *this; }
71 inline GlobalClusterMember& AddReaders(const char* value) { m_readersHasBeenSet = true; m_readers.push_back(value); return *this; }
73
75
80 inline bool GetIsWriter() const{ return m_isWriter; }
81 inline bool IsWriterHasBeenSet() const { return m_isWriterHasBeenSet; }
82 inline void SetIsWriter(bool value) { m_isWriterHasBeenSet = true; m_isWriter = value; }
83 inline GlobalClusterMember& WithIsWriter(bool value) { SetIsWriter(value); return *this;}
85 private:
86
87 Aws::String m_dBClusterArn;
88 bool m_dBClusterArnHasBeenSet = false;
89
91 bool m_readersHasBeenSet = false;
92
93 bool m_isWriter;
94 bool m_isWriterHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Neptune
99} // namespace Aws
GlobalClusterMember & WithIsWriter(bool value)
GlobalClusterMember & WithReaders(const Aws::Vector< Aws::String > &value)
void SetReaders(const Aws::Vector< Aws::String > &value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
GlobalClusterMember & AddReaders(const Aws::String &value)
void SetDBClusterArn(const Aws::String &value)
GlobalClusterMember & AddReaders(const char *value)
const Aws::Vector< Aws::String > & GetReaders() const
AWS_NEPTUNE_API GlobalClusterMember(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
GlobalClusterMember & AddReaders(Aws::String &&value)
GlobalClusterMember & WithDBClusterArn(const Aws::String &value)
GlobalClusterMember & WithDBClusterArn(const char *value)
void SetReaders(Aws::Vector< Aws::String > &&value)
AWS_NEPTUNE_API GlobalClusterMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalClusterMember & WithDBClusterArn(Aws::String &&value)
const Aws::String & GetDBClusterArn() 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