AWS SDK for C++  1.8.127
AWS SDK for C++
EventDestination.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace SES
27 {
28 namespace Model
29 {
30 
47  {
48  public:
52 
53  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
54  void OutputToStream(Aws::OStream& oStream, const char* location) const;
55 
56 
62  inline const Aws::String& GetName() const{ return m_name; }
63 
69  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 
76  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 
83  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
84 
90  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 
97  inline EventDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
98 
104  inline EventDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
105 
111  inline EventDestination& WithName(const char* value) { SetName(value); return *this;}
112 
113 
120  inline bool GetEnabled() const{ return m_enabled; }
121 
128  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
129 
136  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
137 
144  inline EventDestination& WithEnabled(bool value) { SetEnabled(value); return *this;}
145 
146 
150  inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
151 
155  inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
156 
160  inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
161 
165  inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
166 
170  inline EventDestination& WithMatchingEventTypes(const Aws::Vector<EventType>& value) { SetMatchingEventTypes(value); return *this;}
171 
175  inline EventDestination& WithMatchingEventTypes(Aws::Vector<EventType>&& value) { SetMatchingEventTypes(std::move(value)); return *this;}
176 
180  inline EventDestination& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
181 
185  inline EventDestination& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
186 
187 
192  inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
193 
198  inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
199 
204  inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
205 
210  inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
211 
216  inline EventDestination& WithKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { SetKinesisFirehoseDestination(value); return *this;}
217 
222  inline EventDestination& WithKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { SetKinesisFirehoseDestination(std::move(value)); return *this;}
223 
224 
229  inline const CloudWatchDestination& GetCloudWatchDestination() const{ return m_cloudWatchDestination; }
230 
235  inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; }
236 
241  inline void SetCloudWatchDestination(const CloudWatchDestination& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = value; }
242 
247  inline void SetCloudWatchDestination(CloudWatchDestination&& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = std::move(value); }
248 
253  inline EventDestination& WithCloudWatchDestination(const CloudWatchDestination& value) { SetCloudWatchDestination(value); return *this;}
254 
259  inline EventDestination& WithCloudWatchDestination(CloudWatchDestination&& value) { SetCloudWatchDestination(std::move(value)); return *this;}
260 
261 
266  inline const SNSDestination& GetSNSDestination() const{ return m_sNSDestination; }
267 
272  inline bool SNSDestinationHasBeenSet() const { return m_sNSDestinationHasBeenSet; }
273 
278  inline void SetSNSDestination(const SNSDestination& value) { m_sNSDestinationHasBeenSet = true; m_sNSDestination = value; }
279 
284  inline void SetSNSDestination(SNSDestination&& value) { m_sNSDestinationHasBeenSet = true; m_sNSDestination = std::move(value); }
285 
290  inline EventDestination& WithSNSDestination(const SNSDestination& value) { SetSNSDestination(value); return *this;}
291 
296  inline EventDestination& WithSNSDestination(SNSDestination&& value) { SetSNSDestination(std::move(value)); return *this;}
297 
298  private:
299 
300  Aws::String m_name;
301  bool m_nameHasBeenSet;
302 
303  bool m_enabled;
304  bool m_enabledHasBeenSet;
305 
306  Aws::Vector<EventType> m_matchingEventTypes;
307  bool m_matchingEventTypesHasBeenSet;
308 
309  KinesisFirehoseDestination m_kinesisFirehoseDestination;
310  bool m_kinesisFirehoseDestinationHasBeenSet;
311 
312  CloudWatchDestination m_cloudWatchDestination;
313  bool m_cloudWatchDestinationHasBeenSet;
314 
315  SNSDestination m_sNSDestination;
316  bool m_sNSDestinationHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace SES
321 } // namespace Aws
SNSDestination.h
Aws::SES::Model::EventDestination::KinesisFirehoseDestinationHasBeenSet
bool KinesisFirehoseDestinationHasBeenSet() const
Definition: EventDestination.h:198
Aws::SES::Model::EventDestination::WithSNSDestination
EventDestination & WithSNSDestination(SNSDestination &&value)
Definition: EventDestination.h:296
Aws::SES::Model::EventDestination::SetMatchingEventTypes
void SetMatchingEventTypes(const Aws::Vector< EventType > &value)
Definition: EventDestination.h:160
Aws::SES::Model::EventDestination::SetSNSDestination
void SetSNSDestination(const SNSDestination &value)
Definition: EventDestination.h:278
Aws::SES::Model::SNSDestination
Definition: SNSDestination.h:37
KinesisFirehoseDestination.h
Aws::SES::Model::EventDestination::GetKinesisFirehoseDestination
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
Definition: EventDestination.h:192
Aws::SES::Model::EventDestination::AddMatchingEventTypes
EventDestination & AddMatchingEventTypes(const EventType &value)
Definition: EventDestination.h:180
Aws::SES::Model::EventDestination::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: EventDestination.h:128
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SES::Model::EventDestination::WithMatchingEventTypes
EventDestination & WithMatchingEventTypes(Aws::Vector< EventType > &&value)
Definition: EventDestination.h:175
AWSStreamFwd.h
AWSVector.h
Aws::SES::Model::EventDestination::SetName
void SetName(const Aws::String &value)
Definition: EventDestination.h:76
Aws::SES::Model::EventDestination::GetEnabled
bool GetEnabled() const
Definition: EventDestination.h:120
Aws::SES::Model::EventDestination::GetName
const Aws::String & GetName() const
Definition: EventDestination.h:62
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::EventDestination::EventDestination
EventDestination(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::EventDestination::SetName
void SetName(const char *value)
Definition: EventDestination.h:90
Aws::SES::Model::CloudWatchDestination
Definition: CloudWatchDestination.h:39
Aws::SES::Model::EventDestination::WithName
EventDestination & WithName(const char *value)
Definition: EventDestination.h:111
Aws::SES::Model::EventDestination
Definition: EventDestination.h:47
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
EventType.h
Aws::SES::Model::EventDestination::WithName
EventDestination & WithName(const Aws::String &value)
Definition: EventDestination.h:97
Aws::SES::Model::EventDestination::SetName
void SetName(Aws::String &&value)
Definition: EventDestination.h:83
Aws::SES::Model::EventDestination::WithCloudWatchDestination
EventDestination & WithCloudWatchDestination(const CloudWatchDestination &value)
Definition: EventDestination.h:253
Aws::SES::Model::EventDestination::SetEnabled
void SetEnabled(bool value)
Definition: EventDestination.h:136
Aws::SES::Model::EventDestination::CloudWatchDestinationHasBeenSet
bool CloudWatchDestinationHasBeenSet() const
Definition: EventDestination.h:235
Aws::SES::Model::KinesisFirehoseDestination
Definition: KinesisFirehoseDestination.h:38
Aws::SES::Model::EventDestination::WithKinesisFirehoseDestination
EventDestination & WithKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
Definition: EventDestination.h:222
Aws::SES::Model::EventDestination::SNSDestinationHasBeenSet
bool SNSDestinationHasBeenSet() const
Definition: EventDestination.h:272
Aws::SES::Model::EventDestination::SetKinesisFirehoseDestination
void SetKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
Definition: EventDestination.h:204
Aws::SES::Model::EventDestination::EventDestination
EventDestination()
Aws::SES::Model::EventDestination::WithMatchingEventTypes
EventDestination & WithMatchingEventTypes(const Aws::Vector< EventType > &value)
Definition: EventDestination.h:170
Aws::SES::Model::EventDestination::WithName
EventDestination & WithName(Aws::String &&value)
Definition: EventDestination.h:104
AWSString.h
SES_EXPORTS.h
Aws::SES::Model::EventDestination::SetSNSDestination
void SetSNSDestination(SNSDestination &&value)
Definition: EventDestination.h:284
Aws::SES::Model::EventDestination::GetMatchingEventTypes
const Aws::Vector< EventType > & GetMatchingEventTypes() const
Definition: EventDestination.h:150
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::EventDestination::SetKinesisFirehoseDestination
void SetKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
Definition: EventDestination.h:210
Aws::SES::Model::EventDestination::NameHasBeenSet
bool NameHasBeenSet() const
Definition: EventDestination.h:69
Aws::SES::Model::EventDestination::WithKinesisFirehoseDestination
EventDestination & WithKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
Definition: EventDestination.h:216
Aws::SES::Model::EventDestination::GetSNSDestination
const SNSDestination & GetSNSDestination() const
Definition: EventDestination.h:266
Aws::SES::Model::EventDestination::SetCloudWatchDestination
void SetCloudWatchDestination(CloudWatchDestination &&value)
Definition: EventDestination.h:247
Aws::SES::Model::EventDestination::GetCloudWatchDestination
const CloudWatchDestination & GetCloudWatchDestination() const
Definition: EventDestination.h:229
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::EventDestination::AddMatchingEventTypes
EventDestination & AddMatchingEventTypes(EventType &&value)
Definition: EventDestination.h:185
Aws::SES::Model::EventDestination::WithCloudWatchDestination
EventDestination & WithCloudWatchDestination(CloudWatchDestination &&value)
Definition: EventDestination.h:259
Aws::SES::Model::EventType
EventType
Definition: EventType.h:17
Aws::SES::Model::EventDestination::WithEnabled
EventDestination & WithEnabled(bool value)
Definition: EventDestination.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SES::Model::EventDestination::operator=
EventDestination & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::EventDestination::MatchingEventTypesHasBeenSet
bool MatchingEventTypesHasBeenSet() const
Definition: EventDestination.h:155
Aws::SES::Model::EventDestination::WithSNSDestination
EventDestination & WithSNSDestination(const SNSDestination &value)
Definition: EventDestination.h:290
Aws::SES::Model::EventDestination::SetMatchingEventTypes
void SetMatchingEventTypes(Aws::Vector< EventType > &&value)
Definition: EventDestination.h:165
Aws::SES::Model::EventDestination::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
CloudWatchDestination.h
Aws::SES::Model::EventDestination::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::EventDestination::SetCloudWatchDestination
void SetCloudWatchDestination(const CloudWatchDestination &value)
Definition: EventDestination.h:241