AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventDestination.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint-email/model/KinesisFirehoseDestination.h>
11#include <aws/pinpoint-email/model/CloudWatchDestination.h>
12#include <aws/pinpoint-email/model/SnsDestination.h>
13#include <aws/pinpoint-email/model/PinpointDestination.h>
14#include <aws/pinpoint-email/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 PinpointEmail
28{
29namespace Model
30{
31
43 {
44 public:
45 AWS_PINPOINTEMAIL_API EventDestination();
46 AWS_PINPOINTEMAIL_API EventDestination(Aws::Utils::Json::JsonView jsonValue);
47 AWS_PINPOINTEMAIL_API EventDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline EventDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline EventDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline EventDestination& WithName(const char* value) { SetName(value); return *this;}
64
66
73 inline bool GetEnabled() const{ return m_enabled; }
74 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
75 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
76 inline EventDestination& WithEnabled(bool value) { SetEnabled(value); return *this;}
78
80
84 inline const Aws::Vector<EventType>& GetMatchingEventTypes() const{ return m_matchingEventTypes; }
85 inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; }
86 inline void SetMatchingEventTypes(const Aws::Vector<EventType>& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; }
87 inline void SetMatchingEventTypes(Aws::Vector<EventType>&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); }
89 inline EventDestination& WithMatchingEventTypes(Aws::Vector<EventType>&& value) { SetMatchingEventTypes(std::move(value)); return *this;}
90 inline EventDestination& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; }
91 inline EventDestination& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; }
93
95
100 inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; }
101 inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; }
102 inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; }
103 inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); }
107
109
114 inline const CloudWatchDestination& GetCloudWatchDestination() const{ return m_cloudWatchDestination; }
115 inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; }
116 inline void SetCloudWatchDestination(const CloudWatchDestination& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = value; }
117 inline void SetCloudWatchDestination(CloudWatchDestination&& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = std::move(value); }
121
123
127 inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; }
128 inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; }
129 inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; }
130 inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); }
131 inline EventDestination& WithSnsDestination(const SnsDestination& value) { SetSnsDestination(value); return *this;}
132 inline EventDestination& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;}
134
136
141 inline const PinpointDestination& GetPinpointDestination() const{ return m_pinpointDestination; }
142 inline bool PinpointDestinationHasBeenSet() const { return m_pinpointDestinationHasBeenSet; }
143 inline void SetPinpointDestination(const PinpointDestination& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = value; }
144 inline void SetPinpointDestination(PinpointDestination&& value) { m_pinpointDestinationHasBeenSet = true; m_pinpointDestination = std::move(value); }
146 inline EventDestination& WithPinpointDestination(PinpointDestination&& value) { SetPinpointDestination(std::move(value)); return *this;}
148 private:
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 bool m_enabled;
154 bool m_enabledHasBeenSet = false;
155
156 Aws::Vector<EventType> m_matchingEventTypes;
157 bool m_matchingEventTypesHasBeenSet = false;
158
159 KinesisFirehoseDestination m_kinesisFirehoseDestination;
160 bool m_kinesisFirehoseDestinationHasBeenSet = false;
161
162 CloudWatchDestination m_cloudWatchDestination;
163 bool m_cloudWatchDestinationHasBeenSet = false;
164
165 SnsDestination m_snsDestination;
166 bool m_snsDestinationHasBeenSet = false;
167
168 PinpointDestination m_pinpointDestination;
169 bool m_pinpointDestinationHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace PinpointEmail
174} // namespace Aws
EventDestination & WithMatchingEventTypes(const Aws::Vector< EventType > &value)
EventDestination & WithKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
void SetSnsDestination(SnsDestination &&value)
EventDestination & WithPinpointDestination(PinpointDestination &&value)
const SnsDestination & GetSnsDestination() const
const KinesisFirehoseDestination & GetKinesisFirehoseDestination() const
EventDestination & WithCloudWatchDestination(CloudWatchDestination &&value)
EventDestination & WithCloudWatchDestination(const CloudWatchDestination &value)
EventDestination & WithName(const char *value)
const Aws::Vector< EventType > & GetMatchingEventTypes() const
EventDestination & WithMatchingEventTypes(Aws::Vector< EventType > &&value)
EventDestination & AddMatchingEventTypes(const EventType &value)
EventDestination & WithKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
AWS_PINPOINTEMAIL_API EventDestination(Aws::Utils::Json::JsonView jsonValue)
void SetPinpointDestination(const PinpointDestination &value)
AWS_PINPOINTEMAIL_API EventDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSnsDestination(const SnsDestination &value)
EventDestination & WithName(Aws::String &&value)
const PinpointDestination & GetPinpointDestination() const
EventDestination & WithEnabled(bool value)
const CloudWatchDestination & GetCloudWatchDestination() const
EventDestination & WithName(const Aws::String &value)
void SetMatchingEventTypes(const Aws::Vector< EventType > &value)
EventDestination & WithSnsDestination(const SnsDestination &value)
void SetMatchingEventTypes(Aws::Vector< EventType > &&value)
void SetCloudWatchDestination(CloudWatchDestination &&value)
EventDestination & AddMatchingEventTypes(EventType &&value)
void SetKinesisFirehoseDestination(const KinesisFirehoseDestination &value)
void SetCloudWatchDestination(const CloudWatchDestination &value)
EventDestination & WithSnsDestination(SnsDestination &&value)
void SetKinesisFirehoseDestination(KinesisFirehoseDestination &&value)
void SetName(const Aws::String &value)
EventDestination & WithPinpointDestination(const PinpointDestination &value)
void SetPinpointDestination(PinpointDestination &&value)
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue