AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Event.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 <aws/rds/model/SourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
36 class Event
37 {
38 public:
39 AWS_RDS_API Event();
40 AWS_RDS_API Event(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_RDS_API Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
52 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
53 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
54 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
55 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
56 inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
57 inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
58 inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
60
62
65 inline const SourceType& GetSourceType() const{ return m_sourceType; }
66 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
67 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
68 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
69 inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
70 inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetMessage() const{ return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
80 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
81 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
82 inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
83 inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
84 inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
86
88
91 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
92 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
93 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
94 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
95 inline Event& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
96 inline Event& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
97 inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
98 inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
99 inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
101
103
106 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
107 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
108 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
109 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
110 inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
111 inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
113
115
118 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
119 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
120 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
121 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
122 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
123 inline Event& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
124 inline Event& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
125 inline Event& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
127 private:
128
129 Aws::String m_sourceIdentifier;
130 bool m_sourceIdentifierHasBeenSet = false;
131
132 SourceType m_sourceType;
133 bool m_sourceTypeHasBeenSet = false;
134
135 Aws::String m_message;
136 bool m_messageHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_eventCategories;
139 bool m_eventCategoriesHasBeenSet = false;
140
142 bool m_dateHasBeenSet = false;
143
144 Aws::String m_sourceArn;
145 bool m_sourceArnHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace RDS
150} // namespace Aws
void SetMessage(Aws::String &&value)
Definition Event.h:80
AWS_RDS_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:106
const Aws::String & GetSourceArn() const
Definition Event.h:118
Event & WithDate(const Aws::Utils::DateTime &value)
Definition Event.h:110
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Event & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:95
bool DateHasBeenSet() const
Definition Event.h:107
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:93
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:91
Event & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:96
Event & WithMessage(const char *value)
Definition Event.h:84
Event & WithSourceIdentifier(const Aws::String &value)
Definition Event.h:56
Event & WithSourceType(const SourceType &value)
Definition Event.h:69
Event & WithMessage(Aws::String &&value)
Definition Event.h:83
Event & AddEventCategories(const Aws::String &value)
Definition Event.h:97
Event & WithDate(Aws::Utils::DateTime &&value)
Definition Event.h:111
void SetSourceType(SourceType &&value)
Definition Event.h:68
Event & WithMessage(const Aws::String &value)
Definition Event.h:82
bool SourceIdentifierHasBeenSet() const
Definition Event.h:52
Event & WithSourceArn(const char *value)
Definition Event.h:125
Event & WithSourceType(SourceType &&value)
Definition Event.h:70
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:94
bool SourceArnHasBeenSet() const
Definition Event.h:119
void SetMessage(const char *value)
Definition Event.h:81
Event & AddEventCategories(Aws::String &&value)
Definition Event.h:98
Event & AddEventCategories(const char *value)
Definition Event.h:99
const Aws::String & GetSourceIdentifier() const
Definition Event.h:51
void SetSourceArn(Aws::String &&value)
Definition Event.h:121
Event & WithSourceArn(const Aws::String &value)
Definition Event.h:123
void SetSourceIdentifier(Aws::String &&value)
Definition Event.h:54
void SetDate(const Aws::Utils::DateTime &value)
Definition Event.h:108
bool EventCategoriesHasBeenSet() const
Definition Event.h:92
const Aws::String & GetMessage() const
Definition Event.h:77
void SetSourceIdentifier(const Aws::String &value)
Definition Event.h:53
const SourceType & GetSourceType() const
Definition Event.h:65
void SetSourceArn(const Aws::String &value)
Definition Event.h:120
bool SourceTypeHasBeenSet() const
Definition Event.h:66
void SetSourceType(const SourceType &value)
Definition Event.h:67
AWS_RDS_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithSourceArn(Aws::String &&value)
Definition Event.h:124
void SetDate(Aws::Utils::DateTime &&value)
Definition Event.h:109
void SetMessage(const Aws::String &value)
Definition Event.h:79
Event & WithSourceIdentifier(const char *value)
Definition Event.h:58
bool MessageHasBeenSet() const
Definition Event.h:78
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSourceArn(const char *value)
Definition Event.h:122
Event & WithSourceIdentifier(Aws::String &&value)
Definition Event.h:57
void SetSourceIdentifier(const char *value)
Definition Event.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream