AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Event.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift
25{
26namespace Model
27{
28
34 class Event
35 {
36 public:
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
48 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
49
53 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
54
58 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
59
63 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
64
68 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
69
73 inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
74
78 inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
79
83 inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
84
85
89 inline const SourceType& GetSourceType() const{ return m_sourceType; }
90
94 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
95
99 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
100
104 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
105
109 inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
110
114 inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
115
116
120 inline const Aws::String& GetMessage() const{ return m_message; }
121
125 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
126
130 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
131
135 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
136
140 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
141
145 inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
146
150 inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
151
155 inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
156
157
162 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
163
168 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
169
174 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
175
180 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
181
186 inline Event& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
187
192 inline Event& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
193
198 inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
199
204 inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
205
210 inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
211
212
216 inline const Aws::String& GetSeverity() const{ return m_severity; }
217
221 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
222
226 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
227
231 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
232
236 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
237
241 inline Event& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
242
246 inline Event& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
247
251 inline Event& WithSeverity(const char* value) { SetSeverity(value); return *this;}
252
253
257 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
258
262 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
263
267 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
268
272 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
273
277 inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
278
282 inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
283
284
288 inline const Aws::String& GetEventId() const{ return m_eventId; }
289
293 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
294
298 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
299
303 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
304
308 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
309
313 inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
314
318 inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
319
323 inline Event& WithEventId(const char* value) { SetEventId(value); return *this;}
324
325 private:
326
327 Aws::String m_sourceIdentifier;
328 bool m_sourceIdentifierHasBeenSet = false;
329
330 SourceType m_sourceType;
331 bool m_sourceTypeHasBeenSet = false;
332
333 Aws::String m_message;
334 bool m_messageHasBeenSet = false;
335
336 Aws::Vector<Aws::String> m_eventCategories;
337 bool m_eventCategoriesHasBeenSet = false;
338
339 Aws::String m_severity;
340 bool m_severityHasBeenSet = false;
341
343 bool m_dateHasBeenSet = false;
344
345 Aws::String m_eventId;
346 bool m_eventIdHasBeenSet = false;
347 };
348
349} // namespace Model
350} // namespace Redshift
351} // namespace Aws
#define AWS_REDSHIFT_API
void SetSeverity(const char *value)
Definition: Event.h:236
bool SourceIdentifierHasBeenSet() const
Definition: Event.h:53
void SetSeverity(Aws::String &&value)
Definition: Event.h:231
const Aws::String & GetEventId() const
Definition: Event.h:288
void SetMessage(Aws::String &&value)
Definition: Event.h:135
void SetMessage(const char *value)
Definition: Event.h:140
AWS_REDSHIFT_API Event()
const Aws::String & GetMessage() const
Definition: Event.h:120
void SetSourceIdentifier(const Aws::String &value)
Definition: Event.h:58
Event & WithMessage(const char *value)
Definition: Event.h:155
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: Event.h:180
void SetSeverity(const Aws::String &value)
Definition: Event.h:226
Event & WithSeverity(Aws::String &&value)
Definition: Event.h:246
void SetSourceType(SourceType &&value)
Definition: Event.h:104
void SetSourceType(const SourceType &value)
Definition: Event.h:99
bool EventCategoriesHasBeenSet() const
Definition: Event.h:168
void SetEventId(Aws::String &&value)
Definition: Event.h:303
bool MessageHasBeenSet() const
Definition: Event.h:125
Event & WithSourceIdentifier(Aws::String &&value)
Definition: Event.h:78
Event & WithEventId(const char *value)
Definition: Event.h:323
void SetDate(const Aws::Utils::DateTime &value)
Definition: Event.h:267
bool EventIdHasBeenSet() const
Definition: Event.h:293
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Event & WithDate(const Aws::Utils::DateTime &value)
Definition: Event.h:277
Event & WithEventId(Aws::String &&value)
Definition: Event.h:318
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Event & WithMessage(Aws::String &&value)
Definition: Event.h:150
Event & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: Event.h:186
bool SeverityHasBeenSet() const
Definition: Event.h:221
Event & WithSourceType(SourceType &&value)
Definition: Event.h:114
Event & WithSourceIdentifier(const char *value)
Definition: Event.h:83
Event & WithSeverity(const Aws::String &value)
Definition: Event.h:241
const SourceType & GetSourceType() const
Definition: Event.h:89
Event & WithDate(Aws::Utils::DateTime &&value)
Definition: Event.h:282
bool DateHasBeenSet() const
Definition: Event.h:262
AWS_REDSHIFT_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithMessage(const Aws::String &value)
Definition: Event.h:145
Event & WithEventId(const Aws::String &value)
Definition: Event.h:313
Event & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: Event.h:192
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: Event.h:174
Event & WithSourceType(const SourceType &value)
Definition: Event.h:109
Event & AddEventCategories(const char *value)
Definition: Event.h:210
void SetSourceIdentifier(const char *value)
Definition: Event.h:68
const Aws::String & GetSourceIdentifier() const
Definition: Event.h:48
const Aws::String & GetSeverity() const
Definition: Event.h:216
Event & AddEventCategories(const Aws::String &value)
Definition: Event.h:198
Event & AddEventCategories(Aws::String &&value)
Definition: Event.h:204
bool SourceTypeHasBeenSet() const
Definition: Event.h:94
void SetEventId(const Aws::String &value)
Definition: Event.h:298
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: Event.h:162
void SetSourceIdentifier(Aws::String &&value)
Definition: Event.h:63
void SetDate(Aws::Utils::DateTime &&value)
Definition: Event.h:272
AWS_REDSHIFT_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(const Aws::String &value)
Definition: Event.h:130
Event & WithSourceIdentifier(const Aws::String &value)
Definition: Event.h:73
Event & WithSeverity(const char *value)
Definition: Event.h:251
const Aws::Utils::DateTime & GetDate() const
Definition: Event.h:257
void SetEventId(const char *value)
Definition: Event.h:308
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