AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
FailoverState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptune/Neptune_EXPORTS.h>
10#include <aws/neptune/model/FailoverStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace Neptune {
21namespace Model {
22
32 public:
33 AWS_NEPTUNE_API FailoverState() = default;
34 AWS_NEPTUNE_API FailoverState(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_NEPTUNE_API FailoverState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
56 inline FailoverStatus GetStatus() const { return m_status; }
57 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
58 inline void SetStatus(FailoverStatus value) {
59 m_statusHasBeenSet = true;
60 m_status = value;
61 }
63 SetStatus(value);
64 return *this;
65 }
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) {
77 m_fromDbClusterArnHasBeenSet = true;
78 m_fromDbClusterArn = std::forward<FromDbClusterArnT>(value);
79 }
80 template <typename FromDbClusterArnT = Aws::String>
81 FailoverState& WithFromDbClusterArn(FromDbClusterArnT&& value) {
82 SetFromDbClusterArn(std::forward<FromDbClusterArnT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetToDbClusterArn() const { return m_toDbClusterArn; }
93 inline bool ToDbClusterArnHasBeenSet() const { return m_toDbClusterArnHasBeenSet; }
94 template <typename ToDbClusterArnT = Aws::String>
95 void SetToDbClusterArn(ToDbClusterArnT&& value) {
96 m_toDbClusterArnHasBeenSet = true;
97 m_toDbClusterArn = std::forward<ToDbClusterArnT>(value);
98 }
99 template <typename ToDbClusterArnT = Aws::String>
100 FailoverState& WithToDbClusterArn(ToDbClusterArnT&& value) {
101 SetToDbClusterArn(std::forward<ToDbClusterArnT>(value));
102 return *this;
103 }
105
107
112 inline bool GetIsDataLossAllowed() const { return m_isDataLossAllowed; }
113 inline bool IsDataLossAllowedHasBeenSet() const { return m_isDataLossAllowedHasBeenSet; }
114 inline void SetIsDataLossAllowed(bool value) {
115 m_isDataLossAllowedHasBeenSet = true;
116 m_isDataLossAllowed = value;
117 }
120 return *this;
121 }
123 private:
125 bool m_statusHasBeenSet = false;
126
127 Aws::String m_fromDbClusterArn;
128 bool m_fromDbClusterArnHasBeenSet = false;
129
130 Aws::String m_toDbClusterArn;
131 bool m_toDbClusterArnHasBeenSet = false;
132
133 bool m_isDataLossAllowed{false};
134 bool m_isDataLossAllowedHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace Neptune
139} // 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