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/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sesv2/model/KinesisFirehoseDestination.h>
11#include <aws/sesv2/model/CloudWatchDestination.h>
12#include <aws/sesv2/model/SnsDestination.h>
13#include <aws/sesv2/model/EventBridgeDestination.h>
14#include <aws/sesv2/model/PinpointDestination.h>
15#include <aws/sesv2/model/EventType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SESV2
29{
30namespace Model
31{
32
44 {
45 public:
46 AWS_SESV2_API EventDestination();
49 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline EventDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline EventDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline EventDestination& WithName(const char* value) { SetName(value); return *this;}
65
67
74 inline bool GetEnabled() const{ return m_enabled; }
75 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
76 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
77 inline EventDestination& WithEnabled(bool value) { SetEnabled(value); return *this;}
79
81
116 inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
117 inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
118 inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
119 inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
121 inline EventDestination& WithMatchingEventTypes(Aws::Vector<EventType>&& value) { SetMatchingEventTypes(std::move(value)); return *this;}
122 inline EventDestination& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
123 inline EventDestination& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
125
127
132 inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
133 inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
134 inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
135 inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
139
141
146 inline const CloudWatchDestination& GetCloudWatchDestination() const{ return m_cloudWatchDestination; }
147 inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; }
148 inline void SetCloudWatchDestination(const CloudWatchDestination& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = value; }
149 inline void SetCloudWatchDestination(CloudWatchDestination&& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = std::move(value); }
153
155
159 inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; }
160 inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; }
161 inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; }
162 inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); }
163 inline EventDestination& WithSnsDestination(const SnsDestination& value) { SetSnsDestination(value); return *this;}
164 inline EventDestination& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;}
166
168
173 inline const EventBridgeDestination& GetEventBridgeDestination() const{ return m_eventBridgeDestination; }
174 inline bool EventBridgeDestinationHasBeenSet() const { return m_eventBridgeDestinationHasBeenSet; }
175 inline void SetEventBridgeDestination(const EventBridgeDestination& value) { m_eventBridgeDestinationHasBeenSet = true; m_eventBridgeDestination = value; }
176 inline void SetEventBridgeDestination(EventBridgeDestination&& value) { m_eventBridgeDestinationHasBeenSet = true; m_eventBridgeDestination = std::move(value); }
180
182
190 inline const PinpointDestination& GetPinpointDestination() const{ return m_pinpointDestination; }
191 inline bool PinpointDestinationHasBeenSet() const { return m_pinpointDestinationHasBeenSet; }
192 inline void SetPinpointDestination(const PinpointDestination& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = value; }
193 inline void SetPinpointDestination(PinpointDestination&& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = std::move(value); }
195 inline EventDestination& WithPinpointDestination(PinpointDestination&& value) { SetPinpointDestination(std::move(value)); return *this;}
197 private:
198
199 Aws::String m_name;
200 bool m_nameHasBeenSet = false;
201
202 bool m_enabled;
203 bool m_enabledHasBeenSet = false;
204
205 Aws::Vector<EventType> m_matchingEventTypes;
206 bool m_matchingEventTypesHasBeenSet = false;
207
208 KinesisFirehoseDestination m_kinesisFirehoseDestination;
209 bool m_kinesisFirehoseDestinationHasBeenSet = false;
210
211 CloudWatchDestination m_cloudWatchDestination;
212 bool m_cloudWatchDestinationHasBeenSet = false;
213
214 SnsDestination m_snsDestination;
215 bool m_snsDestinationHasBeenSet = false;
216
217 EventBridgeDestination m_eventBridgeDestination;
218 bool m_eventBridgeDestinationHasBeenSet = false;
219
220 PinpointDestination m_pinpointDestination;
221 bool m_pinpointDestinationHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace SESV2
226} // namespace Aws
void SetName(Aws::String &&value)
AWS_SESV2_API EventDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
EventDestination & WithPinpointDestination(const PinpointDestination &value)
const CloudWatchDestination & GetCloudWatchDestination() const
void SetSnsDestination(SnsDestination &&value)
EventDestination & AddMatchingEventTypes(EventType &&value)
EventDestination & WithMatchingEventTypes(const Aws::Vector< EventType > &value)
const EventBridgeDestination & GetEventBridgeDestination() const
void SetCloudWatchDestination(const CloudWatchDestination &value)
EventDestination & WithName(const Aws::String &value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
EventDestination & WithMatchingEventTypes(Aws::Vector< EventType > &&value)
const Aws::String & GetName() const
EventDestination & WithKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
void SetKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
void SetEventBridgeDestination(const EventBridgeDestination &value)
void SetName(const Aws::String &value)
EventDestination & WithSnsDestination(const SnsDestination &value)
EventDestination & WithPinpointDestination(PinpointDestination &&value)
void SetPinpointDestination(const PinpointDestination &value)
EventDestination & WithEnabled(bool value)
EventDestination & WithSnsDestination(SnsDestination &&value)
EventDestination & WithEventBridgeDestination(const EventBridgeDestination &value)
const SnsDestination & GetSnsDestination() const
EventDestination & WithCloudWatchDestination(CloudWatchDestination &&value)
EventDestination & WithName(const char *value)
EventDestination & WithName(Aws::String &&value)
EventDestination & AddMatchingEventTypes(const EventType &value)
EventDestination & WithKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
void SetMatchingEventTypes(Aws::Vector< EventType > &&value)
const Aws::Vector< EventType > & GetMatchingEventTypes() const
const PinpointDestination & GetPinpointDestination() const
void SetCloudWatchDestination(CloudWatchDestination &&value)
EventDestination & WithEventBridgeDestination(EventBridgeDestination &&value)
void SetPinpointDestination(PinpointDestination &&value)
void SetSnsDestination(const SnsDestination &value)
AWS_SESV2_API EventDestination(Aws::Utils::Json::JsonView jsonValue)
EventDestination & WithCloudWatchDestination(const CloudWatchDestination &value)
void SetMatchingEventTypes(const Aws::Vector< EventType > &value)
void SetKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
void SetEventBridgeDestination(EventBridgeDestination &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue