AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventCategoriesMap.h
1
6#pragma once
7#include <aws/neptune/Neptune_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 Neptune
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NEPTUNE_API EventCategoriesMap() = default;
37 AWS_NEPTUNE_API EventCategoriesMap(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_NEPTUNE_API EventCategoriesMap& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetSourceType() const { return m_sourceType; }
49 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
50 template<typename SourceTypeT = Aws::String>
51 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
52 template<typename SourceTypeT = Aws::String>
53 EventCategoriesMap& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
61 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
62 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
63 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
64 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
65 EventCategoriesMap& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
66 template<typename EventCategoriesT = Aws::String>
67 EventCategoriesMap& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
69 private:
70
71 Aws::String m_sourceType;
72 bool m_sourceTypeHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_eventCategories;
75 bool m_eventCategoriesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Neptune
80} // namespace Aws
EventCategoriesMap & AddEventCategories(EventCategoriesT &&value)
EventCategoriesMap & WithEventCategories(EventCategoriesT &&value)
void SetEventCategories(EventCategoriesT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
EventCategoriesMap & WithSourceType(SourceTypeT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_NEPTUNE_API EventCategoriesMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API EventCategoriesMap(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API EventCategoriesMap()=default
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSourceType() 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