AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
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/neptune/Neptune_EXPORTS.h>
12#include <aws/neptune/model/SourceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Neptune {
23namespace Model {
24
31class Event {
32 public:
33 AWS_NEPTUNE_API Event() = default;
34 AWS_NEPTUNE_API Event(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_NEPTUNE_API Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
45 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
46 template <typename SourceIdentifierT = Aws::String>
47 void SetSourceIdentifier(SourceIdentifierT&& value) {
48 m_sourceIdentifierHasBeenSet = true;
49 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
50 }
51 template <typename SourceIdentifierT = Aws::String>
52 Event& WithSourceIdentifier(SourceIdentifierT&& value) {
53 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
54 return *this;
55 }
57
59
62 inline SourceType GetSourceType() const { return m_sourceType; }
63 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
64 inline void SetSourceType(SourceType value) {
65 m_sourceTypeHasBeenSet = true;
66 m_sourceType = value;
67 }
69 SetSourceType(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetMessage() const { return m_message; }
79 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
80 template <typename MessageT = Aws::String>
81 void SetMessage(MessageT&& value) {
82 m_messageHasBeenSet = true;
83 m_message = std::forward<MessageT>(value);
84 }
85 template <typename MessageT = Aws::String>
86 Event& WithMessage(MessageT&& value) {
87 SetMessage(std::forward<MessageT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
97 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
98 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
99 void SetEventCategories(EventCategoriesT&& value) {
100 m_eventCategoriesHasBeenSet = true;
101 m_eventCategories = std::forward<EventCategoriesT>(value);
102 }
103 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
104 Event& WithEventCategories(EventCategoriesT&& value) {
105 SetEventCategories(std::forward<EventCategoriesT>(value));
106 return *this;
107 }
108 template <typename EventCategoriesT = Aws::String>
109 Event& AddEventCategories(EventCategoriesT&& value) {
110 m_eventCategoriesHasBeenSet = true;
111 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
121 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
122 template <typename DateT = Aws::Utils::DateTime>
123 void SetDate(DateT&& value) {
124 m_dateHasBeenSet = true;
125 m_date = std::forward<DateT>(value);
126 }
127 template <typename DateT = Aws::Utils::DateTime>
128 Event& WithDate(DateT&& value) {
129 SetDate(std::forward<DateT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
139 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
140 template <typename SourceArnT = Aws::String>
141 void SetSourceArn(SourceArnT&& value) {
142 m_sourceArnHasBeenSet = true;
143 m_sourceArn = std::forward<SourceArnT>(value);
144 }
145 template <typename SourceArnT = Aws::String>
146 Event& WithSourceArn(SourceArnT&& value) {
147 SetSourceArn(std::forward<SourceArnT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_sourceIdentifier;
153 bool m_sourceIdentifierHasBeenSet = false;
154
155 SourceType m_sourceType{SourceType::NOT_SET};
156 bool m_sourceTypeHasBeenSet = false;
157
158 Aws::String m_message;
159 bool m_messageHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_eventCategories;
162 bool m_eventCategoriesHasBeenSet = false;
163
164 Aws::Utils::DateTime m_date{};
165 bool m_dateHasBeenSet = false;
166
167 Aws::String m_sourceArn;
168 bool m_sourceArnHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace Neptune
173} // namespace Aws
const Aws::String & GetMessage() const
Definition Event.h:78
Event & WithSourceArn(SourceArnT &&value)
Definition Event.h:146
Event & WithEventCategories(EventCategoriesT &&value)
Definition Event.h:104
Event & AddEventCategories(EventCategoriesT &&value)
Definition Event.h:109
bool EventCategoriesHasBeenSet() const
Definition Event.h:97
Event & WithDate(DateT &&value)
Definition Event.h:128
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:47
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDate(DateT &&value)
Definition Event.h:123
bool SourceArnHasBeenSet() const
Definition Event.h:139
const Aws::String & GetSourceIdentifier() const
Definition Event.h:44
bool SourceTypeHasBeenSet() const
Definition Event.h:63
void SetSourceArn(SourceArnT &&value)
Definition Event.h:141
bool SourceIdentifierHasBeenSet() const
Definition Event.h:45
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:52
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:96
const Aws::String & GetSourceArn() const
Definition Event.h:138
Event & WithMessage(MessageT &&value)
Definition Event.h:86
bool MessageHasBeenSet() const
Definition Event.h:79
Event & WithSourceType(SourceType value)
Definition Event.h:68
void SetEventCategories(EventCategoriesT &&value)
Definition Event.h:99
void SetMessage(MessageT &&value)
Definition Event.h:81
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:120
bool DateHasBeenSet() const
Definition Event.h:121
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