AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsRdsEventSubscriptionDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API AwsRdsEventSubscriptionDetails() = default;
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetCustSubscriptionId() const { return m_custSubscriptionId; }
42 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
43 template <typename CustSubscriptionIdT = Aws::String>
44 void SetCustSubscriptionId(CustSubscriptionIdT&& value) {
45 m_custSubscriptionIdHasBeenSet = true;
46 m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value);
47 }
48 template <typename CustSubscriptionIdT = Aws::String>
50 SetCustSubscriptionId(std::forward<CustSubscriptionIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCustomerAwsId() const { return m_customerAwsId; }
60 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
61 template <typename CustomerAwsIdT = Aws::String>
62 void SetCustomerAwsId(CustomerAwsIdT&& value) {
63 m_customerAwsIdHasBeenSet = true;
64 m_customerAwsId = std::forward<CustomerAwsIdT>(value);
65 }
66 template <typename CustomerAwsIdT = Aws::String>
68 SetCustomerAwsId(std::forward<CustomerAwsIdT>(value));
69 return *this;
70 }
72
74
77 inline bool GetEnabled() const { return m_enabled; }
78 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
79 inline void SetEnabled(bool value) {
80 m_enabledHasBeenSet = true;
81 m_enabled = value;
82 }
84 SetEnabled(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
94 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
95 template <typename EventCategoriesListT = Aws::Vector<Aws::String>>
96 void SetEventCategoriesList(EventCategoriesListT&& value) {
97 m_eventCategoriesListHasBeenSet = true;
98 m_eventCategoriesList = std::forward<EventCategoriesListT>(value);
99 }
100 template <typename EventCategoriesListT = Aws::Vector<Aws::String>>
102 SetEventCategoriesList(std::forward<EventCategoriesListT>(value));
103 return *this;
104 }
105 template <typename EventCategoriesListT = Aws::String>
107 m_eventCategoriesListHasBeenSet = true;
108 m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetEventSubscriptionArn() const { return m_eventSubscriptionArn; }
118 inline bool EventSubscriptionArnHasBeenSet() const { return m_eventSubscriptionArnHasBeenSet; }
119 template <typename EventSubscriptionArnT = Aws::String>
120 void SetEventSubscriptionArn(EventSubscriptionArnT&& value) {
121 m_eventSubscriptionArnHasBeenSet = true;
122 m_eventSubscriptionArn = std::forward<EventSubscriptionArnT>(value);
123 }
124 template <typename EventSubscriptionArnT = Aws::String>
126 SetEventSubscriptionArn(std::forward<EventSubscriptionArnT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
136 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
137 template <typename SnsTopicArnT = Aws::String>
138 void SetSnsTopicArn(SnsTopicArnT&& value) {
139 m_snsTopicArnHasBeenSet = true;
140 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
141 }
142 template <typename SnsTopicArnT = Aws::String>
144 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
154 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
155 template <typename SourceIdsListT = Aws::Vector<Aws::String>>
156 void SetSourceIdsList(SourceIdsListT&& value) {
157 m_sourceIdsListHasBeenSet = true;
158 m_sourceIdsList = std::forward<SourceIdsListT>(value);
159 }
160 template <typename SourceIdsListT = Aws::Vector<Aws::String>>
162 SetSourceIdsList(std::forward<SourceIdsListT>(value));
163 return *this;
164 }
165 template <typename SourceIdsListT = Aws::String>
167 m_sourceIdsListHasBeenSet = true;
168 m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetSourceType() const { return m_sourceType; }
178 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
179 template <typename SourceTypeT = Aws::String>
180 void SetSourceType(SourceTypeT&& value) {
181 m_sourceTypeHasBeenSet = true;
182 m_sourceType = std::forward<SourceTypeT>(value);
183 }
184 template <typename SourceTypeT = Aws::String>
186 SetSourceType(std::forward<SourceTypeT>(value));
187 return *this;
188 }
190
192
198 inline const Aws::String& GetStatus() const { return m_status; }
199 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
200 template <typename StatusT = Aws::String>
201 void SetStatus(StatusT&& value) {
202 m_statusHasBeenSet = true;
203 m_status = std::forward<StatusT>(value);
204 }
205 template <typename StatusT = Aws::String>
207 SetStatus(std::forward<StatusT>(value));
208 return *this;
209 }
211
213
219 inline const Aws::String& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
220 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
221 template <typename SubscriptionCreationTimeT = Aws::String>
222 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
223 m_subscriptionCreationTimeHasBeenSet = true;
224 m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value);
225 }
226 template <typename SubscriptionCreationTimeT = Aws::String>
228 SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_custSubscriptionId;
234
235 Aws::String m_customerAwsId;
236
237 bool m_enabled{false};
238
239 Aws::Vector<Aws::String> m_eventCategoriesList;
240
241 Aws::String m_eventSubscriptionArn;
242
243 Aws::String m_snsTopicArn;
244
245 Aws::Vector<Aws::String> m_sourceIdsList;
246
247 Aws::String m_sourceType;
248
249 Aws::String m_status;
250
251 Aws::String m_subscriptionCreationTime;
252 bool m_custSubscriptionIdHasBeenSet = false;
253 bool m_customerAwsIdHasBeenSet = false;
254 bool m_enabledHasBeenSet = false;
255 bool m_eventCategoriesListHasBeenSet = false;
256 bool m_eventSubscriptionArnHasBeenSet = false;
257 bool m_snsTopicArnHasBeenSet = false;
258 bool m_sourceIdsListHasBeenSet = false;
259 bool m_sourceTypeHasBeenSet = false;
260 bool m_statusHasBeenSet = false;
261 bool m_subscriptionCreationTimeHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace SecurityHub
266} // namespace Aws
AwsRdsEventSubscriptionDetails & WithEventSubscriptionArn(EventSubscriptionArnT &&value)
AwsRdsEventSubscriptionDetails & AddEventCategoriesList(EventCategoriesListT &&value)
AWS_SECURITYHUB_API AwsRdsEventSubscriptionDetails(Aws::Utils::Json::JsonView jsonValue)
AwsRdsEventSubscriptionDetails & WithCustSubscriptionId(CustSubscriptionIdT &&value)
AWS_SECURITYHUB_API AwsRdsEventSubscriptionDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsRdsEventSubscriptionDetails & WithEventCategoriesList(EventCategoriesListT &&value)
AwsRdsEventSubscriptionDetails & AddSourceIdsList(SourceIdsListT &&value)
AwsRdsEventSubscriptionDetails & WithSnsTopicArn(SnsTopicArnT &&value)
AwsRdsEventSubscriptionDetails & WithSourceType(SourceTypeT &&value)
AwsRdsEventSubscriptionDetails & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
AwsRdsEventSubscriptionDetails & WithStatus(StatusT &&value)
AWS_SECURITYHUB_API AwsRdsEventSubscriptionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
AwsRdsEventSubscriptionDetails & WithCustomerAwsId(CustomerAwsIdT &&value)
AwsRdsEventSubscriptionDetails & WithSourceIdsList(SourceIdsListT &&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