AWS SDK for C++  1.9.109
AWS SDK for C++
Event.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace RDS
25 {
26 namespace Model
27 {
28 
36  {
37  public:
38  Event();
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
50 
54  inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
55 
59  inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
60 
64  inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
65 
69  inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
70 
74  inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
75 
79  inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
80 
84  inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
85 
86 
90  inline const SourceType& GetSourceType() const{ return m_sourceType; }
91 
95  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
96 
100  inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
101 
105  inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
106 
110  inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
111 
115  inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
116 
117 
121  inline const Aws::String& GetMessage() const{ return m_message; }
122 
126  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
127 
131  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
132 
136  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
137 
141  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
142 
146  inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
147 
151  inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
152 
156  inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
157 
158 
162  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
163 
167  inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
168 
172  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
173 
177  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
178 
182  inline Event& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
183 
187  inline Event& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
188 
192  inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
193 
197  inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
198 
202  inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
203 
204 
208  inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
209 
213  inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
214 
218  inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
219 
223  inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
224 
228  inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
229 
233  inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
234 
235 
239  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
240 
244  inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
245 
249  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
250 
254  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
255 
259  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
260 
264  inline Event& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
265 
269  inline Event& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
270 
274  inline Event& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
275 
276  private:
277 
278  Aws::String m_sourceIdentifier;
279  bool m_sourceIdentifierHasBeenSet;
280 
281  SourceType m_sourceType;
282  bool m_sourceTypeHasBeenSet;
283 
284  Aws::String m_message;
285  bool m_messageHasBeenSet;
286 
287  Aws::Vector<Aws::String> m_eventCategories;
288  bool m_eventCategoriesHasBeenSet;
289 
290  Aws::Utils::DateTime m_date;
291  bool m_dateHasBeenSet;
292 
293  Aws::String m_sourceArn;
294  bool m_sourceArnHasBeenSet;
295  };
296 
297 } // namespace Model
298 } // namespace RDS
299 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::RDS::Model::Event::WithSourceType
Event & WithSourceType(SourceType &&value)
Definition: Event.h:115
Aws::RDS::Model::Event::AddEventCategories
Event & AddEventCategories(const char *value)
Definition: Event.h:202
Aws::RDS::Model::Event::WithEventCategories
Event & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: Event.h:182
Aws::RDS::Model::Event::SetDate
void SetDate(const Aws::Utils::DateTime &value)
Definition: Event.h:218
Aws::RDS::Model::Event::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::Event::WithSourceIdentifier
Event & WithSourceIdentifier(const char *value)
Definition: Event.h:84
Aws::RDS::Model::Event::SourceArnHasBeenSet
bool SourceArnHasBeenSet() const
Definition: Event.h:244
Aws::RDS::Model::Event::SetSourceArn
void SetSourceArn(const Aws::String &value)
Definition: Event.h:249
Aws::RDS::Model::Event::WithDate
Event & WithDate(const Aws::Utils::DateTime &value)
Definition: Event.h:228
Aws::RDS::Model::Event::WithSourceArn
Event & WithSourceArn(Aws::String &&value)
Definition: Event.h:269
Aws::RDS::Model::Event::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: Event.h:95
Aws::RDS::Model::Event::WithSourceIdentifier
Event & WithSourceIdentifier(const Aws::String &value)
Definition: Event.h:74
Aws::RDS::Model::Event::SetSourceArn
void SetSourceArn(const char *value)
Definition: Event.h:259
Aws::RDS::Model::Event::SetDate
void SetDate(Aws::Utils::DateTime &&value)
Definition: Event.h:223
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
DateTime.h
Aws::RDS::Model::Event::GetDate
const Aws::Utils::DateTime & GetDate() const
Definition: Event.h:208
Aws::RDS::Model::Event::SourceIdentifierHasBeenSet
bool SourceIdentifierHasBeenSet() const
Definition: Event.h:54
Aws::RDS::Model::Event::WithSourceArn
Event & WithSourceArn(const char *value)
Definition: Event.h:274
Aws::RDS::Model::Event::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::Event::SetSourceArn
void SetSourceArn(Aws::String &&value)
Definition: Event.h:254
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::RDS::Model::Event::SetMessage
void SetMessage(Aws::String &&value)
Definition: Event.h:136
AWSVector.h
Aws::RDS::Model::Event::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: Event.h:177
Aws::RDS::Model::Event::WithEventCategories
Event & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: Event.h:187
Aws::RDS::Model::Event::SetMessage
void SetMessage(const Aws::String &value)
Definition: Event.h:131
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::Event::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: Event.h:167
Aws::RDS::Model::Event::WithSourceType
Event & WithSourceType(const SourceType &value)
Definition: Event.h:110
RDS_EXPORTS.h
Aws::RDS::Model::Event::SetSourceIdentifier
void SetSourceIdentifier(const char *value)
Definition: Event.h:69
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::Event::GetSourceIdentifier
const Aws::String & GetSourceIdentifier() const
Definition: Event.h:49
Aws::RDS::Model::Event::AddEventCategories
Event & AddEventCategories(Aws::String &&value)
Definition: Event.h:197
Aws::RDS::Model::Event::Event
Event(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::Event::WithMessage
Event & WithMessage(const char *value)
Definition: Event.h:156
Aws::RDS::Model::Event::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: Event.h:162
SourceType.h
AWSString.h
Aws::RDS::Model::Event::Event
Event()
Aws::RDS::Model::Event::SetSourceType
void SetSourceType(const SourceType &value)
Definition: Event.h:100
Aws::RDS::Model::Event::SetMessage
void SetMessage(const char *value)
Definition: Event.h:141
Aws::RDS::Model::Event::GetMessage
const Aws::String & GetMessage() const
Definition: Event.h:121
Aws::RDS::Model::Event::WithSourceIdentifier
Event & WithSourceIdentifier(Aws::String &&value)
Definition: Event.h:79
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::Event::SetSourceIdentifier
void SetSourceIdentifier(const Aws::String &value)
Definition: Event.h:59
Aws::RDS::Model::Event::WithMessage
Event & WithMessage(const Aws::String &value)
Definition: Event.h:146
Aws::RDS::Model::Event
Definition: Event.h:36
Aws::RDS::Model::Event::GetSourceType
const SourceType & GetSourceType() const
Definition: Event.h:90
Aws::RDS::Model::Event::GetSourceArn
const Aws::String & GetSourceArn() const
Definition: Event.h:239
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::Event::DateHasBeenSet
bool DateHasBeenSet() const
Definition: Event.h:213
Aws::RDS::Model::Event::WithDate
Event & WithDate(Aws::Utils::DateTime &&value)
Definition: Event.h:233
Aws::RDS::Model::Event::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: Event.h:126
Aws::RDS::Model::Event::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: Event.h:172
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::Event::SetSourceIdentifier
void SetSourceIdentifier(Aws::String &&value)
Definition: Event.h:64
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::Event::operator=
Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::Event::WithSourceArn
Event & WithSourceArn(const Aws::String &value)
Definition: Event.h:264
Aws::RDS::Model::SourceType
SourceType
Definition: SourceType.h:17
Aws::RDS::Model::Event::WithMessage
Event & WithMessage(Aws::String &&value)
Definition: Event.h:151
Aws::RDS::Model::Event::AddEventCategories
Event & AddEventCategories(const Aws::String &value)
Definition: Event.h:192
Aws::RDS::Model::Event::SetSourceType
void SetSourceType(SourceType &&value)
Definition: Event.h:105