AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Neptune
25{
26namespace Model
27{
28
35 class Event
36 {
37 public:
38 AWS_NEPTUNE_API Event() = default;
39 AWS_NEPTUNE_API Event(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_NEPTUNE_API Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
51 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
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>
55 Event& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
57
59
62 inline SourceType GetSourceType() const { return m_sourceType; }
63 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
64 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
65 inline Event& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
67
69
72 inline const Aws::String& GetMessage() const { return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
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>
77 Event& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
79
81
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::Utils::DateTime& GetDate() const { return m_date; }
99 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
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>
103 Event& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
105
107
110 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
111 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
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>
115 Event& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
117 private:
118
119 Aws::String m_sourceIdentifier;
120 bool m_sourceIdentifierHasBeenSet = false;
121
122 SourceType m_sourceType{SourceType::NOT_SET};
123 bool m_sourceTypeHasBeenSet = false;
124
125 Aws::String m_message;
126 bool m_messageHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_eventCategories;
129 bool m_eventCategoriesHasBeenSet = false;
130
131 Aws::Utils::DateTime m_date{};
132 bool m_dateHasBeenSet = false;
133
134 Aws::String m_sourceArn;
135 bool m_sourceArnHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Neptune
140} // namespace Aws
const Aws::String & GetMessage() const
Definition Event.h:72
Event & WithSourceArn(SourceArnT &&value)
Definition Event.h:115
Event & WithEventCategories(EventCategoriesT &&value)
Definition Event.h:89
Event & AddEventCategories(EventCategoriesT &&value)
Definition Event.h:91
bool EventCategoriesHasBeenSet() const
Definition Event.h:85
Event & WithDate(DateT &&value)
Definition Event.h:103
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:53
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDate(DateT &&value)
Definition Event.h:101
bool SourceArnHasBeenSet() const
Definition Event.h:111
const Aws::String & GetSourceIdentifier() const
Definition Event.h:50
bool SourceTypeHasBeenSet() const
Definition Event.h:63
void SetSourceArn(SourceArnT &&value)
Definition Event.h:113
bool SourceIdentifierHasBeenSet() const
Definition Event.h:51
AWS_NEPTUNE_API Event()=default
AWS_NEPTUNE_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceType(SourceType value)
Definition Event.h:64
SourceType GetSourceType() const
Definition Event.h:62
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)
Definition Event.h:55
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:84
const Aws::String & GetSourceArn() const
Definition Event.h:110
Event & WithMessage(MessageT &&value)
Definition Event.h:77
bool MessageHasBeenSet() const
Definition Event.h:73
Event & WithSourceType(SourceType value)
Definition Event.h:65
void SetEventCategories(EventCategoriesT &&value)
Definition Event.h:87
void SetMessage(MessageT &&value)
Definition Event.h:75
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:98
bool DateHasBeenSet() const
Definition Event.h:99
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