AWS SDK for C++  1.9.103
AWS SDK for C++
EventInfoMap.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  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 
107  inline EventInfoMap& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
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;
215 
216  Aws::Vector<Aws::String> m_eventCategories;
217  bool m_eventCategoriesHasBeenSet;
218 
219  Aws::String m_eventDescription;
220  bool m_eventDescriptionHasBeenSet;
221 
222  Aws::String m_severity;
223  bool m_severityHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace Redshift
228 } // namespace Aws
Aws::Redshift::Model::EventInfoMap::SetEventDescription
void SetEventDescription(Aws::String &&value)
Definition: EventInfoMap.h:148
Aws::Redshift::Model::EventInfoMap::EventDescriptionHasBeenSet
bool EventDescriptionHasBeenSet() const
Definition: EventInfoMap.h:138
Aws::Redshift::Model::EventInfoMap::WithEventDescription
EventInfoMap & WithEventDescription(const Aws::String &value)
Definition: EventInfoMap.h:158
Aws::Redshift::Model::EventInfoMap::SetSeverity
void SetSeverity(Aws::String &&value)
Definition: EventInfoMap.h:189
Aws::Redshift::Model::EventInfoMap::SetEventDescription
void SetEventDescription(const Aws::String &value)
Definition: EventInfoMap.h:143
Aws::Redshift::Model::EventInfoMap::SetEventId
void SetEventId(const Aws::String &value)
Definition: EventInfoMap.h:56
Aws::Redshift::Model::EventInfoMap::SeverityHasBeenSet
bool SeverityHasBeenSet() const
Definition: EventInfoMap.h:179
Aws::Redshift::Model::EventInfoMap::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: EventInfoMap.h:92
Aws::Redshift::Model::EventInfoMap::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: EventInfoMap.h:102
Aws::Redshift::Model::EventInfoMap::WithSeverity
EventInfoMap & WithSeverity(const char *value)
Definition: EventInfoMap.h:209
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::EventInfoMap::SetEventDescription
void SetEventDescription(const char *value)
Definition: EventInfoMap.h:153
Aws::Redshift::Model::EventInfoMap
Definition: EventInfoMap.h:33
AWSStreamFwd.h
Aws::Redshift::Model::EventInfoMap::operator=
EventInfoMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSVector.h
Aws::Redshift::Model::EventInfoMap::GetEventId
const Aws::String & GetEventId() const
Definition: EventInfoMap.h:46
Aws::Redshift::Model::EventInfoMap::EventIdHasBeenSet
bool EventIdHasBeenSet() const
Definition: EventInfoMap.h:51
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::EventInfoMap::WithEventCategories
EventInfoMap & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: EventInfoMap.h:107
Aws::Redshift::Model::EventInfoMap::WithEventId
EventInfoMap & WithEventId(Aws::String &&value)
Definition: EventInfoMap.h:76
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::EventInfoMap::AddEventCategories
EventInfoMap & AddEventCategories(Aws::String &&value)
Definition: EventInfoMap.h:122
Aws::Redshift::Model::EventInfoMap::AddEventCategories
EventInfoMap & AddEventCategories(const char *value)
Definition: EventInfoMap.h:127
Aws::Redshift::Model::EventInfoMap::SetEventId
void SetEventId(Aws::String &&value)
Definition: EventInfoMap.h:61
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::EventInfoMap::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: EventInfoMap.h:97
Aws::Redshift::Model::EventInfoMap::GetEventDescription
const Aws::String & GetEventDescription() const
Definition: EventInfoMap.h:133
Aws::Redshift::Model::EventInfoMap::WithSeverity
EventInfoMap & WithSeverity(Aws::String &&value)
Definition: EventInfoMap.h:204
AWSString.h
Aws::Redshift::Model::EventInfoMap::WithEventId
EventInfoMap & WithEventId(const char *value)
Definition: EventInfoMap.h:81
Aws::Redshift::Model::EventInfoMap::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::EventInfoMap::GetSeverity
const Aws::String & GetSeverity() const
Definition: EventInfoMap.h:174
Aws::Redshift::Model::EventInfoMap::AddEventCategories
EventInfoMap & AddEventCategories(const Aws::String &value)
Definition: EventInfoMap.h:117
Aws::Redshift::Model::EventInfoMap::EventInfoMap
EventInfoMap(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::EventInfoMap::WithSeverity
EventInfoMap & WithSeverity(const Aws::String &value)
Definition: EventInfoMap.h:199
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::EventInfoMap::SetSeverity
void SetSeverity(const Aws::String &value)
Definition: EventInfoMap.h:184
Aws::Redshift::Model::EventInfoMap::SetSeverity
void SetSeverity(const char *value)
Definition: EventInfoMap.h:194
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::EventInfoMap::WithEventDescription
EventInfoMap & WithEventDescription(Aws::String &&value)
Definition: EventInfoMap.h:163
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::EventInfoMap::SetEventId
void SetEventId(const char *value)
Definition: EventInfoMap.h:66
Aws::Redshift::Model::EventInfoMap::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::EventInfoMap::WithEventId
EventInfoMap & WithEventId(const Aws::String &value)
Definition: EventInfoMap.h:71
Aws::Redshift::Model::EventInfoMap::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: EventInfoMap.h:87
Aws::Redshift::Model::EventInfoMap::WithEventCategories
EventInfoMap & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: EventInfoMap.h:112
Aws::Redshift::Model::EventInfoMap::WithEventDescription
EventInfoMap & WithEventDescription(const char *value)
Definition: EventInfoMap.h:168
Aws::Redshift::Model::EventInfoMap::EventInfoMap
EventInfoMap()