AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SourceTypeT = Aws::String>
52 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
53 template<typename SourceTypeT = Aws::String>
54 EventCategoriesMap& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
56
58
61 inline const Aws::Vector<EventInfoMap>& GetEvents() const { return m_events; }
62 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
63 template<typename EventsT = Aws::Vector<EventInfoMap>>
64 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
65 template<typename EventsT = Aws::Vector<EventInfoMap>>
66 EventCategoriesMap& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
67 template<typename EventsT = EventInfoMap>
68 EventCategoriesMap& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
70 private:
71
72 Aws::String m_sourceType;
73 bool m_sourceTypeHasBeenSet = false;
74
76 bool m_eventsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Redshift
81} // namespace Aws
AWS_REDSHIFT_API EventCategoriesMap(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API EventCategoriesMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API EventCategoriesMap()=default
EventCategoriesMap & WithEvents(EventsT &&value)
const Aws::Vector< EventInfoMap > & GetEvents() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EventCategoriesMap & AddEvents(EventsT &&value)
EventCategoriesMap & WithSourceType(SourceTypeT &&value)
const Aws::String & GetSourceType() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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