AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBClusterStatusInfo.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_RDS_API DBClusterStatusInfo() = default;
35 AWS_RDS_API DBClusterStatusInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetStatusType() const { return m_statusType; }
47 inline bool StatusTypeHasBeenSet() const { return m_statusTypeHasBeenSet; }
48 template<typename StatusTypeT = Aws::String>
49 void SetStatusType(StatusTypeT&& value) { m_statusTypeHasBeenSet = true; m_statusType = std::forward<StatusTypeT>(value); }
50 template<typename StatusTypeT = Aws::String>
51 DBClusterStatusInfo& WithStatusType(StatusTypeT&& value) { SetStatusType(std::forward<StatusTypeT>(value)); return *this;}
53
55
58 inline bool GetNormal() const { return m_normal; }
59 inline bool NormalHasBeenSet() const { return m_normalHasBeenSet; }
60 inline void SetNormal(bool value) { m_normalHasBeenSet = true; m_normal = value; }
61 inline DBClusterStatusInfo& WithNormal(bool value) { SetNormal(value); return *this;}
63
65
68 inline const Aws::String& GetStatus() const { return m_status; }
69 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
70 template<typename StatusT = Aws::String>
71 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
72 template<typename StatusT = Aws::String>
73 DBClusterStatusInfo& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
75
77
80 inline const Aws::String& GetMessage() const { return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 template<typename MessageT = Aws::String>
83 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
84 template<typename MessageT = Aws::String>
85 DBClusterStatusInfo& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
87 private:
88
89 Aws::String m_statusType;
90 bool m_statusTypeHasBeenSet = false;
91
92 bool m_normal{false};
93 bool m_normalHasBeenSet = false;
94
95 Aws::String m_status;
96 bool m_statusHasBeenSet = false;
97
98 Aws::String m_message;
99 bool m_messageHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace RDS
104} // 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