7#include <aws/neptune/Neptune_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/neptune/model/SourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
38 AWS_NEPTUNE_API
Event() =
default;
52 template<
typename SourceIdentifierT = Aws::String>
53 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet =
true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
54 template<
typename SourceIdentifierT = Aws::String>
74 template<
typename MessageT = Aws::String>
75 void SetMessage(MessageT&& value) { m_messageHasBeenSet =
true; m_message = std::forward<MessageT>(value); }
76 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 DateT = Aws::Utils::DateTime>
101 void SetDate(DateT&& value) { m_dateHasBeenSet =
true; m_date = std::forward<DateT>(value); }
102 template<
typename DateT = Aws::Utils::DateTime>
112 template<
typename SourceArnT = Aws::String>
113 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet =
true; m_sourceArn = std::forward<SourceArnT>(value); }
114 template<
typename SourceArnT = Aws::String>
120 bool m_sourceIdentifierHasBeenSet =
false;
123 bool m_sourceTypeHasBeenSet =
false;
126 bool m_messageHasBeenSet =
false;
129 bool m_eventCategoriesHasBeenSet =
false;
132 bool m_dateHasBeenSet =
false;
135 bool m_sourceArnHasBeenSet =
false;
const Aws::String & GetMessage() const
Event & WithSourceArn(SourceArnT &&value)
Event & WithEventCategories(EventCategoriesT &&value)
Event & AddEventCategories(EventCategoriesT &&value)
bool EventCategoriesHasBeenSet() const
Event & WithDate(DateT &&value)
void SetSourceIdentifier(SourceIdentifierT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDate(DateT &&value)
bool SourceArnHasBeenSet() const
const Aws::String & GetSourceIdentifier() const
bool SourceTypeHasBeenSet() const
void SetSourceArn(SourceArnT &&value)
bool SourceIdentifierHasBeenSet() const
AWS_NEPTUNE_API Event()=default
AWS_NEPTUNE_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceType(SourceType value)
SourceType GetSourceType() const
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_NEPTUNE_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithSourceIdentifier(SourceIdentifierT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
const Aws::String & GetSourceArn() const
Event & WithMessage(MessageT &&value)
bool MessageHasBeenSet() const
Event & WithSourceType(SourceType value)
void SetEventCategories(EventCategoriesT &&value)
void SetMessage(MessageT &&value)
const Aws::Utils::DateTime & GetDate() const
bool DateHasBeenSet() 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