AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FailoverState.h
1
6#pragma once
7#include <aws/neptune/Neptune_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/neptune/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 Neptune
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_NEPTUNE_API FailoverState() = default;
39 AWS_NEPTUNE_API FailoverState(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_NEPTUNE_API FailoverState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
62 inline FailoverStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(FailoverStatus value) { m_statusHasBeenSet = true; m_status = value; }
65 inline FailoverState& WithStatus(FailoverStatus value) { SetStatus(value); return *this;}
67
69
73 inline const Aws::String& GetFromDbClusterArn() const { return m_fromDbClusterArn; }
74 inline bool FromDbClusterArnHasBeenSet() const { return m_fromDbClusterArnHasBeenSet; }
75 template<typename FromDbClusterArnT = Aws::String>
76 void SetFromDbClusterArn(FromDbClusterArnT&& value) { m_fromDbClusterArnHasBeenSet = true; m_fromDbClusterArn = std::forward<FromDbClusterArnT>(value); }
77 template<typename FromDbClusterArnT = Aws::String>
78 FailoverState& WithFromDbClusterArn(FromDbClusterArnT&& value) { SetFromDbClusterArn(std::forward<FromDbClusterArnT>(value)); return *this;}
80
82
86 inline const Aws::String& GetToDbClusterArn() const { return m_toDbClusterArn; }
87 inline bool ToDbClusterArnHasBeenSet() const { return m_toDbClusterArnHasBeenSet; }
88 template<typename ToDbClusterArnT = Aws::String>
89 void SetToDbClusterArn(ToDbClusterArnT&& value) { m_toDbClusterArnHasBeenSet = true; m_toDbClusterArn = std::forward<ToDbClusterArnT>(value); }
90 template<typename ToDbClusterArnT = Aws::String>
91 FailoverState& WithToDbClusterArn(ToDbClusterArnT&& value) { SetToDbClusterArn(std::forward<ToDbClusterArnT>(value)); return *this;}
93
95
100 inline bool GetIsDataLossAllowed() const { return m_isDataLossAllowed; }
101 inline bool IsDataLossAllowedHasBeenSet() const { return m_isDataLossAllowedHasBeenSet; }
102 inline void SetIsDataLossAllowed(bool value) { m_isDataLossAllowedHasBeenSet = true; m_isDataLossAllowed = value; }
103 inline FailoverState& WithIsDataLossAllowed(bool value) { SetIsDataLossAllowed(value); return *this;}
105 private:
106
108 bool m_statusHasBeenSet = false;
109
110 Aws::String m_fromDbClusterArn;
111 bool m_fromDbClusterArnHasBeenSet = false;
112
113 Aws::String m_toDbClusterArn;
114 bool m_toDbClusterArnHasBeenSet = false;
115
116 bool m_isDataLossAllowed{false};
117 bool m_isDataLossAllowedHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Neptune
122} // namespace Aws
AWS_NEPTUNE_API FailoverState()=default
void SetFromDbClusterArn(FromDbClusterArnT &&value)
void SetStatus(FailoverStatus value)
FailoverState & WithStatus(FailoverStatus value)
FailoverState & WithIsDataLossAllowed(bool value)
const Aws::String & GetFromDbClusterArn() const
AWS_NEPTUNE_API FailoverState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FailoverStatus GetStatus() const
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FailoverState & WithToDbClusterArn(ToDbClusterArnT &&value)
AWS_NEPTUNE_API FailoverState(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetToDbClusterArn() const
void SetToDbClusterArn(ToDbClusterArnT &&value)
FailoverState & WithFromDbClusterArn(FromDbClusterArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream