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>
52 template <
typename NameT = Aws::String>
54 m_nameHasBeenSet =
true;
55 m_name = std::forward<NameT>(value);
57 template <
typename NameT = Aws::String>
59 SetName(std::forward<NameT>(value));
75 m_enabledHasBeenSet =
true;
122 template <
typename MatchingEventTypesT = Aws::Vector<EventType>>
124 m_matchingEventTypesHasBeenSet =
true;
125 m_matchingEventTypes = std::forward<MatchingEventTypesT>(value);
127 template <
typename MatchingEventTypesT = Aws::Vector<EventType>>
133 m_matchingEventTypesHasBeenSet =
true;
134 m_matchingEventTypes.push_back(value);
147 template <
typename KinesisFirehoseDestinationT = KinesisFirehoseDestination>
149 m_kinesisFirehoseDestinationHasBeenSet =
true;
150 m_kinesisFirehoseDestination = std::forward<KinesisFirehoseDestinationT>(value);
152 template <
typename KinesisFirehoseDestinationT = KinesisFirehoseDestination>
167 template <
typename CloudWatchDestinationT = CloudWatchDestination>
169 m_cloudWatchDestinationHasBeenSet =
true;
170 m_cloudWatchDestination = std::forward<CloudWatchDestinationT>(value);
172 template <
typename CloudWatchDestinationT = CloudWatchDestination>
186 template <
typename SnsDestinationT = SnsDestination>
188 m_snsDestinationHasBeenSet =
true;
189 m_snsDestination = std::forward<SnsDestinationT>(value);
191 template <
typename SnsDestinationT = SnsDestination>
206 template <
typename EventBr
idgeDestinationT = EventBr
idgeDestination>
208 m_eventBridgeDestinationHasBeenSet =
true;
209 m_eventBridgeDestination = std::forward<EventBridgeDestinationT>(value);
211 template <
typename EventBr
idgeDestinationT = EventBr
idgeDestination>
229 template <
typename Pinpo
intDestinationT = Pinpo
intDestination>
231 m_pinpointDestinationHasBeenSet =
true;
232 m_pinpointDestination = std::forward<PinpointDestinationT>(value);
234 template <
typename Pinpo
intDestinationT = Pinpo
intDestination>
243 bool m_enabled{
false};
247 KinesisFirehoseDestination m_kinesisFirehoseDestination;
249 CloudWatchDestination m_cloudWatchDestination;
251 SnsDestination m_snsDestination;
253 EventBridgeDestination m_eventBridgeDestination;
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;
AWS_SESV2_API EventDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SnsDestinationHasBeenSet() const
EventDestination & WithName(NameT &&value)
EventDestination & WithEventBridgeDestination(EventBridgeDestinationT &&value)
const CloudWatchDestination & GetCloudWatchDestination() const
const EventBridgeDestination & GetEventBridgeDestination() const
void SetKinesisFirehoseDestination(KinesisFirehoseDestinationT &&value)
bool EnabledHasBeenSet() const
bool EventBridgeDestinationHasBeenSet() const
bool CloudWatchDestinationHasBeenSet() const
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)
bool NameHasBeenSet() const
EventDestination & WithSnsDestination(SnsDestinationT &&value)
EventDestination & WithEnabled(bool value)
bool PinpointDestinationHasBeenSet() const
const SnsDestination & GetSnsDestination() const
void SetName(NameT &&value)
bool KinesisFirehoseDestinationHasBeenSet() const
bool MatchingEventTypesHasBeenSet() const
const Aws::Vector< EventType > & GetMatchingEventTypes() const
const PinpointDestination & GetPinpointDestination() const
EventDestination & WithPinpointDestination(PinpointDestinationT &&value)
void SetEnabled(bool 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