AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
50 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
51 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
52 inline EventInfoMap& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
53 inline EventInfoMap& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
54 inline EventInfoMap& WithEventId(const char* value) { SetEventId(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
62 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
63 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
64 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
65 inline EventInfoMap& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
66 inline EventInfoMap& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
67 inline EventInfoMap& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
68 inline EventInfoMap& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
69 inline EventInfoMap& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
71
73
76 inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
77 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
78 inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
79 inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::move(value); }
80 inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
81 inline EventInfoMap& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;}
82 inline EventInfoMap& WithEventDescription(Aws::String&& value) { SetEventDescription(std::move(value)); return *this;}
83 inline EventInfoMap& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
85
87
90 inline const Aws::String& GetSeverity() const{ return m_severity; }
91 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
92 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
93 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
94 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
95 inline EventInfoMap& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
96 inline EventInfoMap& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
97 inline EventInfoMap& WithSeverity(const char* value) { SetSeverity(value); return *this;}
99 private:
100
101 Aws::String m_eventId;
102 bool m_eventIdHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_eventCategories;
105 bool m_eventCategoriesHasBeenSet = false;
106
107 Aws::String m_eventDescription;
108 bool m_eventDescriptionHasBeenSet = false;
109
110 Aws::String m_severity;
111 bool m_severityHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Redshift
116} // namespace Aws
EventInfoMap & WithSeverity(const char *value)
EventInfoMap & WithEventId(Aws::String &&value)
const Aws::String & GetSeverity() const
EventInfoMap & WithEventId(const char *value)
EventInfoMap & WithEventCategories(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EventInfoMap & AddEventCategories(Aws::String &&value)
const Aws::String & GetEventId() const
EventInfoMap & WithEventDescription(Aws::String &&value)
void SetSeverity(const char *value)
EventInfoMap & WithSeverity(Aws::String &&value)
void SetEventDescription(const char *value)
EventInfoMap & AddEventCategories(const char *value)
void SetEventId(Aws::String &&value)
void SetEventId(const Aws::String &value)
AWS_REDSHIFT_API EventInfoMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSeverity(Aws::String &&value)
EventInfoMap & WithSeverity(const Aws::String &value)
void SetSeverity(const Aws::String &value)
void SetEventDescription(Aws::String &&value)
AWS_REDSHIFT_API EventInfoMap(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEventDescription() const
void SetEventId(const char *value)
EventInfoMap & AddEventCategories(const Aws::String &value)
EventInfoMap & WithEventId(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetEventCategories() const
EventInfoMap & WithEventDescription(const Aws::String &value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
void SetEventDescription(const Aws::String &value)
EventInfoMap & WithEventCategories(Aws::Vector< Aws::String > &&value)
EventInfoMap & WithEventDescription(const char *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