AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBClusterStatusInfo.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/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
28 public:
29 AWS_RDS_API DBClusterStatusInfo() = default;
30 AWS_RDS_API DBClusterStatusInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetStatusType() const { return m_statusType; }
41 inline bool StatusTypeHasBeenSet() const { return m_statusTypeHasBeenSet; }
42 template <typename StatusTypeT = Aws::String>
43 void SetStatusType(StatusTypeT&& value) {
44 m_statusTypeHasBeenSet = true;
45 m_statusType = std::forward<StatusTypeT>(value);
46 }
47 template <typename StatusTypeT = Aws::String>
48 DBClusterStatusInfo& WithStatusType(StatusTypeT&& value) {
49 SetStatusType(std::forward<StatusTypeT>(value));
50 return *this;
51 }
53
55
58 inline bool GetNormal() const { return m_normal; }
59 inline bool NormalHasBeenSet() const { return m_normalHasBeenSet; }
60 inline void SetNormal(bool value) {
61 m_normalHasBeenSet = true;
62 m_normal = value;
63 }
64 inline DBClusterStatusInfo& WithNormal(bool value) {
65 SetNormal(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 template <typename StatusT = Aws::String>
77 void SetStatus(StatusT&& value) {
78 m_statusHasBeenSet = true;
79 m_status = std::forward<StatusT>(value);
80 }
81 template <typename StatusT = Aws::String>
82 DBClusterStatusInfo& WithStatus(StatusT&& value) {
83 SetStatus(std::forward<StatusT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetMessage() const { return m_message; }
93 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
94 template <typename MessageT = Aws::String>
95 void SetMessage(MessageT&& value) {
96 m_messageHasBeenSet = true;
97 m_message = std::forward<MessageT>(value);
98 }
99 template <typename MessageT = Aws::String>
100 DBClusterStatusInfo& WithMessage(MessageT&& value) {
101 SetMessage(std::forward<MessageT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_statusType;
107
108 bool m_normal{false};
109
110 Aws::String m_status;
111
112 Aws::String m_message;
113 bool m_statusTypeHasBeenSet = false;
114 bool m_normalHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_messageHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace RDS
121} // namespace Aws
DBClusterStatusInfo & WithMessage(MessageT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetMessage() const
const Aws::String & GetStatus() const
DBClusterStatusInfo & WithStatusType(StatusTypeT &&value)
const Aws::String & GetStatusType() const
AWS_RDS_API DBClusterStatusInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API DBClusterStatusInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBClusterStatusInfo & WithStatus(StatusT &&value)
void SetStatusType(StatusTypeT &&value)
AWS_RDS_API DBClusterStatusInfo()=default
DBClusterStatusInfo & WithNormal(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream