7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
10#include <aws/pinpoint-email/model/CloudWatchDestination.h>
11#include <aws/pinpoint-email/model/EventType.h>
12#include <aws/pinpoint-email/model/KinesisFirehoseDestination.h>
13#include <aws/pinpoint-email/model/PinpointDestination.h>
14#include <aws/pinpoint-email/model/SnsDestination.h>
25namespace PinpointEmail {
51 template <
typename NameT = Aws::String>
53 m_nameHasBeenSet =
true;
54 m_name = std::forward<NameT>(value);
56 template <
typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
74 m_enabledHasBeenSet =
true;
90 template <
typename MatchingEventTypesT = Aws::Vector<EventType>>
92 m_matchingEventTypesHasBeenSet =
true;
93 m_matchingEventTypes = std::forward<MatchingEventTypesT>(value);
95 template <
typename MatchingEventTypesT = Aws::Vector<EventType>>
101 m_matchingEventTypesHasBeenSet =
true;
102 m_matchingEventTypes.push_back(value);
115 template <
typename KinesisFirehoseDestinationT = KinesisFirehoseDestination>
117 m_kinesisFirehoseDestinationHasBeenSet =
true;
118 m_kinesisFirehoseDestination = std::forward<KinesisFirehoseDestinationT>(value);
120 template <
typename KinesisFirehoseDestinationT = KinesisFirehoseDestination>
135 template <
typename CloudWatchDestinationT = CloudWatchDestination>
137 m_cloudWatchDestinationHasBeenSet =
true;
138 m_cloudWatchDestination = std::forward<CloudWatchDestinationT>(value);
140 template <
typename CloudWatchDestinationT = CloudWatchDestination>
154 template <
typename SnsDestinationT = SnsDestination>
156 m_snsDestinationHasBeenSet =
true;
157 m_snsDestination = std::forward<SnsDestinationT>(value);
159 template <
typename SnsDestinationT = SnsDestination>
174 template <
typename Pinpo
intDestinationT = Pinpo
intDestination>
176 m_pinpointDestinationHasBeenSet =
true;
177 m_pinpointDestination = std::forward<PinpointDestinationT>(value);
179 template <
typename Pinpo
intDestinationT = Pinpo
intDestination>
188 bool m_enabled{
false};
192 KinesisFirehoseDestination m_kinesisFirehoseDestination;
194 CloudWatchDestination m_cloudWatchDestination;
196 SnsDestination m_snsDestination;
198 PinpointDestination m_pinpointDestination;
199 bool m_nameHasBeenSet =
false;
200 bool m_enabledHasBeenSet =
false;
201 bool m_matchingEventTypesHasBeenSet =
false;
202 bool m_kinesisFirehoseDestinationHasBeenSet =
false;
203 bool m_cloudWatchDestinationHasBeenSet =
false;
204 bool m_snsDestinationHasBeenSet =
false;
205 bool m_pinpointDestinationHasBeenSet =
false;
void SetPinpointDestination(PinpointDestinationT &&value)
bool MatchingEventTypesHasBeenSet() const
EventDestination & WithCloudWatchDestination(CloudWatchDestinationT &&value)
EventDestination & WithName(NameT &&value)
bool CloudWatchDestinationHasBeenSet() const
const SnsDestination & GetSnsDestination() const
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
const Aws::Vector< EventType > & GetMatchingEventTypes() const
void SetSnsDestination(SnsDestinationT &&value)
bool NameHasBeenSet() const
AWS_PINPOINTEMAIL_API EventDestination(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API EventDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEnabled(bool value)
AWS_PINPOINTEMAIL_API EventDestination()=default
bool KinesisFirehoseDestinationHasBeenSet() const
void SetKinesisFirehoseDestination(KinesisFirehoseDestinationT &&value)
EventDestination & WithMatchingEventTypes(MatchingEventTypesT &&value)
EventDestination & WithKinesisFirehoseDestination(KinesisFirehoseDestinationT &&value)
const PinpointDestination & GetPinpointDestination() const
EventDestination & WithEnabled(bool value)
void SetName(NameT &&value)
bool PinpointDestinationHasBeenSet() const
const CloudWatchDestination & GetCloudWatchDestination() const
void SetMatchingEventTypes(MatchingEventTypesT &&value)
void SetCloudWatchDestination(CloudWatchDestinationT &&value)
EventDestination & WithPinpointDestination(PinpointDestinationT &&value)
bool EnabledHasBeenSet() const
EventDestination & WithSnsDestination(SnsDestinationT &&value)
bool SnsDestinationHasBeenSet() const
const Aws::String & GetName() const
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
EventDestination & AddMatchingEventTypes(EventType 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