AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EventDestination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/CloudWatchDestination.h>
11#include <aws/sesv2/model/EventBridgeDestination.h>
12#include <aws/sesv2/model/EventType.h>
13#include <aws/sesv2/model/KinesisFirehoseDestination.h>
14#include <aws/sesv2/model/PinpointDestination.h>
15#include <aws/sesv2/model/SnsDestination.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SESV2 {
27namespace Model {
28
40 public:
41 AWS_SESV2_API EventDestination() = default;
44 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template <typename NameT = Aws::String>
53 void SetName(NameT&& value) {
54 m_nameHasBeenSet = true;
55 m_name = std::forward<NameT>(value);
56 }
57 template <typename NameT = Aws::String>
58 EventDestination& WithName(NameT&& value) {
59 SetName(std::forward<NameT>(value));
60 return *this;
61 }
63
65
72 inline bool GetEnabled() const { return m_enabled; }
73 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
74 inline void SetEnabled(bool value) {
75 m_enabledHasBeenSet = true;
76 m_enabled = value;
77 }
78 inline EventDestination& WithEnabled(bool value) {
79 SetEnabled(value);
80 return *this;
81 }
83
85
120 inline const Aws::Vector<EventType>& GetMatchingEventTypes() const { return m_matchingEventTypes; }
121 inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
122 template <typename MatchingEventTypesT = Aws::Vector<EventType>>
123 void SetMatchingEventTypes(MatchingEventTypesT&& value) {
124 m_matchingEventTypesHasBeenSet = true;
125 m_matchingEventTypes = std::forward<MatchingEventTypesT>(value);
126 }
127 template <typename MatchingEventTypesT = Aws::Vector<EventType>>
128 EventDestination& WithMatchingEventTypes(MatchingEventTypesT&& value) {
129 SetMatchingEventTypes(std::forward<MatchingEventTypesT>(value));
130 return *this;
131 }
133 m_matchingEventTypesHasBeenSet = true;
134 m_matchingEventTypes.push_back(value);
135 return *this;
136 }
138
140
145 inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const { return m_kinesisFirehoseDestination; }
146 inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
147 template <typename KinesisFirehoseDestinationT = KinesisFirehoseDestination>
148 void SetKinesisFirehoseDestination(KinesisFirehoseDestinationT&& value) {
149 m_kinesisFirehoseDestinationHasBeenSet = true;
150 m_kinesisFirehoseDestination = std::forward<KinesisFirehoseDestinationT>(value);
151 }
152 template <typename KinesisFirehoseDestinationT = KinesisFirehoseDestination>
153 EventDestination& WithKinesisFirehoseDestination(KinesisFirehoseDestinationT&& value) {
154 SetKinesisFirehoseDestination(std::forward<KinesisFirehoseDestinationT>(value));
155 return *this;
156 }
158
160
165 inline const CloudWatchDestination& GetCloudWatchDestination() const { return m_cloudWatchDestination; }
166 inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; }
167 template <typename CloudWatchDestinationT = CloudWatchDestination>
168 void SetCloudWatchDestination(CloudWatchDestinationT&& value) {
169 m_cloudWatchDestinationHasBeenSet = true;
170 m_cloudWatchDestination = std::forward<CloudWatchDestinationT>(value);
171 }
172 template <typename CloudWatchDestinationT = CloudWatchDestination>
173 EventDestination& WithCloudWatchDestination(CloudWatchDestinationT&& value) {
174 SetCloudWatchDestination(std::forward<CloudWatchDestinationT>(value));
175 return *this;
176 }
178
180
184 inline const SnsDestination& GetSnsDestination() const { return m_snsDestination; }
185 inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; }
186 template <typename SnsDestinationT = SnsDestination>
187 void SetSnsDestination(SnsDestinationT&& value) {
188 m_snsDestinationHasBeenSet = true;
189 m_snsDestination = std::forward<SnsDestinationT>(value);
190 }
191 template <typename SnsDestinationT = SnsDestination>
192 EventDestination& WithSnsDestination(SnsDestinationT&& value) {
193 SetSnsDestination(std::forward<SnsDestinationT>(value));
194 return *this;
195 }
197
199
204 inline const EventBridgeDestination& GetEventBridgeDestination() const { return m_eventBridgeDestination; }
205 inline bool EventBridgeDestinationHasBeenSet() const { return m_eventBridgeDestinationHasBeenSet; }
206 template <typename EventBridgeDestinationT = EventBridgeDestination>
207 void SetEventBridgeDestination(EventBridgeDestinationT&& value) {
208 m_eventBridgeDestinationHasBeenSet = true;
209 m_eventBridgeDestination = std::forward<EventBridgeDestinationT>(value);
210 }
211 template <typename EventBridgeDestinationT = EventBridgeDestination>
212 EventDestination& WithEventBridgeDestination(EventBridgeDestinationT&& value) {
213 SetEventBridgeDestination(std::forward<EventBridgeDestinationT>(value));
214 return *this;
215 }
217
219
227 inline const PinpointDestination& GetPinpointDestination() const { return m_pinpointDestination; }
228 inline bool PinpointDestinationHasBeenSet() const { return m_pinpointDestinationHasBeenSet; }
229 template <typename PinpointDestinationT = PinpointDestination>
230 void SetPinpointDestination(PinpointDestinationT&& value) {
231 m_pinpointDestinationHasBeenSet = true;
232 m_pinpointDestination = std::forward<PinpointDestinationT>(value);
233 }
234 template <typename PinpointDestinationT = PinpointDestination>
235 EventDestination& WithPinpointDestination(PinpointDestinationT&& value) {
236 SetPinpointDestination(std::forward<PinpointDestinationT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_name;
242
243 bool m_enabled{false};
244
245 Aws::Vector<EventType> m_matchingEventTypes;
246
247 KinesisFirehoseDestination m_kinesisFirehoseDestination;
248
249 CloudWatchDestination m_cloudWatchDestination;
250
251 SnsDestination m_snsDestination;
252
253 EventBridgeDestination m_eventBridgeDestination;
254
255 PinpointDestination m_pinpointDestination;
256 bool m_nameHasBeenSet = false;
257 bool m_enabledHasBeenSet = false;
258 bool m_matchingEventTypesHasBeenSet = false;
259 bool m_kinesisFirehoseDestinationHasBeenSet = false;
260 bool m_cloudWatchDestinationHasBeenSet = false;
261 bool m_snsDestinationHasBeenSet = false;
262 bool m_eventBridgeDestinationHasBeenSet = false;
263 bool m_pinpointDestinationHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace SESV2
268} // namespace Aws
AWS_SESV2_API EventDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
EventDestination & WithName(NameT &&value)
EventDestination & WithEventBridgeDestination(EventBridgeDestinationT &&value)
const CloudWatchDestination & GetCloudWatchDestination() const
const EventBridgeDestination & GetEventBridgeDestination() const
void SetKinesisFirehoseDestination(KinesisFirehoseDestinationT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
EventDestination & WithKinesisFirehoseDestination(KinesisFirehoseDestinationT &&value)
const Aws::String & GetName() const
void SetMatchingEventTypes(MatchingEventTypesT &&value)
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
EventDestination & AddMatchingEventTypes(EventType value)
void SetSnsDestination(SnsDestinationT &&value)
void SetPinpointDestination(PinpointDestinationT &&value)
EventDestination & WithSnsDestination(SnsDestinationT &&value)
EventDestination & WithEnabled(bool value)
const SnsDestination & GetSnsDestination() const
const Aws::Vector< EventType > & GetMatchingEventTypes() const
const PinpointDestination & GetPinpointDestination() const
EventDestination & WithPinpointDestination(PinpointDestinationT &&value)
void SetEventBridgeDestination(EventBridgeDestinationT &&value)
AWS_SESV2_API EventDestination()=default
EventDestination & WithCloudWatchDestination(CloudWatchDestinationT &&value)
EventDestination & WithMatchingEventTypes(MatchingEventTypesT &&value)
AWS_SESV2_API EventDestination(Aws::Utils::Json::JsonView jsonValue)
void SetCloudWatchDestination(CloudWatchDestinationT &&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