7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/SourceType.h>
32 AWS_REDSHIFT_API
Event() =
default;
45 template <
typename SourceIdentifierT = Aws::String>
47 m_sourceIdentifierHasBeenSet =
true;
48 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
50 template <
typename SourceIdentifierT = Aws::String>
64 m_sourceTypeHasBeenSet =
true;
79 template <
typename MessageT = Aws::String>
81 m_messageHasBeenSet =
true;
82 m_message = std::forward<MessageT>(value);
84 template <
typename MessageT = Aws::String>
98 template <
typename EventCategoriesT = Aws::Vector<Aws::String>>
100 m_eventCategoriesHasBeenSet =
true;
101 m_eventCategories = std::forward<EventCategoriesT>(value);
103 template <
typename EventCategoriesT = Aws::Vector<Aws::String>>
108 template <
typename EventCategoriesT = Aws::String>
110 m_eventCategoriesHasBeenSet =
true;
111 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
122 template <
typename SeverityT = Aws::String>
124 m_severityHasBeenSet =
true;
125 m_severity = std::forward<SeverityT>(value);
127 template <
typename SeverityT = Aws::String>
140 template <
typename DateT = Aws::Utils::DateTime>
142 m_dateHasBeenSet =
true;
143 m_date = std::forward<DateT>(value);
145 template <
typename DateT = Aws::Utils::DateTime>
147 SetDate(std::forward<DateT>(value));
158 template <
typename EventIdT = Aws::String>
160 m_eventIdHasBeenSet =
true;
161 m_eventId = std::forward<EventIdT>(value);
163 template <
typename EventIdT = Aws::String>
183 bool m_sourceIdentifierHasBeenSet =
false;
184 bool m_sourceTypeHasBeenSet =
false;
185 bool m_messageHasBeenSet =
false;
186 bool m_eventCategoriesHasBeenSet =
false;
187 bool m_severityHasBeenSet =
false;
188 bool m_dateHasBeenSet =
false;
189 bool m_eventIdHasBeenSet =
false;
bool SourceIdentifierHasBeenSet() const
const Aws::String & GetEventId() const
Event & WithEventId(EventIdT &&value)
Event & AddEventCategories(EventCategoriesT &&value)
void SetEventId(EventIdT &&value)
const Aws::String & GetMessage() const
AWS_REDSHIFT_API Event()=default
SourceType GetSourceType() const
Event & WithSourceIdentifier(SourceIdentifierT &&value)
bool EventCategoriesHasBeenSet() const
bool MessageHasBeenSet() const
void SetSourceIdentifier(SourceIdentifierT &&value)
bool EventIdHasBeenSet() const
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)
void SetMessage(MessageT &&value)
void SetDate(DateT &&value)
bool SeverityHasBeenSet() const
void SetSourceType(SourceType value)
bool DateHasBeenSet() const
AWS_REDSHIFT_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetSourceIdentifier() const
Event & WithSeverity(SeverityT &&value)
Event & WithSourceType(SourceType value)
const Aws::String & GetSeverity() const
Event & WithMessage(MessageT &&value)
void SetSeverity(SeverityT &&value)
Event & WithEventCategories(EventCategoriesT &&value)
bool SourceTypeHasBeenSet() const
void SetEventCategories(EventCategoriesT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
AWS_REDSHIFT_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetDate() const
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