AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EventInfoMap.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/core/utils/memory/stl/AWSVector.h>
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:
35 AWS_REDSHIFT_API EventInfoMap() = default;
36 AWS_REDSHIFT_API EventInfoMap(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_REDSHIFT_API EventInfoMap& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
44
47 inline const Aws::String& GetEventId() const { return m_eventId; }
48 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
49 template<typename EventIdT = Aws::String>
50 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
51 template<typename EventIdT = Aws::String>
52 EventInfoMap& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
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) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
63 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
64 EventInfoMap& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
65 template<typename EventCategoriesT = Aws::String>
66 EventInfoMap& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
68
70
73 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
74 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
75 template<typename EventDescriptionT = Aws::String>
76 void SetEventDescription(EventDescriptionT&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::forward<EventDescriptionT>(value); }
77 template<typename EventDescriptionT = Aws::String>
78 EventInfoMap& WithEventDescription(EventDescriptionT&& value) { SetEventDescription(std::forward<EventDescriptionT>(value)); return *this;}
80
82
85 inline const Aws::String& GetSeverity() const { return m_severity; }
86 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
87 template<typename SeverityT = Aws::String>
88 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
89 template<typename SeverityT = Aws::String>
90 EventInfoMap& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
92 private:
93
94 Aws::String m_eventId;
95 bool m_eventIdHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_eventCategories;
98 bool m_eventCategoriesHasBeenSet = false;
99
100 Aws::String m_eventDescription;
101 bool m_eventDescriptionHasBeenSet = false;
102
103 Aws::String m_severity;
104 bool m_severityHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Redshift
109} // 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