AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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