AWS SDK for C++  1.9.159
AWS SDK for C++
EventCategoriesMap.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  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;
137 
138  Aws::Vector<EventInfoMap> m_events;
139  bool m_eventsHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace Redshift
144 } // namespace Aws
Aws::Redshift::Model::EventCategoriesMap::SetSourceType
void SetSourceType(const Aws::String &value)
Definition: EventCategoriesMap.h:60
Aws::Redshift::Model::EventCategoriesMap::EventCategoriesMap
EventCategoriesMap()
Aws::Redshift::Model::EventCategoriesMap::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::EventCategoriesMap::AddEvents
EventCategoriesMap & AddEvents(EventInfoMap &&value)
Definition: EventCategoriesMap.h:131
Aws::Redshift::Model::EventCategoriesMap::EventsHasBeenSet
bool EventsHasBeenSet() const
Definition: EventCategoriesMap.h:101
Aws::Redshift::Model::EventCategoriesMap::EventCategoriesMap
EventCategoriesMap(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::EventCategoriesMap::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: EventCategoriesMap.h:54
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::EventInfoMap
Definition: EventInfoMap.h:33
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::EventCategoriesMap
Definition: EventCategoriesMap.h:34
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
EventInfoMap.h
Aws::Redshift::Model::EventCategoriesMap::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::EventCategoriesMap::WithSourceType
EventCategoriesMap & WithSourceType(Aws::String &&value)
Definition: EventCategoriesMap.h:84
Aws::Redshift::Model::EventCategoriesMap::WithEvents
EventCategoriesMap & WithEvents(Aws::Vector< EventInfoMap > &&value)
Definition: EventCategoriesMap.h:121
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::EventCategoriesMap::operator=
EventCategoriesMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::EventCategoriesMap::SetSourceType
void SetSourceType(const char *value)
Definition: EventCategoriesMap.h:72
Aws::Redshift::Model::EventCategoriesMap::WithEvents
EventCategoriesMap & WithEvents(const Aws::Vector< EventInfoMap > &value)
Definition: EventCategoriesMap.h:116
Aws::Redshift::Model::EventCategoriesMap::GetEvents
const Aws::Vector< EventInfoMap > & GetEvents() const
Definition: EventCategoriesMap.h:96
Aws::Redshift::Model::EventCategoriesMap::AddEvents
EventCategoriesMap & AddEvents(const EventInfoMap &value)
Definition: EventCategoriesMap.h:126
Aws::Redshift::Model::EventCategoriesMap::GetSourceType
const Aws::String & GetSourceType() const
Definition: EventCategoriesMap.h:48
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::EventCategoriesMap::SetEvents
void SetEvents(Aws::Vector< EventInfoMap > &&value)
Definition: EventCategoriesMap.h:111
Aws::Redshift::Model::EventCategoriesMap::WithSourceType
EventCategoriesMap & WithSourceType(const Aws::String &value)
Definition: EventCategoriesMap.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::EventCategoriesMap::SetEvents
void SetEvents(const Aws::Vector< EventInfoMap > &value)
Definition: EventCategoriesMap.h:106
Aws::Redshift::Model::EventCategoriesMap::SetSourceType
void SetSourceType(Aws::String &&value)
Definition: EventCategoriesMap.h:66
Aws::Redshift::Model::EventCategoriesMap::WithSourceType
EventCategoriesMap & WithSourceType(const char *value)
Definition: EventCategoriesMap.h:90