AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
52 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
53 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
54 inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
55 inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
56 inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
58
60
63 inline const SourceType& GetSourceType() const{ return m_sourceType; }
64 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
65 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
66 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
67 inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
68 inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetMessage() const{ return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
78 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
79 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
81 inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
82 inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
84
86
89 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
90 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
91 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
92 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
93 inline Event& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
94 inline Event& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
95 inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
96 inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
97 inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
99
101
104 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
105 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
106 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
107 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
108 inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
109 inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
117 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
118 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
119 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
120 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
121 inline Event& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
122 inline Event& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
123 inline Event& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
125 private:
126
127 Aws::String m_sourceIdentifier;
128 bool m_sourceIdentifierHasBeenSet = false;
129
130 SourceType m_sourceType;
131 bool m_sourceTypeHasBeenSet = false;
132
133 Aws::String m_message;
134 bool m_messageHasBeenSet = false;
135
136 Aws::Vector<Aws::String> m_eventCategories;
137 bool m_eventCategoriesHasBeenSet = false;
138
140 bool m_dateHasBeenSet = false;
141
142 Aws::String m_sourceArn;
143 bool m_sourceArnHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace DocDB
148} // namespace Aws
void SetDate(Aws::Utils::DateTime &&value)
Definition Event.h:107
void SetSourceArn(Aws::String &&value)
Definition Event.h:119
Event & WithSourceArn(Aws::String &&value)
Definition Event.h:122
void SetSourceIdentifier(const char *value)
Definition Event.h:53
bool SourceArnHasBeenSet() const
Definition Event.h:117
void SetSourceIdentifier(Aws::String &&value)
Definition Event.h:52
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:89
const Aws::String & GetSourceArn() const
Definition Event.h:116
Event & WithSourceIdentifier(const Aws::String &value)
Definition Event.h:54
bool SourceTypeHasBeenSet() const
Definition Event.h:64
void SetSourceType(const SourceType &value)
Definition Event.h:65
void SetMessage(const char *value)
Definition Event.h:79
Event & WithSourceIdentifier(Aws::String &&value)
Definition Event.h:55
const Aws::String & GetSourceIdentifier() const
Definition Event.h:49
Event & WithSourceType(const SourceType &value)
Definition Event.h:67
Event & AddEventCategories(const Aws::String &value)
Definition Event.h:95
void SetSourceArn(const char *value)
Definition Event.h:120
Event & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:93
void SetSourceType(SourceType &&value)
Definition Event.h:66
bool SourceIdentifierHasBeenSet() const
Definition Event.h:50
bool DateHasBeenSet() const
Definition Event.h:105
Event & WithSourceType(SourceType &&value)
Definition Event.h:68
bool EventCategoriesHasBeenSet() const
Definition Event.h:90
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSourceArn(const Aws::String &value)
Definition Event.h:118
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Event & WithSourceArn(const Aws::String &value)
Definition Event.h:121
const Aws::String & GetMessage() const
Definition Event.h:75
Event & WithDate(const Aws::Utils::DateTime &value)
Definition Event.h:108
Event & WithDate(Aws::Utils::DateTime &&value)
Definition Event.h:109
Event & WithSourceIdentifier(const char *value)
Definition Event.h:56
Event & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:94
void SetSourceIdentifier(const Aws::String &value)
Definition Event.h:51
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:92
Event & AddEventCategories(const char *value)
Definition Event.h:97
void SetMessage(Aws::String &&value)
Definition Event.h:78
void SetDate(const Aws::Utils::DateTime &value)
Definition Event.h:106
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:91
bool MessageHasBeenSet() const
Definition Event.h:76
void SetMessage(const Aws::String &value)
Definition Event.h:77
AWS_DOCDB_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithMessage(const char *value)
Definition Event.h:82
Event & WithMessage(const Aws::String &value)
Definition Event.h:80
Event & WithMessage(Aws::String &&value)
Definition Event.h:81
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:104
const SourceType & GetSourceType() const
Definition Event.h:63
Event & AddEventCategories(Aws::String &&value)
Definition Event.h:96
Event & WithSourceArn(const char *value)
Definition Event.h:123
AWS_DOCDB_API Event()
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