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/docdb/DocDB_EXPORTS.h>
12#include <aws/docdb/model/SourceType.h>
32 AWS_DOCDB_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>
97 template <
typename EventCategoriesT = Aws::Vector<Aws::String>>
99 m_eventCategoriesHasBeenSet =
true;
100 m_eventCategories = std::forward<EventCategoriesT>(value);
102 template <
typename EventCategoriesT = Aws::Vector<Aws::String>>
107 template <
typename EventCategoriesT = Aws::String>
109 m_eventCategoriesHasBeenSet =
true;
110 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
121 template <
typename DateT = Aws::Utils::DateTime>
123 m_dateHasBeenSet =
true;
124 m_date = std::forward<DateT>(value);
126 template <
typename DateT = Aws::Utils::DateTime>
128 SetDate(std::forward<DateT>(value));
139 template <
typename SourceArnT = Aws::String>
141 m_sourceArnHasBeenSet =
true;
142 m_sourceArn = std::forward<SourceArnT>(value);
144 template <
typename SourceArnT = Aws::String>
162 bool m_sourceIdentifierHasBeenSet =
false;
163 bool m_sourceTypeHasBeenSet =
false;
164 bool m_messageHasBeenSet =
false;
165 bool m_eventCategoriesHasBeenSet =
false;
166 bool m_dateHasBeenSet =
false;
167 bool m_sourceArnHasBeenSet =
false;
Event & WithEventCategories(EventCategoriesT &&value)
bool SourceArnHasBeenSet() const
Event & WithMessage(MessageT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
SourceType GetSourceType() const
const Aws::String & GetSourceArn() const
Event & AddEventCategories(EventCategoriesT &&value)
bool SourceTypeHasBeenSet() const
const Aws::String & GetSourceIdentifier() const
Event & WithSourceIdentifier(SourceIdentifierT &&value)
Event & WithDate(DateT &&value)
bool SourceIdentifierHasBeenSet() const
bool DateHasBeenSet() const
bool EventCategoriesHasBeenSet() const
void SetDate(DateT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMessage(MessageT &&value)
void SetEventCategories(EventCategoriesT &&value)
void SetSourceType(SourceType value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetMessage() const
void SetSourceArn(SourceArnT &&value)
Event & WithSourceArn(SourceArnT &&value)
bool MessageHasBeenSet() const
AWS_DOCDB_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithSourceType(SourceType value)
const Aws::Utils::DateTime & GetDate() const
AWS_DOCDB_API Event()=default
void SetSourceIdentifier(SourceIdentifierT &&value)
AWS_DOCDB_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
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