AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EventInfoMap.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace Redshift {
21namespace Model {
22
29 public:
30 AWS_REDSHIFT_API EventInfoMap() = default;
31 AWS_REDSHIFT_API EventInfoMap(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_REDSHIFT_API EventInfoMap& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetEventId() const { return m_eventId; }
42 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
43 template <typename EventIdT = Aws::String>
44 void SetEventId(EventIdT&& value) {
45 m_eventIdHasBeenSet = true;
46 m_eventId = std::forward<EventIdT>(value);
47 }
48 template <typename EventIdT = Aws::String>
49 EventInfoMap& WithEventId(EventIdT&& value) {
50 SetEventId(std::forward<EventIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
60 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
61 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
62 void SetEventCategories(EventCategoriesT&& value) {
63 m_eventCategoriesHasBeenSet = true;
64 m_eventCategories = std::forward<EventCategoriesT>(value);
65 }
66 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
67 EventInfoMap& WithEventCategories(EventCategoriesT&& value) {
68 SetEventCategories(std::forward<EventCategoriesT>(value));
69 return *this;
70 }
71 template <typename EventCategoriesT = Aws::String>
72 EventInfoMap& AddEventCategories(EventCategoriesT&& value) {
73 m_eventCategoriesHasBeenSet = true;
74 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
84 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
85 template <typename EventDescriptionT = Aws::String>
86 void SetEventDescription(EventDescriptionT&& value) {
87 m_eventDescriptionHasBeenSet = true;
88 m_eventDescription = std::forward<EventDescriptionT>(value);
89 }
90 template <typename EventDescriptionT = Aws::String>
91 EventInfoMap& WithEventDescription(EventDescriptionT&& value) {
92 SetEventDescription(std::forward<EventDescriptionT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetSeverity() const { return m_severity; }
102 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
103 template <typename SeverityT = Aws::String>
104 void SetSeverity(SeverityT&& value) {
105 m_severityHasBeenSet = true;
106 m_severity = std::forward<SeverityT>(value);
107 }
108 template <typename SeverityT = Aws::String>
109 EventInfoMap& WithSeverity(SeverityT&& value) {
110 SetSeverity(std::forward<SeverityT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_eventId;
116
117 Aws::Vector<Aws::String> m_eventCategories;
118
119 Aws::String m_eventDescription;
120
121 Aws::String m_severity;
122 bool m_eventIdHasBeenSet = false;
123 bool m_eventCategoriesHasBeenSet = false;
124 bool m_eventDescriptionHasBeenSet = false;
125 bool m_severityHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Redshift
130} // namespace Aws
const Aws::String & GetSeverity() const
AWS_REDSHIFT_API EventInfoMap()=default
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetEventId() const
EventInfoMap & WithEventDescription(EventDescriptionT &&value)
AWS_REDSHIFT_API EventInfoMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEventCategories(EventCategoriesT &&value)
void SetEventId(EventIdT &&value)
EventInfoMap & WithSeverity(SeverityT &&value)
AWS_REDSHIFT_API EventInfoMap(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEventDescription() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetEventCategories() const
void SetSeverity(SeverityT &&value)
EventInfoMap & WithEventCategories(EventCategoriesT &&value)
EventInfoMap & AddEventCategories(EventCategoriesT &&value)
EventInfoMap & WithEventId(EventIdT &&value)
void SetEventDescription(EventDescriptionT &&value)
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