AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATABASEMIGRATIONSERVICE_API EventSubscription() = default;
37 AWS_DATABASEMIGRATIONSERVICE_API EventSubscription(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API EventSubscription& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetCustomerAwsId() const { return m_customerAwsId; }
48 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
49 template<typename CustomerAwsIdT = Aws::String>
50 void SetCustomerAwsId(CustomerAwsIdT&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = std::forward<CustomerAwsIdT>(value); }
51 template<typename CustomerAwsIdT = Aws::String>
52 EventSubscription& WithCustomerAwsId(CustomerAwsIdT&& value) { SetCustomerAwsId(std::forward<CustomerAwsIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetCustSubscriptionId() const { return m_custSubscriptionId; }
60 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
61 template<typename CustSubscriptionIdT = Aws::String>
62 void SetCustSubscriptionId(CustSubscriptionIdT&& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value); }
63 template<typename CustSubscriptionIdT = Aws::String>
64 EventSubscription& WithCustSubscriptionId(CustSubscriptionIdT&& value) { SetCustSubscriptionId(std::forward<CustSubscriptionIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
72 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
73 template<typename SnsTopicArnT = Aws::String>
74 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
75 template<typename SnsTopicArnT = Aws::String>
76 EventSubscription& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
78
80
88 inline const Aws::String& GetStatus() const { return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 template<typename StatusT = Aws::String>
91 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
92 template<typename StatusT = Aws::String>
93 EventSubscription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
95
97
100 inline const Aws::String& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
101 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
102 template<typename SubscriptionCreationTimeT = Aws::String>
103 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value); }
104 template<typename SubscriptionCreationTimeT = Aws::String>
105 EventSubscription& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value)); return *this;}
107
109
114 inline const Aws::String& GetSourceType() const { return m_sourceType; }
115 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
116 template<typename SourceTypeT = Aws::String>
117 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
118 template<typename SourceTypeT = Aws::String>
119 EventSubscription& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
121
123
126 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
127 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
128 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
129 void SetSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = std::forward<SourceIdsListT>(value); }
130 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
131 EventSubscription& WithSourceIdsList(SourceIdsListT&& value) { SetSourceIdsList(std::forward<SourceIdsListT>(value)); return *this;}
132 template<typename SourceIdsListT = Aws::String>
133 EventSubscription& AddSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value)); return *this; }
135
137
140 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
141 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
142 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
143 void SetEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = std::forward<EventCategoriesListT>(value); }
144 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
145 EventSubscription& WithEventCategoriesList(EventCategoriesListT&& value) { SetEventCategoriesList(std::forward<EventCategoriesListT>(value)); return *this;}
146 template<typename EventCategoriesListT = Aws::String>
147 EventSubscription& AddEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value)); return *this; }
149
151
154 inline bool GetEnabled() const { return m_enabled; }
155 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
156 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
157 inline EventSubscription& WithEnabled(bool value) { SetEnabled(value); return *this;}
159 private:
160
161 Aws::String m_customerAwsId;
162 bool m_customerAwsIdHasBeenSet = false;
163
164 Aws::String m_custSubscriptionId;
165 bool m_custSubscriptionIdHasBeenSet = false;
166
167 Aws::String m_snsTopicArn;
168 bool m_snsTopicArnHasBeenSet = false;
169
170 Aws::String m_status;
171 bool m_statusHasBeenSet = false;
172
173 Aws::String m_subscriptionCreationTime;
174 bool m_subscriptionCreationTimeHasBeenSet = false;
175
176 Aws::String m_sourceType;
177 bool m_sourceTypeHasBeenSet = false;
178
179 Aws::Vector<Aws::String> m_sourceIdsList;
180 bool m_sourceIdsListHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_eventCategoriesList;
183 bool m_eventCategoriesListHasBeenSet = false;
184
185 bool m_enabled{false};
186 bool m_enabledHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace DatabaseMigrationService
191} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventCategoriesList(EventCategoriesListT &&value)
void SetSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & WithSourceIdsList(SourceIdsListT &&value)
EventSubscription & AddEventCategoriesList(EventCategoriesListT &&value)
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription(Aws::Utils::Json::JsonView jsonValue)
EventSubscription & AddSourceIdsList(SourceIdsListT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription()=default
EventSubscription & WithCustomerAwsId(CustomerAwsIdT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
EventSubscription & WithCustSubscriptionId(CustSubscriptionIdT &&value)
EventSubscription & WithEventCategoriesList(EventCategoriesListT &&value)
EventSubscription & WithSourceType(SourceTypeT &&value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
EventSubscription & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&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