AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventCategoriesMap.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 <aws/redshift/model/EventInfoMap.h>
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:
36 AWS_REDSHIFT_API EventCategoriesMap();
37 AWS_REDSHIFT_API EventCategoriesMap(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_REDSHIFT_API EventCategoriesMap& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
45
49 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
50 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
51 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
52 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
53 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
54 inline EventCategoriesMap& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
55 inline EventCategoriesMap& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
56 inline EventCategoriesMap& WithSourceType(const char* value) { SetSourceType(value); return *this;}
58
60
63 inline const Aws::Vector<EventInfoMap>& GetEvents() const{ return m_events; }
64 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
65 inline void SetEvents(const Aws::Vector<EventInfoMap>& value) { m_eventsHasBeenSet = true; m_events = value; }
66 inline void SetEvents(Aws::Vector<EventInfoMap>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
67 inline EventCategoriesMap& WithEvents(const Aws::Vector<EventInfoMap>& value) { SetEvents(value); return *this;}
68 inline EventCategoriesMap& WithEvents(Aws::Vector<EventInfoMap>&& value) { SetEvents(std::move(value)); return *this;}
69 inline EventCategoriesMap& AddEvents(const EventInfoMap& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
70 inline EventCategoriesMap& AddEvents(EventInfoMap&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
72 private:
73
74 Aws::String m_sourceType;
75 bool m_sourceTypeHasBeenSet = false;
76
78 bool m_eventsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Redshift
83} // namespace Aws
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