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/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint-email/model/KinesisFirehoseDestination.h>
10#include <aws/pinpoint-email/model/CloudWatchDestination.h>
11#include <aws/pinpoint-email/model/SnsDestination.h>
12#include <aws/pinpoint-email/model/PinpointDestination.h>
13#include <aws/pinpoint-email/model/EventType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace PinpointEmail
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_PINPOINTEMAIL_API EventDestinationDefinition();
45 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
56 inline bool GetEnabled() const{ return m_enabled; }
57 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
58 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
59 inline EventDestinationDefinition& WithEnabled(bool value) { SetEnabled(value); return *this;}
61
63
67 inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
68 inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
69 inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
70 inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
73 inline EventDestinationDefinition& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
74 inline EventDestinationDefinition& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
76
78
83 inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
84 inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
85 inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
86 inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
90
92
97 inline const CloudWatchDestination& GetCloudWatchDestination() const{ return m_cloudWatchDestination; }
98 inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; }
99 inline void SetCloudWatchDestination(const CloudWatchDestination& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = value; }
100 inline void SetCloudWatchDestination(CloudWatchDestination&& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = std::move(value); }
104
106
110 inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; }
111 inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; }
112 inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; }
113 inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); }
115 inline EventDestinationDefinition& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;}
117
119
124 inline const PinpointDestination& GetPinpointDestination() const{ return m_pinpointDestination; }
125 inline bool PinpointDestinationHasBeenSet() const { return m_pinpointDestinationHasBeenSet; }
126 inline void SetPinpointDestination(const PinpointDestination& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = value; }
127 inline void SetPinpointDestination(PinpointDestination&& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = std::move(value); }
131 private:
132
133 bool m_enabled;
134 bool m_enabledHasBeenSet = false;
135
136 Aws::Vector<EventType> m_matchingEventTypes;
137 bool m_matchingEventTypesHasBeenSet = false;
138
139 KinesisFirehoseDestination m_kinesisFirehoseDestination;
140 bool m_kinesisFirehoseDestinationHasBeenSet = false;
141
142 CloudWatchDestination m_cloudWatchDestination;
143 bool m_cloudWatchDestinationHasBeenSet = false;
144
145 SnsDestination m_snsDestination;
146 bool m_snsDestinationHasBeenSet = false;
147
148 PinpointDestination m_pinpointDestination;
149 bool m_pinpointDestinationHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace PinpointEmail
154} // namespace Aws
EventDestinationDefinition & WithMatchingEventTypes(const Aws::Vector< EventType > &value)
void SetMatchingEventTypes(const Aws::Vector< EventType > &value)
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
EventDestinationDefinition & WithPinpointDestination(const PinpointDestination &value)
EventDestinationDefinition & WithKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
AWS_PINPOINTEMAIL_API EventDestinationDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
EventDestinationDefinition & WithPinpointDestination(PinpointDestination &&value)
AWS_PINPOINTEMAIL_API EventDestinationDefinition(Aws::Utils::Json::JsonView jsonValue)
EventDestinationDefinition & AddMatchingEventTypes(EventType &&value)
void SetCloudWatchDestination(const CloudWatchDestination &value)
EventDestinationDefinition & AddMatchingEventTypes(const EventType &value)
EventDestinationDefinition & WithCloudWatchDestination(const CloudWatchDestination &value)
const Aws::Vector< EventType > & GetMatchingEventTypes() const
EventDestinationDefinition & WithKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
EventDestinationDefinition & WithSnsDestination(SnsDestination &&value)
EventDestinationDefinition & WithSnsDestination(const SnsDestination &value)
EventDestinationDefinition & WithMatchingEventTypes(Aws::Vector< EventType > &&value)
EventDestinationDefinition & WithCloudWatchDestination(CloudWatchDestination &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue