AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventDestination.h
1
6#pragma once
7#include <aws/email/SES_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/email/model/KinesisFirehoseDestination.h>
12#include <aws/email/model/CloudWatchDestination.h>
13#include <aws/email/model/SNSDestination.h>
14#include <aws/email/model/EventType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace SES
27{
28namespace Model
29{
30
46 {
47 public:
48 AWS_SES_API EventDestination();
49 AWS_SES_API EventDestination(const Aws::Utils::Xml::XmlNode& xmlNode);
51
52 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
53 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
54
55
57
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline EventDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline EventDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline EventDestination& WithName(const char* value) { SetName(value); return *this;}
72
74
80 inline bool GetEnabled() const{ return m_enabled; }
81 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
82 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
83 inline EventDestination& WithEnabled(bool value) { SetEnabled(value); return *this;}
85
87
102 inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
103 inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
104 inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
105 inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
107 inline EventDestination& WithMatchingEventTypes(Aws::Vector<EventType>&& value) { SetMatchingEventTypes(std::move(value)); return *this;}
108 inline EventDestination& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
109 inline EventDestination& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
111
113
117 inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
118 inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
119 inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
120 inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
124
126
130 inline const CloudWatchDestination& GetCloudWatchDestination() const{ return m_cloudWatchDestination; }
131 inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; }
132 inline void SetCloudWatchDestination(const CloudWatchDestination& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = value; }
133 inline void SetCloudWatchDestination(CloudWatchDestination&& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = std::move(value); }
137
139
143 inline const SNSDestination& GetSNSDestination() const{ return m_sNSDestination; }
144 inline bool SNSDestinationHasBeenSet() const { return m_sNSDestinationHasBeenSet; }
145 inline void SetSNSDestination(const SNSDestination& value) { m_sNSDestinationHasBeenSet = true; m_sNSDestination = value; }
146 inline void SetSNSDestination(SNSDestination&& value) { m_sNSDestinationHasBeenSet = true; m_sNSDestination = std::move(value); }
147 inline EventDestination& WithSNSDestination(const SNSDestination& value) { SetSNSDestination(value); return *this;}
148 inline EventDestination& WithSNSDestination(SNSDestination&& value) { SetSNSDestination(std::move(value)); return *this;}
150 private:
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 bool m_enabled;
156 bool m_enabledHasBeenSet = false;
157
158 Aws::Vector<EventType> m_matchingEventTypes;
159 bool m_matchingEventTypesHasBeenSet = false;
160
161 KinesisFirehoseDestination m_kinesisFirehoseDestination;
162 bool m_kinesisFirehoseDestinationHasBeenSet = false;
163
164 CloudWatchDestination m_cloudWatchDestination;
165 bool m_cloudWatchDestinationHasBeenSet = false;
166
167 SNSDestination m_sNSDestination;
168 bool m_sNSDestinationHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace SES
173} // namespace Aws
EventDestination & WithKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
void SetKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
void SetName(const char *value)
AWS_SES_API EventDestination & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventDestination & WithCloudWatchDestination(CloudWatchDestination &&value)
void SetCloudWatchDestination(CloudWatchDestination &&value)
void SetSNSDestination(SNSDestination &&value)
EventDestination & WithSNSDestination(const SNSDestination &value)
EventDestination & WithName(const Aws::String &value)
const CloudWatchDestination & GetCloudWatchDestination() const
AWS_SES_API EventDestination(const Aws::Utils::Xml::XmlNode &xmlNode)
EventDestination & WithCloudWatchDestination(const CloudWatchDestination &value)
void SetSNSDestination(const SNSDestination &value)
EventDestination & WithName(const char *value)
EventDestination & AddMatchingEventTypes(const EventType &value)
const SNSDestination & GetSNSDestination() const
const Aws::String & GetName() const
EventDestination & WithSNSDestination(SNSDestination &&value)
EventDestination & WithName(Aws::String &&value)
void SetMatchingEventTypes(Aws::Vector< EventType > &&value)
const Aws::Vector< EventType > & GetMatchingEventTypes() const
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
EventDestination & WithMatchingEventTypes(Aws::Vector< EventType > &&value)
void SetKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EventDestination & WithMatchingEventTypes(const Aws::Vector< EventType > &value)
EventDestination & AddMatchingEventTypes(EventType &&value)
void SetCloudWatchDestination(const CloudWatchDestination &value)
void SetMatchingEventTypes(const Aws::Vector< EventType > &value)
void SetName(const Aws::String &value)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EventDestination & WithKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
EventDestination & WithEnabled(bool value)
void SetName(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