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/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/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 Redshift
25{
26namespace Model
27{
28
34 class Event
35 {
36 public:
37 AWS_REDSHIFT_API Event();
38 AWS_REDSHIFT_API Event(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_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
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::String& GetSeverity() const{ return m_severity; }
106 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
107 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
108 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
109 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
110 inline Event& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
111 inline Event& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
112 inline Event& WithSeverity(const char* value) { SetSeverity(value); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
120 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
121 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
122 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
123 inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
124 inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
126
128
131 inline const Aws::String& GetEventId() const{ return m_eventId; }
132 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
133 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
134 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
135 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
136 inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
137 inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
138 inline Event& WithEventId(const char* value) { SetEventId(value); return *this;}
140 private:
141
142 Aws::String m_sourceIdentifier;
143 bool m_sourceIdentifierHasBeenSet = false;
144
145 SourceType m_sourceType;
146 bool m_sourceTypeHasBeenSet = false;
147
148 Aws::String m_message;
149 bool m_messageHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_eventCategories;
152 bool m_eventCategoriesHasBeenSet = false;
153
154 Aws::String m_severity;
155 bool m_severityHasBeenSet = false;
156
158 bool m_dateHasBeenSet = false;
159
160 Aws::String m_eventId;
161 bool m_eventIdHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Redshift
166} // namespace Aws
void SetSeverity(const char *value)
Definition Event.h:109
bool SourceIdentifierHasBeenSet() const
Definition Event.h:50
void SetSeverity(Aws::String &&value)
Definition Event.h:108
const Aws::String & GetEventId() const
Definition Event.h:131
void SetMessage(Aws::String &&value)
Definition Event.h:78
void SetMessage(const char *value)
Definition Event.h:79
AWS_REDSHIFT_API Event()
const Aws::String & GetMessage() const
Definition Event.h:75
void SetSourceIdentifier(const Aws::String &value)
Definition Event.h:51
Event & WithMessage(const char *value)
Definition Event.h:82
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:93
void SetSeverity(const Aws::String &value)
Definition Event.h:107
Event & WithSeverity(Aws::String &&value)
Definition Event.h:111
void SetSourceType(SourceType &&value)
Definition Event.h:66
void SetSourceType(const SourceType &value)
Definition Event.h:65
bool EventCategoriesHasBeenSet() const
Definition Event.h:91
void SetEventId(Aws::String &&value)
Definition Event.h:134
bool MessageHasBeenSet() const
Definition Event.h:76
Event & WithSourceIdentifier(Aws::String &&value)
Definition Event.h:55
Event & WithEventId(const char *value)
Definition Event.h:138
void SetDate(const Aws::Utils::DateTime &value)
Definition Event.h:121
bool EventIdHasBeenSet() const
Definition Event.h:132
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Event & WithDate(const Aws::Utils::DateTime &value)
Definition Event.h:123
Event & WithEventId(Aws::String &&value)
Definition Event.h:137
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Event & WithMessage(Aws::String &&value)
Definition Event.h:81
Event & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:94
bool SeverityHasBeenSet() const
Definition Event.h:106
Event & WithSourceType(SourceType &&value)
Definition Event.h:68
Event & WithSourceIdentifier(const char *value)
Definition Event.h:56
Event & WithSeverity(const Aws::String &value)
Definition Event.h:110
const SourceType & GetSourceType() const
Definition Event.h:63
Event & WithDate(Aws::Utils::DateTime &&value)
Definition Event.h:124
bool DateHasBeenSet() const
Definition Event.h:120
AWS_REDSHIFT_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithMessage(const Aws::String &value)
Definition Event.h:80
Event & WithEventId(const Aws::String &value)
Definition Event.h:136
Event & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:95
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:92
Event & WithSourceType(const SourceType &value)
Definition Event.h:67
Event & AddEventCategories(const char *value)
Definition Event.h:98
void SetSourceIdentifier(const char *value)
Definition Event.h:53
const Aws::String & GetSourceIdentifier() const
Definition Event.h:49
const Aws::String & GetSeverity() const
Definition Event.h:105
Event & AddEventCategories(const Aws::String &value)
Definition Event.h:96
Event & AddEventCategories(Aws::String &&value)
Definition Event.h:97
bool SourceTypeHasBeenSet() const
Definition Event.h:64
void SetEventId(const Aws::String &value)
Definition Event.h:133
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:90
void SetSourceIdentifier(Aws::String &&value)
Definition Event.h:52
void SetDate(Aws::Utils::DateTime &&value)
Definition Event.h:122
AWS_REDSHIFT_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(const Aws::String &value)
Definition Event.h:77
Event & WithSourceIdentifier(const Aws::String &value)
Definition Event.h:54
Event & WithSeverity(const char *value)
Definition Event.h:112
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:119
void SetEventId(const char *value)
Definition Event.h:135
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