AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EventCategoriesMap.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
48 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
49
54 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
55
60 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
61
66 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
67
72 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
73
78 inline EventCategoriesMap& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
79
84 inline EventCategoriesMap& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
85
90 inline EventCategoriesMap& WithSourceType(const char* value) { SetSourceType(value); return *this;}
91
92
96 inline const Aws::Vector<EventInfoMap>& GetEvents() const{ return m_events; }
97
101 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
102
106 inline void SetEvents(const Aws::Vector<EventInfoMap>& value) { m_eventsHasBeenSet = true; m_events = value; }
107
111 inline void SetEvents(Aws::Vector<EventInfoMap>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
112
116 inline EventCategoriesMap& WithEvents(const Aws::Vector<EventInfoMap>& value) { SetEvents(value); return *this;}
117
121 inline EventCategoriesMap& WithEvents(Aws::Vector<EventInfoMap>&& value) { SetEvents(std::move(value)); return *this;}
122
126 inline EventCategoriesMap& AddEvents(const EventInfoMap& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
127
131 inline EventCategoriesMap& AddEvents(EventInfoMap&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
132
133 private:
134
135 Aws::String m_sourceType;
136 bool m_sourceTypeHasBeenSet = false;
137
139 bool m_eventsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Redshift
144} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API EventCategoriesMap(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API EventCategoriesMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEvents(Aws::Vector< EventInfoMap > &&value)
EventCategoriesMap & WithSourceType(const char *value)
const Aws::Vector< EventInfoMap > & GetEvents() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSourceType() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EventCategoriesMap & WithEvents(const Aws::Vector< EventInfoMap > &value)
void SetSourceType(const Aws::String &value)
EventCategoriesMap & WithEvents(Aws::Vector< EventInfoMap > &&value)
EventCategoriesMap & AddEvents(EventInfoMap &&value)
EventCategoriesMap & AddEvents(const EventInfoMap &value)
EventCategoriesMap & WithSourceType(const Aws::String &value)
void SetEvents(const Aws::Vector< EventInfoMap > &value)
EventCategoriesMap & WithSourceType(Aws::String &&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