AWS SDK for C++  1.9.105
AWS SDK for C++
Event.h
Go to the documentation of this file.
1 
6 #pragma once
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 Redshift
25 {
26 namespace Model
27 {
28 
35  {
36  public:
37  Event();
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  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;
329 
330  SourceType m_sourceType;
331  bool m_sourceTypeHasBeenSet;
332 
333  Aws::String m_message;
334  bool m_messageHasBeenSet;
335 
336  Aws::Vector<Aws::String> m_eventCategories;
337  bool m_eventCategoriesHasBeenSet;
338 
339  Aws::String m_severity;
340  bool m_severityHasBeenSet;
341 
342  Aws::Utils::DateTime m_date;
343  bool m_dateHasBeenSet;
344 
345  Aws::String m_eventId;
346  bool m_eventIdHasBeenSet;
347  };
348 
349 } // namespace Model
350 } // namespace Redshift
351 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::Event::AddEventCategories
Event & AddEventCategories(const Aws::String &value)
Definition: Event.h:198
Aws::Redshift::Model::Event::WithEventId
Event & WithEventId(Aws::String &&value)
Definition: Event.h:318
Aws::Redshift::Model::Event::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: Event.h:168
Aws::Redshift::Model::SourceType
SourceType
Definition: SourceType.h:17
Aws::Redshift::Model::Event::GetDate
const Aws::Utils::DateTime & GetDate() const
Definition: Event.h:257
Aws::Redshift::Model::Event::SetSourceIdentifier
void SetSourceIdentifier(const Aws::String &value)
Definition: Event.h:58
Aws::Redshift::Model::Event::Event
Event()
Aws::Redshift::Model::Event::SetSourceIdentifier
void SetSourceIdentifier(Aws::String &&value)
Definition: Event.h:63
Aws::Redshift::Model::Event
Definition: Event.h:35
Aws::Redshift::Model::Event::SetSourceIdentifier
void SetSourceIdentifier(const char *value)
Definition: Event.h:68
Aws::Redshift::Model::Event::DateHasBeenSet
bool DateHasBeenSet() const
Definition: Event.h:262
Aws::Redshift::Model::Event::EventIdHasBeenSet
bool EventIdHasBeenSet() const
Definition: Event.h:293
Aws::Redshift::Model::Event::GetSourceType
const SourceType & GetSourceType() const
Definition: Event.h:89
DateTime.h
Aws::Redshift::Model::Event::WithMessage
Event & WithMessage(const char *value)
Definition: Event.h:155
Aws::Redshift::Model::Event::Event
Event(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::Event::WithMessage
Event & WithMessage(Aws::String &&value)
Definition: Event.h:150
Aws::Redshift::Model::Event::SetSeverity
void SetSeverity(Aws::String &&value)
Definition: Event.h:231
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SourceType.h
Aws::Redshift::Model::Event::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::Event::GetSourceIdentifier
const Aws::String & GetSourceIdentifier() const
Definition: Event.h:48
Aws::Redshift::Model::Event::WithDate
Event & WithDate(const Aws::Utils::DateTime &value)
Definition: Event.h:277
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::Event::SetMessage
void SetMessage(const char *value)
Definition: Event.h:140
Aws::Redshift::Model::Event::SetSeverity
void SetSeverity(const char *value)
Definition: Event.h:236
Aws::Redshift::Model::Event::WithEventId
Event & WithEventId(const Aws::String &value)
Definition: Event.h:313
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::Event::WithSourceType
Event & WithSourceType(SourceType &&value)
Definition: Event.h:114
Aws::Redshift::Model::Event::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: Event.h:180
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::Event::WithDate
Event & WithDate(Aws::Utils::DateTime &&value)
Definition: Event.h:282
Aws::Redshift::Model::Event::SetMessage
void SetMessage(Aws::String &&value)
Definition: Event.h:135
Aws::Redshift::Model::Event::WithSeverity
Event & WithSeverity(Aws::String &&value)
Definition: Event.h:246
Aws::Redshift::Model::Event::WithEventId
Event & WithEventId(const char *value)
Definition: Event.h:323
Aws::Redshift::Model::Event::WithEventCategories
Event & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: Event.h:192
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::Event::WithSeverity
Event & WithSeverity(const Aws::String &value)
Definition: Event.h:241
Aws::Redshift::Model::Event::SetEventId
void SetEventId(const Aws::String &value)
Definition: Event.h:298
Aws::Redshift::Model::Event::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: Event.h:162
AWSString.h
Aws::Redshift::Model::Event::WithMessage
Event & WithMessage(const Aws::String &value)
Definition: Event.h:145
Aws::Redshift::Model::Event::SetMessage
void SetMessage(const Aws::String &value)
Definition: Event.h:130
Aws::Redshift::Model::Event::WithSourceIdentifier
Event & WithSourceIdentifier(const Aws::String &value)
Definition: Event.h:73
Aws::Redshift::Model::Event::WithSeverity
Event & WithSeverity(const char *value)
Definition: Event.h:251
Aws::Redshift::Model::Event::WithSourceIdentifier
Event & WithSourceIdentifier(const char *value)
Definition: Event.h:83
Aws::Redshift::Model::Event::WithEventCategories
Event & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: Event.h:186
Aws::Redshift::Model::Event::SetSourceType
void SetSourceType(SourceType &&value)
Definition: Event.h:104
Aws::Redshift::Model::Event::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: Event.h:174
Aws::Redshift::Model::Event::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: Event.h:125
Aws::Redshift::Model::Event::SeverityHasBeenSet
bool SeverityHasBeenSet() const
Definition: Event.h:221
Aws::Redshift::Model::Event::AddEventCategories
Event & AddEventCategories(Aws::String &&value)
Definition: Event.h:204
Aws::Redshift::Model::Event::WithSourceType
Event & WithSourceType(const SourceType &value)
Definition: Event.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::Event::SetDate
void SetDate(Aws::Utils::DateTime &&value)
Definition: Event.h:272
Redshift_EXPORTS.h
Aws::Redshift::Model::Event::SetSourceType
void SetSourceType(const SourceType &value)
Definition: Event.h:99
Aws::Redshift::Model::Event::SetEventId
void SetEventId(const char *value)
Definition: Event.h:308
Aws::Redshift::Model::Event::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: Event.h:94
Aws::Redshift::Model::Event::SetEventId
void SetEventId(Aws::String &&value)
Definition: Event.h:303
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::Event::AddEventCategories
Event & AddEventCategories(const char *value)
Definition: Event.h:210
Aws::Redshift::Model::Event::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::Event::operator=
Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::Event::GetEventId
const Aws::String & GetEventId() const
Definition: Event.h:288
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::Event::GetMessage
const Aws::String & GetMessage() const
Definition: Event.h:120
Aws::Redshift::Model::Event::GetSeverity
const Aws::String & GetSeverity() const
Definition: Event.h:216
Aws::Redshift::Model::Event::WithSourceIdentifier
Event & WithSourceIdentifier(Aws::String &&value)
Definition: Event.h:78
Aws::Redshift::Model::Event::SourceIdentifierHasBeenSet
bool SourceIdentifierHasBeenSet() const
Definition: Event.h:53
Aws::Redshift::Model::Event::SetDate
void SetDate(const Aws::Utils::DateTime &value)
Definition: Event.h:267
Aws::Redshift::Model::Event::SetSeverity
void SetSeverity(const Aws::String &value)
Definition: Event.h:226