AWS SDK for C++  1.9.108
AWS SDK for C++
DBClusterMember.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
47 
51  inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
52 
56  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
57 
61  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
62 
66  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
67 
71  inline DBClusterMember& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
72 
76  inline DBClusterMember& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
77 
81  inline DBClusterMember& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
82 
83 
88  inline bool GetIsClusterWriter() const{ return m_isClusterWriter; }
89 
94  inline bool IsClusterWriterHasBeenSet() const { return m_isClusterWriterHasBeenSet; }
95 
100  inline void SetIsClusterWriter(bool value) { m_isClusterWriterHasBeenSet = true; m_isClusterWriter = value; }
101 
106  inline DBClusterMember& WithIsClusterWriter(bool value) { SetIsClusterWriter(value); return *this;}
107 
108 
113  inline const Aws::String& GetDBClusterParameterGroupStatus() const{ return m_dBClusterParameterGroupStatus; }
114 
119  inline bool DBClusterParameterGroupStatusHasBeenSet() const { return m_dBClusterParameterGroupStatusHasBeenSet; }
120 
125  inline void SetDBClusterParameterGroupStatus(const Aws::String& value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus = value; }
126 
131  inline void SetDBClusterParameterGroupStatus(Aws::String&& value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus = std::move(value); }
132 
137  inline void SetDBClusterParameterGroupStatus(const char* value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus.assign(value); }
138 
143  inline DBClusterMember& WithDBClusterParameterGroupStatus(const Aws::String& value) { SetDBClusterParameterGroupStatus(value); return *this;}
144 
149  inline DBClusterMember& WithDBClusterParameterGroupStatus(Aws::String&& value) { SetDBClusterParameterGroupStatus(std::move(value)); return *this;}
150 
155  inline DBClusterMember& WithDBClusterParameterGroupStatus(const char* value) { SetDBClusterParameterGroupStatus(value); return *this;}
156 
157 
166  inline int GetPromotionTier() const{ return m_promotionTier; }
167 
176  inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; }
177 
186  inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; }
187 
196  inline DBClusterMember& WithPromotionTier(int value) { SetPromotionTier(value); return *this;}
197 
198  private:
199 
200  Aws::String m_dBInstanceIdentifier;
201  bool m_dBInstanceIdentifierHasBeenSet;
202 
203  bool m_isClusterWriter;
204  bool m_isClusterWriterHasBeenSet;
205 
206  Aws::String m_dBClusterParameterGroupStatus;
207  bool m_dBClusterParameterGroupStatusHasBeenSet;
208 
209  int m_promotionTier;
210  bool m_promotionTierHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace RDS
215 } // namespace Aws
Aws::RDS::Model::DBClusterMember::GetDBInstanceIdentifier
const Aws::String & GetDBInstanceIdentifier() const
Definition: DBClusterMember.h:46
Aws::RDS::Model::DBClusterMember::DBInstanceIdentifierHasBeenSet
bool DBInstanceIdentifierHasBeenSet() const
Definition: DBClusterMember.h:51
Aws::RDS::Model::DBClusterMember::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::DBClusterMember::WithDBInstanceIdentifier
DBClusterMember & WithDBInstanceIdentifier(Aws::String &&value)
Definition: DBClusterMember.h:76
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DBClusterMember::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(Aws::String &&value)
Definition: DBClusterMember.h:61
Aws::RDS::Model::DBClusterMember::SetDBClusterParameterGroupStatus
void SetDBClusterParameterGroupStatus(Aws::String &&value)
Definition: DBClusterMember.h:131
AWSStreamFwd.h
Aws::RDS::Model::DBClusterMember::GetPromotionTier
int GetPromotionTier() const
Definition: DBClusterMember.h:166
Aws::RDS::Model::DBClusterMember::SetPromotionTier
void SetPromotionTier(int value)
Definition: DBClusterMember.h:186
Aws::RDS::Model::DBClusterMember::WithDBClusterParameterGroupStatus
DBClusterMember & WithDBClusterParameterGroupStatus(const char *value)
Definition: DBClusterMember.h:155
Aws::RDS::Model::DBClusterMember::WithDBClusterParameterGroupStatus
DBClusterMember & WithDBClusterParameterGroupStatus(const Aws::String &value)
Definition: DBClusterMember.h:143
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::DBClusterMember::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const Aws::String &value)
Definition: DBClusterMember.h:56
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::DBClusterMember::WithDBInstanceIdentifier
DBClusterMember & WithDBInstanceIdentifier(const Aws::String &value)
Definition: DBClusterMember.h:71
Aws::RDS::Model::DBClusterMember::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const char *value)
Definition: DBClusterMember.h:66
Aws::RDS::Model::DBClusterMember::GetDBClusterParameterGroupStatus
const Aws::String & GetDBClusterParameterGroupStatus() const
Definition: DBClusterMember.h:113
Aws::RDS::Model::DBClusterMember::DBClusterMember
DBClusterMember()
Aws::RDS::Model::DBClusterMember::WithDBClusterParameterGroupStatus
DBClusterMember & WithDBClusterParameterGroupStatus(Aws::String &&value)
Definition: DBClusterMember.h:149
AWSString.h
Aws::RDS::Model::DBClusterMember::SetDBClusterParameterGroupStatus
void SetDBClusterParameterGroupStatus(const char *value)
Definition: DBClusterMember.h:137
Aws::RDS::Model::DBClusterMember::SetIsClusterWriter
void SetIsClusterWriter(bool value)
Definition: DBClusterMember.h:100
Aws::RDS::Model::DBClusterMember::SetDBClusterParameterGroupStatus
void SetDBClusterParameterGroupStatus(const Aws::String &value)
Definition: DBClusterMember.h:125
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DBClusterMember
Definition: DBClusterMember.h:33
Aws::RDS::Model::DBClusterMember::GetIsClusterWriter
bool GetIsClusterWriter() const
Definition: DBClusterMember.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DBClusterMember::WithDBInstanceIdentifier
DBClusterMember & WithDBInstanceIdentifier(const char *value)
Definition: DBClusterMember.h:81
Aws::RDS::Model::DBClusterMember::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::DBClusterMember::PromotionTierHasBeenSet
bool PromotionTierHasBeenSet() const
Definition: DBClusterMember.h:176
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::DBClusterMember::DBClusterParameterGroupStatusHasBeenSet
bool DBClusterParameterGroupStatusHasBeenSet() const
Definition: DBClusterMember.h:119
Aws::RDS::Model::DBClusterMember::WithPromotionTier
DBClusterMember & WithPromotionTier(int value)
Definition: DBClusterMember.h:196
Aws::RDS::Model::DBClusterMember::IsClusterWriterHasBeenSet
bool IsClusterWriterHasBeenSet() const
Definition: DBClusterMember.h:94
Aws::RDS::Model::DBClusterMember::WithIsClusterWriter
DBClusterMember & WithIsClusterWriter(bool value)
Definition: DBClusterMember.h:106
Aws::RDS::Model::DBClusterMember::operator=
DBClusterMember & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBClusterMember::DBClusterMember
DBClusterMember(const Aws::Utils::Xml::XmlNode &xmlNode)