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>
37 AWS_REDSHIFT_API
Event() =
default;
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>
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>
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>>
90 template<
typename EventCategoriesT = Aws::String>
91 Event&
AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet =
true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
return *
this; }
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>
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>
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>
132 bool m_sourceIdentifierHasBeenSet =
false;
135 bool m_sourceTypeHasBeenSet =
false;
138 bool m_messageHasBeenSet =
false;
141 bool m_eventCategoriesHasBeenSet =
false;
144 bool m_severityHasBeenSet =
false;
147 bool m_dateHasBeenSet =
false;
150 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