AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/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 Redshift
25{
26namespace Model
27{
28
34 class Event
35 {
36 public:
37 AWS_REDSHIFT_API Event() = default;
38 AWS_REDSHIFT_API Event(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
46
49 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
50 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
51 template<typename SourceIdentifierT = Aws::String>
52 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
53 template<typename SourceIdentifierT = Aws::String>
54 Event& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
56
58
61 inline SourceType GetSourceType() const { return m_sourceType; }
62 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
63 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
64 inline Event& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
66
68
71 inline const Aws::String& GetMessage() const { return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 template<typename MessageT = Aws::String>
74 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
75 template<typename MessageT = Aws::String>
76 Event& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
78
80
84 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
85 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
86 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
87 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
88 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
89 Event& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
90 template<typename EventCategoriesT = Aws::String>
91 Event& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
93
95
98 inline const Aws::String& GetSeverity() const { return m_severity; }
99 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
100 template<typename SeverityT = Aws::String>
101 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
102 template<typename SeverityT = Aws::String>
103 Event& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
111 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
112 template<typename DateT = Aws::Utils::DateTime>
113 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
114 template<typename DateT = Aws::Utils::DateTime>
115 Event& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
117
119
122 inline const Aws::String& GetEventId() const { return m_eventId; }
123 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
124 template<typename EventIdT = Aws::String>
125 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
126 template<typename EventIdT = Aws::String>
127 Event& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
129 private:
130
131 Aws::String m_sourceIdentifier;
132 bool m_sourceIdentifierHasBeenSet = false;
133
134 SourceType m_sourceType{SourceType::NOT_SET};
135 bool m_sourceTypeHasBeenSet = false;
136
137 Aws::String m_message;
138 bool m_messageHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_eventCategories;
141 bool m_eventCategoriesHasBeenSet = false;
142
143 Aws::String m_severity;
144 bool m_severityHasBeenSet = false;
145
146 Aws::Utils::DateTime m_date{};
147 bool m_dateHasBeenSet = false;
148
149 Aws::String m_eventId;
150 bool m_eventIdHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Redshift
155} // namespace Aws
bool SourceIdentifierHasBeenSet() const
Definition Event.h:50
const Aws::String & GetEventId() const
Definition Event.h:122
Event & WithEventId(EventIdT &&value)
Definition Event.h:127
Event & AddEventCategories(EventCategoriesT &&value)
Definition Event.h:91
void SetEventId(EventIdT &&value)
Definition Event.h:125
const Aws::String & GetMessage() const
Definition Event.h:71
AWS_REDSHIFT_API Event()=default
SourceType GetSourceType() const
Definition Event.h:61
Event & WithSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:54
bool EventCategoriesHasBeenSet() const
Definition Event.h:85
bool MessageHasBeenSet() const
Definition Event.h:72
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:52
bool EventIdHasBeenSet() const
Definition Event.h:123
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Event & WithDate(DateT &&value)
Definition Event.h:115
void SetMessage(MessageT &&value)
Definition Event.h:74
void SetDate(DateT &&value)
Definition Event.h:113
bool SeverityHasBeenSet() const
Definition Event.h:99
void SetSourceType(SourceType value)
Definition Event.h:63
bool DateHasBeenSet() const
Definition Event.h:111
AWS_REDSHIFT_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetSourceIdentifier() const
Definition Event.h:49
Event & WithSeverity(SeverityT &&value)
Definition Event.h:103
Event & WithSourceType(SourceType value)
Definition Event.h:64
const Aws::String & GetSeverity() const
Definition Event.h:98
Event & WithMessage(MessageT &&value)
Definition Event.h:76
void SetSeverity(SeverityT &&value)
Definition Event.h:101
Event & WithEventCategories(EventCategoriesT &&value)
Definition Event.h:89
bool SourceTypeHasBeenSet() const
Definition Event.h:62
void SetEventCategories(EventCategoriesT &&value)
Definition Event.h:87
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:84
AWS_REDSHIFT_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:110
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