AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailoverState.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/rds/model/FailoverStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_RDS_API FailoverState();
39 AWS_RDS_API FailoverState(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_RDS_API FailoverState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
62 inline const FailoverStatus& GetStatus() const{ return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(const FailoverStatus& value) { m_statusHasBeenSet = true; m_status = value; }
65 inline void SetStatus(FailoverStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 inline FailoverState& WithStatus(const FailoverStatus& value) { SetStatus(value); return *this;}
67 inline FailoverState& WithStatus(FailoverStatus&& value) { SetStatus(std::move(value)); return *this;}
69
71
75 inline const Aws::String& GetFromDbClusterArn() const{ return m_fromDbClusterArn; }
76 inline bool FromDbClusterArnHasBeenSet() const { return m_fromDbClusterArnHasBeenSet; }
77 inline void SetFromDbClusterArn(const Aws::String& value) { m_fromDbClusterArnHasBeenSet = true; m_fromDbClusterArn = value; }
78 inline void SetFromDbClusterArn(Aws::String&& value) { m_fromDbClusterArnHasBeenSet = true; m_fromDbClusterArn = std::move(value); }
79 inline void SetFromDbClusterArn(const char* value) { m_fromDbClusterArnHasBeenSet = true; m_fromDbClusterArn.assign(value); }
80 inline FailoverState& WithFromDbClusterArn(const Aws::String& value) { SetFromDbClusterArn(value); return *this;}
81 inline FailoverState& WithFromDbClusterArn(Aws::String&& value) { SetFromDbClusterArn(std::move(value)); return *this;}
82 inline FailoverState& WithFromDbClusterArn(const char* value) { SetFromDbClusterArn(value); return *this;}
84
86
90 inline const Aws::String& GetToDbClusterArn() const{ return m_toDbClusterArn; }
91 inline bool ToDbClusterArnHasBeenSet() const { return m_toDbClusterArnHasBeenSet; }
92 inline void SetToDbClusterArn(const Aws::String& value) { m_toDbClusterArnHasBeenSet = true; m_toDbClusterArn = value; }
93 inline void SetToDbClusterArn(Aws::String&& value) { m_toDbClusterArnHasBeenSet = true; m_toDbClusterArn = std::move(value); }
94 inline void SetToDbClusterArn(const char* value) { m_toDbClusterArnHasBeenSet = true; m_toDbClusterArn.assign(value); }
95 inline FailoverState& WithToDbClusterArn(const Aws::String& value) { SetToDbClusterArn(value); return *this;}
96 inline FailoverState& WithToDbClusterArn(Aws::String&& value) { SetToDbClusterArn(std::move(value)); return *this;}
97 inline FailoverState& WithToDbClusterArn(const char* value) { SetToDbClusterArn(value); return *this;}
99
101
106 inline bool GetIsDataLossAllowed() const{ return m_isDataLossAllowed; }
107 inline bool IsDataLossAllowedHasBeenSet() const { return m_isDataLossAllowedHasBeenSet; }
108 inline void SetIsDataLossAllowed(bool value) { m_isDataLossAllowedHasBeenSet = true; m_isDataLossAllowed = value; }
109 inline FailoverState& WithIsDataLossAllowed(bool value) { SetIsDataLossAllowed(value); return *this;}
111 private:
112
113 FailoverStatus m_status;
114 bool m_statusHasBeenSet = false;
115
116 Aws::String m_fromDbClusterArn;
117 bool m_fromDbClusterArnHasBeenSet = false;
118
119 Aws::String m_toDbClusterArn;
120 bool m_toDbClusterArnHasBeenSet = false;
121
122 bool m_isDataLossAllowed;
123 bool m_isDataLossAllowedHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace RDS
128} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FailoverState & WithStatus(const FailoverStatus &value)
const Aws::String & GetToDbClusterArn() const
void SetFromDbClusterArn(Aws::String &&value)
FailoverState & WithToDbClusterArn(Aws::String &&value)
FailoverState & WithToDbClusterArn(const Aws::String &value)
AWS_RDS_API FailoverState(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FailoverState & WithToDbClusterArn(const char *value)
void SetToDbClusterArn(Aws::String &&value)
const FailoverStatus & GetStatus() const
void SetToDbClusterArn(const Aws::String &value)
FailoverState & WithStatus(FailoverStatus &&value)
void SetToDbClusterArn(const char *value)
FailoverState & WithFromDbClusterArn(const char *value)
FailoverState & WithFromDbClusterArn(const Aws::String &value)
FailoverState & WithIsDataLossAllowed(bool value)
AWS_RDS_API FailoverState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetFromDbClusterArn() const
void SetIsDataLossAllowed(bool value)
void SetStatus(const FailoverStatus &value)
void SetStatus(FailoverStatus &&value)
void SetFromDbClusterArn(const char *value)
void SetFromDbClusterArn(const Aws::String &value)
FailoverState & WithFromDbClusterArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream