AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DBClusterMember.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace DocDB
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DOCDB_API DBClusterMember();
36 AWS_DOCDB_API DBClusterMember(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_DOCDB_API DBClusterMember& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
48 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
49 inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
50 inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
51 inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
52 inline DBClusterMember& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
53 inline DBClusterMember& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
54 inline DBClusterMember& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
56
58
62 inline bool GetIsClusterWriter() const{ return m_isClusterWriter; }
63 inline bool IsClusterWriterHasBeenSet() const { return m_isClusterWriterHasBeenSet; }
64 inline void SetIsClusterWriter(bool value) { m_isClusterWriterHasBeenSet = true; m_isClusterWriter = value; }
65 inline DBClusterMember& WithIsClusterWriter(bool value) { SetIsClusterWriter(value); return *this;}
67
69
73 inline const Aws::String& GetDBClusterParameterGroupStatus() const{ return m_dBClusterParameterGroupStatus; }
74 inline bool DBClusterParameterGroupStatusHasBeenSet() const { return m_dBClusterParameterGroupStatusHasBeenSet; }
75 inline void SetDBClusterParameterGroupStatus(const Aws::String& value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus = value; }
76 inline void SetDBClusterParameterGroupStatus(Aws::String&& value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus = std::move(value); }
77 inline void SetDBClusterParameterGroupStatus(const char* value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus.assign(value); }
82
84
89 inline int GetPromotionTier() const{ return m_promotionTier; }
90 inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; }
91 inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; }
92 inline DBClusterMember& WithPromotionTier(int value) { SetPromotionTier(value); return *this;}
94 private:
95
96 Aws::String m_dBInstanceIdentifier;
97 bool m_dBInstanceIdentifierHasBeenSet = false;
98
99 bool m_isClusterWriter;
100 bool m_isClusterWriterHasBeenSet = false;
101
102 Aws::String m_dBClusterParameterGroupStatus;
103 bool m_dBClusterParameterGroupStatusHasBeenSet = false;
104
105 int m_promotionTier;
106 bool m_promotionTierHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace DocDB
111} // namespace Aws
void SetDBClusterParameterGroupStatus(const char *value)
DBClusterMember & WithIsClusterWriter(bool value)
void SetDBInstanceIdentifier(Aws::String &&value)
void SetDBInstanceIdentifier(const Aws::String &value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBClusterMember & WithPromotionTier(int value)
const Aws::String & GetDBInstanceIdentifier() const
DBClusterMember & WithDBInstanceIdentifier(const char *value)
DBClusterMember & WithDBClusterParameterGroupStatus(Aws::String &&value)
DBClusterMember & WithDBClusterParameterGroupStatus(const Aws::String &value)
AWS_DOCDB_API DBClusterMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBClusterMember & WithDBInstanceIdentifier(const Aws::String &value)
void SetDBClusterParameterGroupStatus(const Aws::String &value)
DBClusterMember & WithDBInstanceIdentifier(Aws::String &&value)
void SetDBClusterParameterGroupStatus(Aws::String &&value)
DBClusterMember & WithDBClusterParameterGroupStatus(const char *value)
void SetDBInstanceIdentifier(const char *value)
AWS_DOCDB_API DBClusterMember(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDBClusterParameterGroupStatus() const
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream