AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EventInfoMap.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Redshift
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
46 inline const Aws::String& GetEventId() const{ return m_eventId; }
47
51 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
52
56 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
57
61 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
62
66 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
67
71 inline EventInfoMap& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
72
76 inline EventInfoMap& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
77
81 inline EventInfoMap& WithEventId(const char* value) { SetEventId(value); return *this;}
82
83
87 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
88
92 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
93
97 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
98
102 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
103
108
112 inline EventInfoMap& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
113
117 inline EventInfoMap& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
118
122 inline EventInfoMap& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
123
127 inline EventInfoMap& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
128
129
133 inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
134
138 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
139
143 inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
144
148 inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::move(value); }
149
153 inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
154
158 inline EventInfoMap& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;}
159
163 inline EventInfoMap& WithEventDescription(Aws::String&& value) { SetEventDescription(std::move(value)); return *this;}
164
168 inline EventInfoMap& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
169
170
174 inline const Aws::String& GetSeverity() const{ return m_severity; }
175
179 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
180
184 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
185
189 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
190
194 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
195
199 inline EventInfoMap& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
200
204 inline EventInfoMap& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
205
209 inline EventInfoMap& WithSeverity(const char* value) { SetSeverity(value); return *this;}
210
211 private:
212
213 Aws::String m_eventId;
214 bool m_eventIdHasBeenSet = false;
215
216 Aws::Vector<Aws::String> m_eventCategories;
217 bool m_eventCategoriesHasBeenSet = false;
218
219 Aws::String m_eventDescription;
220 bool m_eventDescriptionHasBeenSet = false;
221
222 Aws::String m_severity;
223 bool m_severityHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace Redshift
228} // namespace Aws
#define AWS_REDSHIFT_API
EventInfoMap & WithSeverity(const char *value)
Definition: EventInfoMap.h:209
EventInfoMap & WithEventId(Aws::String &&value)
Definition: EventInfoMap.h:76
const Aws::String & GetSeverity() const
Definition: EventInfoMap.h:174
EventInfoMap & WithEventId(const char *value)
Definition: EventInfoMap.h:81
EventInfoMap & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: EventInfoMap.h:107
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EventInfoMap & AddEventCategories(Aws::String &&value)
Definition: EventInfoMap.h:122
const Aws::String & GetEventId() const
Definition: EventInfoMap.h:46
EventInfoMap & WithEventDescription(Aws::String &&value)
Definition: EventInfoMap.h:163
void SetSeverity(const char *value)
Definition: EventInfoMap.h:194
EventInfoMap & WithSeverity(Aws::String &&value)
Definition: EventInfoMap.h:204
void SetEventDescription(const char *value)
Definition: EventInfoMap.h:153
EventInfoMap & AddEventCategories(const char *value)
Definition: EventInfoMap.h:127
void SetEventId(Aws::String &&value)
Definition: EventInfoMap.h:61
void SetEventId(const Aws::String &value)
Definition: EventInfoMap.h:56
AWS_REDSHIFT_API EventInfoMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSeverity(Aws::String &&value)
Definition: EventInfoMap.h:189
EventInfoMap & WithSeverity(const Aws::String &value)
Definition: EventInfoMap.h:199
void SetSeverity(const Aws::String &value)
Definition: EventInfoMap.h:184
void SetEventDescription(Aws::String &&value)
Definition: EventInfoMap.h:148
AWS_REDSHIFT_API EventInfoMap(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEventDescription() const
Definition: EventInfoMap.h:133
void SetEventId(const char *value)
Definition: EventInfoMap.h:66
EventInfoMap & AddEventCategories(const Aws::String &value)
Definition: EventInfoMap.h:117
EventInfoMap & WithEventId(const Aws::String &value)
Definition: EventInfoMap.h:71
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: EventInfoMap.h:87
EventInfoMap & WithEventDescription(const Aws::String &value)
Definition: EventInfoMap.h:158
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: EventInfoMap.h:97
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: EventInfoMap.h:102
void SetEventDescription(const Aws::String &value)
Definition: EventInfoMap.h:143
EventInfoMap & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: EventInfoMap.h:112
EventInfoMap & WithEventDescription(const char *value)
Definition: EventInfoMap.h:168
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