AWS SDK for C++  1.9.108
AWS SDK for C++
EventCategoriesMap.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace RDS
23 {
24 namespace Model
25 {
26 
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 
47  inline const Aws::String& GetSourceType() const{ return m_sourceType; }
48 
52  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
53 
57  inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
58 
62  inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
63 
67  inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
68 
72  inline EventCategoriesMap& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
73 
77  inline EventCategoriesMap& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
78 
82  inline EventCategoriesMap& WithSourceType(const char* value) { SetSourceType(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
89 
93  inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
94 
98  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
99 
103  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
104 
108  inline EventCategoriesMap& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
109 
113  inline EventCategoriesMap& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
114 
118  inline EventCategoriesMap& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
119 
123  inline EventCategoriesMap& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
124 
128  inline EventCategoriesMap& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
129 
130  private:
131 
132  Aws::String m_sourceType;
133  bool m_sourceTypeHasBeenSet;
134 
135  Aws::Vector<Aws::String> m_eventCategories;
136  bool m_eventCategoriesHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace RDS
141 } // namespace Aws
Aws::RDS::Model::EventCategoriesMap::operator=
EventCategoriesMap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::EventCategoriesMap::WithSourceType
EventCategoriesMap & WithSourceType(const char *value)
Definition: EventCategoriesMap.h:82
Aws::RDS::Model::EventCategoriesMap::SetSourceType
void SetSourceType(const char *value)
Definition: EventCategoriesMap.h:67
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::EventCategoriesMap::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::EventCategoriesMap::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: EventCategoriesMap.h:88
Aws::RDS::Model::EventCategoriesMap::AddEventCategories
EventCategoriesMap & AddEventCategories(const Aws::String &value)
Definition: EventCategoriesMap.h:118
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::RDS::Model::EventCategoriesMap::AddEventCategories
EventCategoriesMap & AddEventCategories(Aws::String &&value)
Definition: EventCategoriesMap.h:123
Aws::RDS::Model::EventCategoriesMap::WithSourceType
EventCategoriesMap & WithSourceType(Aws::String &&value)
Definition: EventCategoriesMap.h:77
Aws::RDS::Model::EventCategoriesMap::GetSourceType
const Aws::String & GetSourceType() const
Definition: EventCategoriesMap.h:47
Aws::RDS::Model::EventCategoriesMap::AddEventCategories
EventCategoriesMap & AddEventCategories(const char *value)
Definition: EventCategoriesMap.h:128
AWSVector.h
Aws::RDS::Model::EventCategoriesMap::WithEventCategories
EventCategoriesMap & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: EventCategoriesMap.h:113
Aws::RDS::Model::EventCategoriesMap::EventCategoriesMap
EventCategoriesMap(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::EventCategoriesMap::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::EventCategoriesMap::WithSourceType
EventCategoriesMap & WithSourceType(const Aws::String &value)
Definition: EventCategoriesMap.h:72
Aws::RDS::Model::EventCategoriesMap
Definition: EventCategoriesMap.h:34
AWSString.h
Aws::RDS::Model::EventCategoriesMap::EventCategoriesMap
EventCategoriesMap()
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::EventCategoriesMap::SetSourceType
void SetSourceType(const Aws::String &value)
Definition: EventCategoriesMap.h:57
Aws::RDS::Model::EventCategoriesMap::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: EventCategoriesMap.h:98
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::RDS::Model::EventCategoriesMap::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: EventCategoriesMap.h:52
Aws::RDS::Model::EventCategoriesMap::WithEventCategories
EventCategoriesMap & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: EventCategoriesMap.h:108
Aws::RDS::Model::EventCategoriesMap::SetSourceType
void SetSourceType(Aws::String &&value)
Definition: EventCategoriesMap.h:62
Aws::RDS::Model::EventCategoriesMap::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: EventCategoriesMap.h:93
Aws::RDS::Model::EventCategoriesMap::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: EventCategoriesMap.h:103