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/docdb/DocDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/docdb/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 DocDB
25{
26namespace Model
27{
28
34 class Event
35 {
36 public:
37 AWS_DOCDB_API Event() = default;
38 AWS_DOCDB_API Event(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_DOCDB_API Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
50 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
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>
54 Event& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
56
58
61 inline SourceType GetSourceType() const { return m_sourceType; }
62 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
63 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
64 inline Event& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
66
68
71 inline const Aws::String& GetMessage() const { return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
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>
76 Event& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
84 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
85 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
86 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
87 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
88 Event& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
89 template<typename EventCategoriesT = Aws::String>
90 Event& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
92
94
97 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
98 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
99 template<typename DateT = Aws::Utils::DateTime>
100 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
101 template<typename DateT = Aws::Utils::DateTime>
102 Event& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
104
106
109 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
110 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
111 template<typename SourceArnT = Aws::String>
112 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
113 template<typename SourceArnT = Aws::String>
114 Event& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
116 private:
117
118 Aws::String m_sourceIdentifier;
119 bool m_sourceIdentifierHasBeenSet = false;
120
121 SourceType m_sourceType{SourceType::NOT_SET};
122 bool m_sourceTypeHasBeenSet = false;
123
124 Aws::String m_message;
125 bool m_messageHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_eventCategories;
128 bool m_eventCategoriesHasBeenSet = false;
129
130 Aws::Utils::DateTime m_date{};
131 bool m_dateHasBeenSet = false;
132
133 Aws::String m_sourceArn;
134 bool m_sourceArnHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace DocDB
139} // namespace Aws
Event & WithEventCategories(EventCategoriesT &&value)
Definition Event.h:88
bool SourceArnHasBeenSet() const
Definition Event.h:110
Event & WithMessage(MessageT &&value)
Definition Event.h:76
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:83
SourceType GetSourceType() const
Definition Event.h:61
const Aws::String & GetSourceArn() const
Definition Event.h:109
Event & AddEventCategories(EventCategoriesT &&value)
Definition Event.h:90
bool SourceTypeHasBeenSet() const
Definition Event.h:62
const Aws::String & GetSourceIdentifier() const
Definition Event.h:49
Event & WithSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:54
Event & WithDate(DateT &&value)
Definition Event.h:102
bool SourceIdentifierHasBeenSet() const
Definition Event.h:50
bool DateHasBeenSet() const
Definition Event.h:98
bool EventCategoriesHasBeenSet() const
Definition Event.h:84
void SetDate(DateT &&value)
Definition Event.h:100
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMessage(MessageT &&value)
Definition Event.h:74
void SetEventCategories(EventCategoriesT &&value)
Definition Event.h:86
void SetSourceType(SourceType value)
Definition Event.h:63
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetMessage() const
Definition Event.h:71
void SetSourceArn(SourceArnT &&value)
Definition Event.h:112
Event & WithSourceArn(SourceArnT &&value)
Definition Event.h:114
bool MessageHasBeenSet() const
Definition Event.h:72
AWS_DOCDB_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithSourceType(SourceType value)
Definition Event.h:64
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:97
AWS_DOCDB_API Event()=default
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:52
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