AWS SDK for C++  1.9.160
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 Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace SESV2
28 {
29 namespace Model
30 {
31 
43  {
44  public:
49 
50 
54  inline const Aws::String& GetName() const{ return m_name; }
55 
59  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 
64  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 
69  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 
74  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 
79  inline EventDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
80 
84  inline EventDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 
89  inline EventDestination& WithName(const char* value) { SetName(value); return *this;}
90 
91 
99  inline bool GetEnabled() const{ return m_enabled; }
100 
108  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
109 
117  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
118 
126  inline EventDestination& WithEnabled(bool value) { SetEnabled(value); return *this;}
127 
128 
133  inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
134 
139  inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
140 
145  inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
146 
151  inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
152 
157  inline EventDestination& WithMatchingEventTypes(const Aws::Vector<EventType>& value) { SetMatchingEventTypes(value); return *this;}
158 
163  inline EventDestination& WithMatchingEventTypes(Aws::Vector<EventType>&& value) { SetMatchingEventTypes(std::move(value)); return *this;}
164 
169  inline EventDestination& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
170 
175  inline EventDestination& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
176 
177 
183  inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
184 
190  inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
191 
197  inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
198 
204  inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
205 
211  inline EventDestination& WithKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { SetKinesisFirehoseDestination(value); return *this;}
212 
218  inline EventDestination& WithKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { SetKinesisFirehoseDestination(std::move(value)); return *this;}
219 
220 
226  inline const CloudWatchDestination& GetCloudWatchDestination() const{ return m_cloudWatchDestination; }
227 
233  inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; }
234 
240  inline void SetCloudWatchDestination(const CloudWatchDestination& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = value; }
241 
247  inline void SetCloudWatchDestination(CloudWatchDestination&& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = std::move(value); }
248 
254  inline EventDestination& WithCloudWatchDestination(const CloudWatchDestination& value) { SetCloudWatchDestination(value); return *this;}
255 
261  inline EventDestination& WithCloudWatchDestination(CloudWatchDestination&& value) { SetCloudWatchDestination(std::move(value)); return *this;}
262 
263 
268  inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; }
269 
274  inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; }
275 
280  inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; }
281 
286  inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); }
287 
292  inline EventDestination& WithSnsDestination(const SnsDestination& value) { SetSnsDestination(value); return *this;}
293 
298  inline EventDestination& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;}
299 
300 
309  inline const PinpointDestination& GetPinpointDestination() const{ return m_pinpointDestination; }
310 
319  inline bool PinpointDestinationHasBeenSet() const { return m_pinpointDestinationHasBeenSet; }
320 
329  inline void SetPinpointDestination(const PinpointDestination& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = value; }
330 
339  inline void SetPinpointDestination(PinpointDestination&& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = std::move(value); }
340 
349  inline EventDestination& WithPinpointDestination(const PinpointDestination& value) { SetPinpointDestination(value); return *this;}
350 
359  inline EventDestination& WithPinpointDestination(PinpointDestination&& value) { SetPinpointDestination(std::move(value)); return *this;}
360 
361  private:
362 
363  Aws::String m_name;
364  bool m_nameHasBeenSet;
365 
366  bool m_enabled;
367  bool m_enabledHasBeenSet;
368 
369  Aws::Vector<EventType> m_matchingEventTypes;
370  bool m_matchingEventTypesHasBeenSet;
371 
372  KinesisFirehoseDestination m_kinesisFirehoseDestination;
373  bool m_kinesisFirehoseDestinationHasBeenSet;
374 
375  CloudWatchDestination m_cloudWatchDestination;
376  bool m_cloudWatchDestinationHasBeenSet;
377 
378  SnsDestination m_snsDestination;
379  bool m_snsDestinationHasBeenSet;
380 
381  PinpointDestination m_pinpointDestination;
382  bool m_pinpointDestinationHasBeenSet;
383  };
384 
385 } // namespace Model
386 } // namespace SESV2
387 } // namespace Aws
Aws::SESV2::Model::EventDestination::SetCloudWatchDestination
void SetCloudWatchDestination(CloudWatchDestination &&value)
Definition: EventDestination.h:247
Aws::SESV2::Model::EventDestination::SetPinpointDestination
void SetPinpointDestination(PinpointDestination &&value)
Definition: EventDestination.h:339
Aws::SESV2::Model::EventDestination::CloudWatchDestinationHasBeenSet
bool CloudWatchDestinationHasBeenSet() const
Definition: EventDestination.h:233
Aws::SESV2::Model::EventDestination::SetName
void SetName(const Aws::String &value)
Definition: EventDestination.h:64
Aws::SESV2::Model::EventDestination::NameHasBeenSet
bool NameHasBeenSet() const
Definition: EventDestination.h:59
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::EventDestination::WithKinesisFirehoseDestination
EventDestination & WithKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
Definition: EventDestination.h:218
Aws::SESV2::Model::EventDestination::SetKinesisFirehoseDestination
void SetKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
Definition: EventDestination.h:197
Aws::SESV2::Model::EventType
EventType
Definition: EventType.h:17
Aws::SESV2::Model::EventDestination::WithKinesisFirehoseDestination
EventDestination & WithKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
Definition: EventDestination.h:211
Aws::SESV2::Model::EventDestination::WithPinpointDestination
EventDestination & WithPinpointDestination(const PinpointDestination &value)
Definition: EventDestination.h:349
Aws::SESV2::Model::EventDestination::WithName
EventDestination & WithName(const Aws::String &value)
Definition: EventDestination.h:79
Aws::SESV2::Model::EventDestination::GetCloudWatchDestination
const CloudWatchDestination & GetCloudWatchDestination() const
Definition: EventDestination.h:226
SnsDestination.h
Aws::SESV2::Model::EventDestination::GetEnabled
bool GetEnabled() const
Definition: EventDestination.h:99
Aws::SESV2::Model::EventDestination::WithCloudWatchDestination
EventDestination & WithCloudWatchDestination(CloudWatchDestination &&value)
Definition: EventDestination.h:261
Aws::SESV2::Model::EventDestination::SetMatchingEventTypes
void SetMatchingEventTypes(const Aws::Vector< EventType > &value)
Definition: EventDestination.h:145
Aws::SESV2::Model::EventDestination::GetMatchingEventTypes
const Aws::Vector< EventType > & GetMatchingEventTypes() const
Definition: EventDestination.h:133
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::EventDestination::GetKinesisFirehoseDestination
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
Definition: EventDestination.h:183
AWSVector.h
Aws::SESV2::Model::EventDestination::SetPinpointDestination
void SetPinpointDestination(const PinpointDestination &value)
Definition: EventDestination.h:329
Aws::SESV2::Model::EventDestination::SetSnsDestination
void SetSnsDestination(SnsDestination &&value)
Definition: EventDestination.h:286
Aws::SESV2::Model::KinesisFirehoseDestination
Definition: KinesisFirehoseDestination.h:34
Aws::SESV2::Model::EventDestination::WithSnsDestination
EventDestination & WithSnsDestination(const SnsDestination &value)
Definition: EventDestination.h:292
Aws::SESV2::Model::SnsDestination
Definition: SnsDestination.h:34
Aws::SESV2::Model::EventDestination::KinesisFirehoseDestinationHasBeenSet
bool KinesisFirehoseDestinationHasBeenSet() const
Definition: EventDestination.h:190
Aws::SESV2::Model::EventDestination::EventDestination
EventDestination(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::EventDestination::GetPinpointDestination
const PinpointDestination & GetPinpointDestination() const
Definition: EventDestination.h:309
Aws::SESV2::Model::EventDestination::WithSnsDestination
EventDestination & WithSnsDestination(SnsDestination &&value)
Definition: EventDestination.h:298
Aws::SESV2::Model::PinpointDestination
Definition: PinpointDestination.h:38
Aws::SESV2::Model::EventDestination::EventDestination
EventDestination()
Aws::SESV2::Model::EventDestination::AddMatchingEventTypes
EventDestination & AddMatchingEventTypes(EventType &&value)
Definition: EventDestination.h:175
Aws::SESV2::Model::EventDestination::AddMatchingEventTypes
EventDestination & AddMatchingEventTypes(const EventType &value)
Definition: EventDestination.h:169
Aws::SESV2::Model::EventDestination::SnsDestinationHasBeenSet
bool SnsDestinationHasBeenSet() const
Definition: EventDestination.h:274
EventType.h
Aws::SESV2::Model::EventDestination::WithPinpointDestination
EventDestination & WithPinpointDestination(PinpointDestination &&value)
Definition: EventDestination.h:359
Aws::SESV2::Model::EventDestination::GetSnsDestination
const SnsDestination & GetSnsDestination() const
Definition: EventDestination.h:268
Aws::SESV2::Model::EventDestination::MatchingEventTypesHasBeenSet
bool MatchingEventTypesHasBeenSet() const
Definition: EventDestination.h:139
Aws::SESV2::Model::EventDestination::SetEnabled
void SetEnabled(bool value)
Definition: EventDestination.h:117
Aws::SESV2::Model::EventDestination::SetSnsDestination
void SetSnsDestination(const SnsDestination &value)
Definition: EventDestination.h:280
Aws::SESV2::Model::EventDestination::SetKinesisFirehoseDestination
void SetKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
Definition: EventDestination.h:204
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SESV2::Model::EventDestination::SetName
void SetName(Aws::String &&value)
Definition: EventDestination.h:69
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SESV2::Model::EventDestination::WithEnabled
EventDestination & WithEnabled(bool value)
Definition: EventDestination.h:126
Aws::SESV2::Model::EventDestination::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
SESV2_EXPORTS.h
Aws::SESV2::Model::EventDestination::SetCloudWatchDestination
void SetCloudWatchDestination(const CloudWatchDestination &value)
Definition: EventDestination.h:240
Aws::SESV2::Model::EventDestination::WithMatchingEventTypes
EventDestination & WithMatchingEventTypes(const Aws::Vector< EventType > &value)
Definition: EventDestination.h:157
Aws::SESV2::Model::EventDestination::operator=
EventDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchDestination.h
Aws::SESV2::Model::EventDestination::WithName
EventDestination & WithName(const char *value)
Definition: EventDestination.h:89
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
PinpointDestination.h
Aws::SESV2::Model::EventDestination::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: EventDestination.h:108
Aws::SESV2::Model::EventDestination::SetMatchingEventTypes
void SetMatchingEventTypes(Aws::Vector< EventType > &&value)
Definition: EventDestination.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::CloudWatchDestination
Definition: CloudWatchDestination.h:35
Aws::SESV2::Model::EventDestination
Definition: EventDestination.h:43
Aws::SESV2::Model::EventDestination::WithCloudWatchDestination
EventDestination & WithCloudWatchDestination(const CloudWatchDestination &value)
Definition: EventDestination.h:254
Aws::SESV2::Model::EventDestination::GetName
const Aws::String & GetName() const
Definition: EventDestination.h:54
Aws::SESV2::Model::EventDestination::SetName
void SetName(const char *value)
Definition: EventDestination.h:74
Aws::SESV2::Model::EventDestination::PinpointDestinationHasBeenSet
bool PinpointDestinationHasBeenSet() const
Definition: EventDestination.h:319
KinesisFirehoseDestination.h
Aws::SESV2::Model::EventDestination::WithName
EventDestination & WithName(Aws::String &&value)
Definition: EventDestination.h:84
Aws::SESV2::Model::EventDestination::WithMatchingEventTypes
EventDestination & WithMatchingEventTypes(Aws::Vector< EventType > &&value)
Definition: EventDestination.h:163