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/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();
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 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
53 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
54 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
55 inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
56 inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
57 inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
59
61
64 inline const SourceType& GetSourceType() const{ return m_sourceType; }
65 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
66 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
67 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
68 inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
69 inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetMessage() const{ return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
79 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
80 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
81 inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
82 inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
83 inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
85
87
90 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
91 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
92 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
93 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
94 inline Event& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
95 inline Event& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
96 inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
97 inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
98 inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
100
102
105 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
106 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
107 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
108 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
109 inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
110 inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
112
114
117 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
118 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
119 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
120 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
121 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
122 inline Event& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
123 inline Event& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
124 inline Event& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
126 private:
127
128 Aws::String m_sourceIdentifier;
129 bool m_sourceIdentifierHasBeenSet = false;
130
131 SourceType m_sourceType;
132 bool m_sourceTypeHasBeenSet = false;
133
134 Aws::String m_message;
135 bool m_messageHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_eventCategories;
138 bool m_eventCategoriesHasBeenSet = false;
139
141 bool m_dateHasBeenSet = false;
142
143 Aws::String m_sourceArn;
144 bool m_sourceArnHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Neptune
149} // namespace Aws
const Aws::String & GetMessage() const
Definition Event.h:76
void SetMessage(const Aws::String &value)
Definition Event.h:78
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:93
void SetSourceArn(const char *value)
Definition Event.h:121
Event & WithMessage(const char *value)
Definition Event.h:83
Event & WithMessage(Aws::String &&value)
Definition Event.h:82
void SetSourceIdentifier(Aws::String &&value)
Definition Event.h:53
Event & WithSourceArn(Aws::String &&value)
Definition Event.h:123
bool EventCategoriesHasBeenSet() const
Definition Event.h:91
void SetSourceType(const SourceType &value)
Definition Event.h:66
Event & WithSourceIdentifier(const char *value)
Definition Event.h:57
Event & WithMessage(const Aws::String &value)
Definition Event.h:81
Event & AddEventCategories(const char *value)
Definition Event.h:98
Event & WithSourceArn(const char *value)
Definition Event.h:124
Event & WithDate(const Aws::Utils::DateTime &value)
Definition Event.h:109
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSourceArn(Aws::String &&value)
Definition Event.h:120
void SetDate(Aws::Utils::DateTime &&value)
Definition Event.h:108
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:92
Event & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:94
Event & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:95
bool SourceArnHasBeenSet() const
Definition Event.h:118
const SourceType & GetSourceType() const
Definition Event.h:64
const Aws::String & GetSourceIdentifier() const
Definition Event.h:50
bool SourceTypeHasBeenSet() const
Definition Event.h:65
void SetDate(const Aws::Utils::DateTime &value)
Definition Event.h:107
AWS_NEPTUNE_API Event()
bool SourceIdentifierHasBeenSet() const
Definition Event.h:51
AWS_NEPTUNE_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceType(SourceType &&value)
Definition Event.h:67
Event & WithSourceType(const SourceType &value)
Definition Event.h:68
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)
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:90
void SetSourceArn(const Aws::String &value)
Definition Event.h:119
const Aws::String & GetSourceArn() const
Definition Event.h:117
Event & WithDate(Aws::Utils::DateTime &&value)
Definition Event.h:110
Event & WithSourceIdentifier(const Aws::String &value)
Definition Event.h:55
void SetSourceIdentifier(const char *value)
Definition Event.h:54
Event & AddEventCategories(const Aws::String &value)
Definition Event.h:96
Event & WithSourceType(SourceType &&value)
Definition Event.h:69
bool MessageHasBeenSet() const
Definition Event.h:77
void SetMessage(const char *value)
Definition Event.h:80
Event & WithSourceIdentifier(Aws::String &&value)
Definition Event.h:56
Event & WithSourceArn(const Aws::String &value)
Definition Event.h:122
void SetMessage(Aws::String &&value)
Definition Event.h:79
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:105
Event & AddEventCategories(Aws::String &&value)
Definition Event.h:97
void SetSourceIdentifier(const Aws::String &value)
Definition Event.h:52
bool DateHasBeenSet() const
Definition Event.h:106
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