AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DBInstanceStatusInfo.h
1
6#pragma once
7#include <aws/docdb/DocDB_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 DocDB
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DOCDB_API DBInstanceStatusInfo();
36 AWS_DOCDB_API DBInstanceStatusInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetStatusType() const{ return m_statusType; }
48 inline bool StatusTypeHasBeenSet() const { return m_statusTypeHasBeenSet; }
49 inline void SetStatusType(const Aws::String& value) { m_statusTypeHasBeenSet = true; m_statusType = value; }
50 inline void SetStatusType(Aws::String&& value) { m_statusTypeHasBeenSet = true; m_statusType = std::move(value); }
51 inline void SetStatusType(const char* value) { m_statusTypeHasBeenSet = true; m_statusType.assign(value); }
52 inline DBInstanceStatusInfo& WithStatusType(const Aws::String& value) { SetStatusType(value); return *this;}
53 inline DBInstanceStatusInfo& WithStatusType(Aws::String&& value) { SetStatusType(std::move(value)); return *this;}
54 inline DBInstanceStatusInfo& WithStatusType(const char* value) { SetStatusType(value); return *this;}
56
58
62 inline bool GetNormal() const{ return m_normal; }
63 inline bool NormalHasBeenSet() const { return m_normalHasBeenSet; }
64 inline void SetNormal(bool value) { m_normalHasBeenSet = true; m_normal = value; }
65 inline DBInstanceStatusInfo& WithNormal(bool value) { SetNormal(value); return *this;}
67
69
74 inline const Aws::String& GetStatus() const{ return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
77 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
78 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
79 inline DBInstanceStatusInfo& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
80 inline DBInstanceStatusInfo& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
81 inline DBInstanceStatusInfo& WithStatus(const char* value) { SetStatus(value); return *this;}
83
85
89 inline const Aws::String& GetMessage() const{ return m_message; }
90 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
91 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
92 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
93 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
94 inline DBInstanceStatusInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
95 inline DBInstanceStatusInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
96 inline DBInstanceStatusInfo& WithMessage(const char* value) { SetMessage(value); return *this;}
98 private:
99
100 Aws::String m_statusType;
101 bool m_statusTypeHasBeenSet = false;
102
103 bool m_normal;
104 bool m_normalHasBeenSet = false;
105
106 Aws::String m_status;
107 bool m_statusHasBeenSet = false;
108
109 Aws::String m_message;
110 bool m_messageHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace DocDB
115} // namespace Aws
void SetStatus(const Aws::String &value)
AWS_DOCDB_API DBInstanceStatusInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
DBInstanceStatusInfo & WithStatus(const char *value)
void SetMessage(const Aws::String &value)
DBInstanceStatusInfo & WithStatus(const Aws::String &value)
DBInstanceStatusInfo & WithStatusType(const Aws::String &value)
DBInstanceStatusInfo & WithMessage(Aws::String &&value)
DBInstanceStatusInfo & WithStatus(Aws::String &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_DOCDB_API DBInstanceStatusInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBInstanceStatusInfo & WithMessage(const Aws::String &value)
DBInstanceStatusInfo & WithMessage(const char *value)
DBInstanceStatusInfo & WithStatusType(Aws::String &&value)
DBInstanceStatusInfo & WithNormal(bool value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBInstanceStatusInfo & WithStatusType(const char *value)
void SetStatusType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream