AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventDestinationDefinition.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sesv2/model/KinesisFirehoseDestination.h>
10#include <aws/sesv2/model/CloudWatchDestination.h>
11#include <aws/sesv2/model/SnsDestination.h>
12#include <aws/sesv2/model/EventBridgeDestination.h>
13#include <aws/sesv2/model/PinpointDestination.h>
14#include <aws/sesv2/model/EventType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SESV2
28{
29namespace Model
30{
31
41 {
42 public:
46 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
57 inline bool GetEnabled() const{ return m_enabled; }
58 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
59 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
60 inline EventDestinationDefinition& WithEnabled(bool value) { SetEnabled(value); return *this;}
62
64
68 inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
69 inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
70 inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
71 inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
74 inline EventDestinationDefinition& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
75 inline EventDestinationDefinition& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
77
79
84 inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
85 inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
86 inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
87 inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
91
93
98 inline const CloudWatchDestination& GetCloudWatchDestination() const{ return m_cloudWatchDestination; }
99 inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; }
100 inline void SetCloudWatchDestination(const CloudWatchDestination& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = value; }
101 inline void SetCloudWatchDestination(CloudWatchDestination&& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = std::move(value); }
105
107
111 inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; }
112 inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; }
113 inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; }
114 inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); }
116 inline EventDestinationDefinition& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;}
118
120
125 inline const EventBridgeDestination& GetEventBridgeDestination() const{ return m_eventBridgeDestination; }
126 inline bool EventBridgeDestinationHasBeenSet() const { return m_eventBridgeDestinationHasBeenSet; }
127 inline void SetEventBridgeDestination(const EventBridgeDestination& value) { m_eventBridgeDestinationHasBeenSet = true; m_eventBridgeDestination = value; }
128 inline void SetEventBridgeDestination(EventBridgeDestination&& value) { m_eventBridgeDestinationHasBeenSet = true; m_eventBridgeDestination = std::move(value); }
132
134
142 inline const PinpointDestination& GetPinpointDestination() const{ return m_pinpointDestination; }
143 inline bool PinpointDestinationHasBeenSet() const { return m_pinpointDestinationHasBeenSet; }
144 inline void SetPinpointDestination(const PinpointDestination& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = value; }
145 inline void SetPinpointDestination(PinpointDestination&& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = std::move(value); }
149 private:
150
151 bool m_enabled;
152 bool m_enabledHasBeenSet = false;
153
154 Aws::Vector<EventType> m_matchingEventTypes;
155 bool m_matchingEventTypesHasBeenSet = false;
156
157 KinesisFirehoseDestination m_kinesisFirehoseDestination;
158 bool m_kinesisFirehoseDestinationHasBeenSet = false;
159
160 CloudWatchDestination m_cloudWatchDestination;
161 bool m_cloudWatchDestinationHasBeenSet = false;
162
163 SnsDestination m_snsDestination;
164 bool m_snsDestinationHasBeenSet = false;
165
166 EventBridgeDestination m_eventBridgeDestination;
167 bool m_eventBridgeDestinationHasBeenSet = false;
168
169 PinpointDestination m_pinpointDestination;
170 bool m_pinpointDestinationHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace SESV2
175} // namespace Aws
EventDestinationDefinition & AddMatchingEventTypes(EventType &&value)
EventDestinationDefinition & WithKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
EventDestinationDefinition & WithSnsDestination(const SnsDestination &value)
EventDestinationDefinition & WithEventBridgeDestination(const EventBridgeDestination &value)
const Aws::Vector< EventType > & GetMatchingEventTypes() const
EventDestinationDefinition & WithPinpointDestination(PinpointDestination &&value)
const CloudWatchDestination & GetCloudWatchDestination() const
void SetCloudWatchDestination(const CloudWatchDestination &value)
void SetMatchingEventTypes(Aws::Vector< EventType > &&value)
void SetKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
EventDestinationDefinition & WithCloudWatchDestination(CloudWatchDestination &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCloudWatchDestination(CloudWatchDestination &&value)
void SetKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
AWS_SESV2_API EventDestinationDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
EventDestinationDefinition & WithSnsDestination(SnsDestination &&value)
EventDestinationDefinition & WithKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
const EventBridgeDestination & GetEventBridgeDestination() const
const PinpointDestination & GetPinpointDestination() const
EventDestinationDefinition & WithEventBridgeDestination(EventBridgeDestination &&value)
EventDestinationDefinition & AddMatchingEventTypes(const EventType &value)
void SetEventBridgeDestination(const EventBridgeDestination &value)
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
AWS_SESV2_API EventDestinationDefinition(Aws::Utils::Json::JsonView jsonValue)
EventDestinationDefinition & WithMatchingEventTypes(const Aws::Vector< EventType > &value)
void SetPinpointDestination(const PinpointDestination &value)
void SetMatchingEventTypes(const Aws::Vector< EventType > &value)
EventDestinationDefinition & WithMatchingEventTypes(Aws::Vector< EventType > &&value)
EventDestinationDefinition & WithCloudWatchDestination(const CloudWatchDestination &value)
EventDestinationDefinition & WithPinpointDestination(const PinpointDestination &value)
void SetEventBridgeDestination(EventBridgeDestination &&value)
EventDestinationDefinition & WithEnabled(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue