AWS SDK for C++  1.9.104
AWS SDK for C++
FailoverState.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace RDS
23 {
24 namespace Model
25 {
26 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
60  inline const FailoverStatus& GetStatus() const{ return m_status; }
61 
76  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 
92  inline void SetStatus(const FailoverStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 
108  inline void SetStatus(FailoverStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
109 
124  inline FailoverState& WithStatus(const FailoverStatus& value) { SetStatus(value); return *this;}
125 
140  inline FailoverState& WithStatus(FailoverStatus&& value) { SetStatus(std::move(value)); return *this;}
141 
142 
147  inline const Aws::String& GetFromDbClusterArn() const{ return m_fromDbClusterArn; }
148 
153  inline bool FromDbClusterArnHasBeenSet() const { return m_fromDbClusterArnHasBeenSet; }
154 
159  inline void SetFromDbClusterArn(const Aws::String& value) { m_fromDbClusterArnHasBeenSet = true; m_fromDbClusterArn = value; }
160 
165  inline void SetFromDbClusterArn(Aws::String&& value) { m_fromDbClusterArnHasBeenSet = true; m_fromDbClusterArn = std::move(value); }
166 
171  inline void SetFromDbClusterArn(const char* value) { m_fromDbClusterArnHasBeenSet = true; m_fromDbClusterArn.assign(value); }
172 
177  inline FailoverState& WithFromDbClusterArn(const Aws::String& value) { SetFromDbClusterArn(value); return *this;}
178 
183  inline FailoverState& WithFromDbClusterArn(Aws::String&& value) { SetFromDbClusterArn(std::move(value)); return *this;}
184 
189  inline FailoverState& WithFromDbClusterArn(const char* value) { SetFromDbClusterArn(value); return *this;}
190 
191 
196  inline const Aws::String& GetToDbClusterArn() const{ return m_toDbClusterArn; }
197 
202  inline bool ToDbClusterArnHasBeenSet() const { return m_toDbClusterArnHasBeenSet; }
203 
208  inline void SetToDbClusterArn(const Aws::String& value) { m_toDbClusterArnHasBeenSet = true; m_toDbClusterArn = value; }
209 
214  inline void SetToDbClusterArn(Aws::String&& value) { m_toDbClusterArnHasBeenSet = true; m_toDbClusterArn = std::move(value); }
215 
220  inline void SetToDbClusterArn(const char* value) { m_toDbClusterArnHasBeenSet = true; m_toDbClusterArn.assign(value); }
221 
226  inline FailoverState& WithToDbClusterArn(const Aws::String& value) { SetToDbClusterArn(value); return *this;}
227 
232  inline FailoverState& WithToDbClusterArn(Aws::String&& value) { SetToDbClusterArn(std::move(value)); return *this;}
233 
238  inline FailoverState& WithToDbClusterArn(const char* value) { SetToDbClusterArn(value); return *this;}
239 
240  private:
241 
242  FailoverStatus m_status;
243  bool m_statusHasBeenSet;
244 
245  Aws::String m_fromDbClusterArn;
246  bool m_fromDbClusterArnHasBeenSet;
247 
248  Aws::String m_toDbClusterArn;
249  bool m_toDbClusterArnHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace RDS
254 } // namespace Aws
Aws::RDS::Model::FailoverStatus
FailoverStatus
Definition: FailoverStatus.h:17
Aws::RDS::Model::FailoverState::SetStatus
void SetStatus(FailoverStatus &&value)
Definition: FailoverState.h:108
Aws::RDS::Model::FailoverState::WithToDbClusterArn
FailoverState & WithToDbClusterArn(const Aws::String &value)
Definition: FailoverState.h:226
Aws::RDS::Model::FailoverState::WithToDbClusterArn
FailoverState & WithToDbClusterArn(const char *value)
Definition: FailoverState.h:238
Aws::RDS::Model::FailoverState::SetToDbClusterArn
void SetToDbClusterArn(Aws::String &&value)
Definition: FailoverState.h:214
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::FailoverState::WithStatus
FailoverState & WithStatus(FailoverStatus &&value)
Definition: FailoverState.h:140
Aws::RDS::Model::FailoverState::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::RDS::Model::FailoverState::GetFromDbClusterArn
const Aws::String & GetFromDbClusterArn() const
Definition: FailoverState.h:147
Aws::RDS::Model::FailoverState::SetToDbClusterArn
void SetToDbClusterArn(const Aws::String &value)
Definition: FailoverState.h:208
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
RDS_EXPORTS.h
Aws::RDS::Model::FailoverState::WithStatus
FailoverState & WithStatus(const FailoverStatus &value)
Definition: FailoverState.h:124
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::FailoverState::SetFromDbClusterArn
void SetFromDbClusterArn(Aws::String &&value)
Definition: FailoverState.h:165
FailoverStatus.h
AWSString.h
Aws::RDS::Model::FailoverState::SetStatus
void SetStatus(const FailoverStatus &value)
Definition: FailoverState.h:92
Aws::RDS::Model::FailoverState::WithToDbClusterArn
FailoverState & WithToDbClusterArn(Aws::String &&value)
Definition: FailoverState.h:232
Aws::RDS::Model::FailoverState::SetFromDbClusterArn
void SetFromDbClusterArn(const char *value)
Definition: FailoverState.h:171
Aws::RDS::Model::FailoverState::GetStatus
const FailoverStatus & GetStatus() const
Definition: FailoverState.h:60
Aws::RDS::Model::FailoverState::WithFromDbClusterArn
FailoverState & WithFromDbClusterArn(const Aws::String &value)
Definition: FailoverState.h:177
Aws::RDS::Model::FailoverState::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: FailoverState.h:76
Aws::RDS::Model::FailoverState::WithFromDbClusterArn
FailoverState & WithFromDbClusterArn(Aws::String &&value)
Definition: FailoverState.h:183
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::FailoverState::WithFromDbClusterArn
FailoverState & WithFromDbClusterArn(const char *value)
Definition: FailoverState.h:189
Aws::RDS::Model::FailoverState::ToDbClusterArnHasBeenSet
bool ToDbClusterArnHasBeenSet() const
Definition: FailoverState.h:202
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::FailoverState::FailoverState
FailoverState(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::FailoverState::FailoverState
FailoverState()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::FailoverState::FromDbClusterArnHasBeenSet
bool FromDbClusterArnHasBeenSet() const
Definition: FailoverState.h:153
Aws::RDS::Model::FailoverState::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::FailoverState
Definition: FailoverState.h:36
Aws::RDS::Model::FailoverState::SetToDbClusterArn
void SetToDbClusterArn(const char *value)
Definition: FailoverState.h:220
Aws::RDS::Model::FailoverState::operator=
FailoverState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::FailoverState::GetToDbClusterArn
const Aws::String & GetToDbClusterArn() const
Definition: FailoverState.h:196
Aws::RDS::Model::FailoverState::SetFromDbClusterArn
void SetFromDbClusterArn(const Aws::String &value)
Definition: FailoverState.h:159