AWS SDK for C++

AWS SDK for C++ Version 1.11.642

Loading...
Searching...
No Matches
CodeStarNotificationsClient.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/utils/json/JsonSerializer.h>
12#include <aws/codestar-notifications/CodeStarNotificationsServiceClientModel.h>
13
14namespace Aws
15{
16namespace CodeStarNotifications
17{
48 class AWS_CODESTARNOTIFICATIONS_API CodeStarNotificationsClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<CodeStarNotificationsClient>
49 {
50 public:
52 static const char* GetServiceName();
53 static const char* GetAllocationTag();
54
57
63 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr);
64
70 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr,
72
77 CodeStarNotificationsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
78 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr,
80
81
82 /* Legacy constructors due deprecation */
88
94 const Aws::Client::ClientConfiguration& clientConfiguration);
95
100 CodeStarNotificationsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
101 const Aws::Client::ClientConfiguration& clientConfiguration);
102
103 /* End of legacy constructors due deprecation */
105
116
120 template<typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
121 Model::CreateNotificationRuleOutcomeCallable CreateNotificationRuleCallable(const CreateNotificationRuleRequestT& request) const
122 {
123 return SubmitCallable(&CodeStarNotificationsClient::CreateNotificationRule, request);
124 }
125
129 template<typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
130 void CreateNotificationRuleAsync(const CreateNotificationRuleRequestT& request, const CreateNotificationRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
131 {
132 return SubmitAsync(&CodeStarNotificationsClient::CreateNotificationRule, request, handler, context);
133 }
134
141
145 template<typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
146 Model::DeleteNotificationRuleOutcomeCallable DeleteNotificationRuleCallable(const DeleteNotificationRuleRequestT& request) const
147 {
148 return SubmitCallable(&CodeStarNotificationsClient::DeleteNotificationRule, request);
149 }
150
154 template<typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
155 void DeleteNotificationRuleAsync(const DeleteNotificationRuleRequestT& request, const DeleteNotificationRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
156 {
157 return SubmitAsync(&CodeStarNotificationsClient::DeleteNotificationRule, request, handler, context);
158 }
159
166
170 template<typename DeleteTargetRequestT = Model::DeleteTargetRequest>
171 Model::DeleteTargetOutcomeCallable DeleteTargetCallable(const DeleteTargetRequestT& request) const
172 {
173 return SubmitCallable(&CodeStarNotificationsClient::DeleteTarget, request);
174 }
175
179 template<typename DeleteTargetRequestT = Model::DeleteTargetRequest>
180 void DeleteTargetAsync(const DeleteTargetRequestT& request, const DeleteTargetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
181 {
182 return SubmitAsync(&CodeStarNotificationsClient::DeleteTarget, request, handler, context);
183 }
184
192
196 template<typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
197 Model::DescribeNotificationRuleOutcomeCallable DescribeNotificationRuleCallable(const DescribeNotificationRuleRequestT& request) const
198 {
199 return SubmitCallable(&CodeStarNotificationsClient::DescribeNotificationRule, request);
200 }
201
205 template<typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
206 void DescribeNotificationRuleAsync(const DescribeNotificationRuleRequestT& request, const DescribeNotificationRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
207 {
208 return SubmitAsync(&CodeStarNotificationsClient::DescribeNotificationRule, request, handler, context);
209 }
210
218
222 template<typename ListEventTypesRequestT = Model::ListEventTypesRequest>
223 Model::ListEventTypesOutcomeCallable ListEventTypesCallable(const ListEventTypesRequestT& request = {}) const
224 {
225 return SubmitCallable(&CodeStarNotificationsClient::ListEventTypes, request);
226 }
227
231 template<typename ListEventTypesRequestT = Model::ListEventTypesRequest>
232 void ListEventTypesAsync(const ListEventTypesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListEventTypesRequestT& request = {}) const
233 {
234 return SubmitAsync(&CodeStarNotificationsClient::ListEventTypes, request, handler, context);
235 }
236
244
248 template<typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
249 Model::ListNotificationRulesOutcomeCallable ListNotificationRulesCallable(const ListNotificationRulesRequestT& request = {}) const
250 {
251 return SubmitCallable(&CodeStarNotificationsClient::ListNotificationRules, request);
252 }
253
257 template<typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
258 void ListNotificationRulesAsync(const ListNotificationRulesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListNotificationRulesRequestT& request = {}) const
259 {
260 return SubmitAsync(&CodeStarNotificationsClient::ListNotificationRules, request, handler, context);
261 }
262
270
274 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
275 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const
276 {
277 return SubmitCallable(&CodeStarNotificationsClient::ListTagsForResource, request);
278 }
279
283 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
284 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
285 {
286 return SubmitAsync(&CodeStarNotificationsClient::ListTagsForResource, request, handler, context);
287 }
288
296
300 template<typename ListTargetsRequestT = Model::ListTargetsRequest>
301 Model::ListTargetsOutcomeCallable ListTargetsCallable(const ListTargetsRequestT& request = {}) const
302 {
303 return SubmitCallable(&CodeStarNotificationsClient::ListTargets, request);
304 }
305
309 template<typename ListTargetsRequestT = Model::ListTargetsRequest>
310 void ListTargetsAsync(const ListTargetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListTargetsRequestT& request = {}) const
311 {
312 return SubmitAsync(&CodeStarNotificationsClient::ListTargets, request, handler, context);
313 }
314
324
328 template<typename SubscribeRequestT = Model::SubscribeRequest>
329 Model::SubscribeOutcomeCallable SubscribeCallable(const SubscribeRequestT& request) const
330 {
331 return SubmitCallable(&CodeStarNotificationsClient::Subscribe, request);
332 }
333
337 template<typename SubscribeRequestT = Model::SubscribeRequest>
338 void SubscribeAsync(const SubscribeRequestT& request, const SubscribeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
339 {
340 return SubmitAsync(&CodeStarNotificationsClient::Subscribe, request, handler, context);
341 }
342
350
354 template<typename TagResourceRequestT = Model::TagResourceRequest>
355 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const
356 {
357 return SubmitCallable(&CodeStarNotificationsClient::TagResource, request);
358 }
359
363 template<typename TagResourceRequestT = Model::TagResourceRequest>
364 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
365 {
366 return SubmitAsync(&CodeStarNotificationsClient::TagResource, request, handler, context);
367 }
368
378
382 template<typename UnsubscribeRequestT = Model::UnsubscribeRequest>
383 Model::UnsubscribeOutcomeCallable UnsubscribeCallable(const UnsubscribeRequestT& request) const
384 {
385 return SubmitCallable(&CodeStarNotificationsClient::Unsubscribe, request);
386 }
387
391 template<typename UnsubscribeRequestT = Model::UnsubscribeRequest>
392 void UnsubscribeAsync(const UnsubscribeRequestT& request, const UnsubscribeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
393 {
394 return SubmitAsync(&CodeStarNotificationsClient::Unsubscribe, request, handler, context);
395 }
396
404
408 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
409 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const
410 {
411 return SubmitCallable(&CodeStarNotificationsClient::UntagResource, request);
412 }
413
417 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
418 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
419 {
420 return SubmitAsync(&CodeStarNotificationsClient::UntagResource, request, handler, context);
421 }
422
433
437 template<typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
438 Model::UpdateNotificationRuleOutcomeCallable UpdateNotificationRuleCallable(const UpdateNotificationRuleRequestT& request) const
439 {
440 return SubmitCallable(&CodeStarNotificationsClient::UpdateNotificationRule, request);
441 }
442
446 template<typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
447 void UpdateNotificationRuleAsync(const UpdateNotificationRuleRequestT& request, const UpdateNotificationRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
448 {
449 return SubmitAsync(&CodeStarNotificationsClient::UpdateNotificationRule, request, handler, context);
450 }
451
452
453 void OverrideEndpoint(const Aws::String& endpoint);
454 std::shared_ptr<CodeStarNotificationsEndpointProviderBase>& accessEndpointProvider();
455 private:
457 void init(const CodeStarNotificationsClientConfiguration& clientConfiguration);
458
459 CodeStarNotificationsClientConfiguration m_clientConfiguration;
460 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> m_endpointProvider;
461 };
462
463} // namespace CodeStarNotifications
464} // namespace Aws
virtual Model::SubscribeOutcome Subscribe(const Model::SubscribeRequest &request) const
void SubscribeAsync(const SubscribeRequestT &request, const SubscribeResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::UnsubscribeOutcome Unsubscribe(const Model::UnsubscribeRequest &request) const
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest &request) const
virtual Model::ListEventTypesOutcome ListEventTypes(const Model::ListEventTypesRequest &request={}) const
void DeleteNotificationRuleAsync(const DeleteNotificationRuleRequestT &request, const DeleteNotificationRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void TagResourceAsync(const TagResourceRequestT &request, const TagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void CreateNotificationRuleAsync(const CreateNotificationRuleRequestT &request, const CreateNotificationRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void ListEventTypesAsync(const ListEventTypesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListEventTypesRequestT &request={}) const
virtual Model::CreateNotificationRuleOutcome CreateNotificationRule(const Model::CreateNotificationRuleRequest &request) const
Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT &request) const
Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT &request) const
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest &request) const
virtual Model::ListTargetsOutcome ListTargets(const Model::ListTargetsRequest &request={}) const
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest &request) const
Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT &request) const
void OverrideEndpoint(const Aws::String &endpoint)
Model::DeleteTargetOutcomeCallable DeleteTargetCallable(const DeleteTargetRequestT &request) const
void UnsubscribeAsync(const UnsubscribeRequestT &request, const UnsubscribeResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void DeleteTargetAsync(const DeleteTargetRequestT &request, const DeleteTargetResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListEventTypesOutcomeCallable ListEventTypesCallable(const ListEventTypesRequestT &request={}) const
CodeStarNotificationsClientConfiguration ClientConfigurationType
CodeStarNotificationsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< CodeStarNotificationsEndpointProviderBase > endpointProvider=nullptr, const Aws::CodeStarNotifications::CodeStarNotificationsClientConfiguration &clientConfiguration=Aws::CodeStarNotifications::CodeStarNotificationsClientConfiguration())
Model::UnsubscribeOutcomeCallable UnsubscribeCallable(const UnsubscribeRequestT &request) const
void DescribeNotificationRuleAsync(const DescribeNotificationRuleRequestT &request, const DescribeNotificationRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::UpdateNotificationRuleOutcomeCallable UpdateNotificationRuleCallable(const UpdateNotificationRuleRequestT &request) const
CodeStarNotificationsClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< CodeStarNotificationsEndpointProviderBase > endpointProvider=nullptr, const Aws::CodeStarNotifications::CodeStarNotificationsClientConfiguration &clientConfiguration=Aws::CodeStarNotifications::CodeStarNotificationsClientConfiguration())
void ListTargetsAsync(const ListTargetsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListTargetsRequestT &request={}) const
Model::ListNotificationRulesOutcomeCallable ListNotificationRulesCallable(const ListNotificationRulesRequestT &request={}) const
void UpdateNotificationRuleAsync(const UpdateNotificationRuleRequestT &request, const UpdateNotificationRuleResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::shared_ptr< CodeStarNotificationsEndpointProviderBase > & accessEndpointProvider()
virtual Model::DescribeNotificationRuleOutcome DescribeNotificationRule(const Model::DescribeNotificationRuleRequest &request) const
virtual Model::UpdateNotificationRuleOutcome UpdateNotificationRule(const Model::UpdateNotificationRuleRequest &request) const
CodeStarNotificationsClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
CodeStarNotificationsClient(const Aws::CodeStarNotifications::CodeStarNotificationsClientConfiguration &clientConfiguration=Aws::CodeStarNotifications::CodeStarNotificationsClientConfiguration(), std::shared_ptr< CodeStarNotificationsEndpointProviderBase > endpointProvider=nullptr)
CodeStarNotificationsClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::DeleteNotificationRuleOutcome DeleteNotificationRule(const Model::DeleteNotificationRuleRequest &request) const
void ListNotificationRulesAsync(const ListNotificationRulesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListNotificationRulesRequestT &request={}) const
Model::ListTargetsOutcomeCallable ListTargetsCallable(const ListTargetsRequestT &request={}) const
CodeStarNotificationsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::ListNotificationRulesOutcome ListNotificationRules(const Model::ListNotificationRulesRequest &request={}) const
void ListTagsForResourceAsync(const ListTagsForResourceRequestT &request, const ListTagsForResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::DeleteNotificationRuleOutcomeCallable DeleteNotificationRuleCallable(const DeleteNotificationRuleRequestT &request) const
Model::DescribeNotificationRuleOutcomeCallable DescribeNotificationRuleCallable(const DescribeNotificationRuleRequestT &request) const
void UntagResourceAsync(const UntagResourceRequestT &request, const UntagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::CreateNotificationRuleOutcomeCallable CreateNotificationRuleCallable(const CreateNotificationRuleRequestT &request) const
Model::SubscribeOutcomeCallable SubscribeCallable(const SubscribeRequestT &request) const
virtual Model::DeleteTargetOutcome DeleteTarget(const Model::DeleteTargetRequest &request) const
std::future< DeleteTargetOutcome > DeleteTargetOutcomeCallable
std::future< TagResourceOutcome > TagResourceOutcomeCallable
std::future< ListTagsForResourceOutcome > ListTagsForResourceOutcomeCallable
std::future< ListEventTypesOutcome > ListEventTypesOutcomeCallable
std::future< ListNotificationRulesOutcome > ListNotificationRulesOutcomeCallable
std::future< UntagResourceOutcome > UntagResourceOutcomeCallable
std::future< CreateNotificationRuleOutcome > CreateNotificationRuleOutcomeCallable
std::future< DeleteNotificationRuleOutcome > DeleteNotificationRuleOutcomeCallable
std::future< DescribeNotificationRuleOutcome > DescribeNotificationRuleOutcomeCallable
std::future< UpdateNotificationRuleOutcome > UpdateNotificationRuleOutcomeCallable
std::future< ListTargetsOutcome > ListTargetsOutcomeCallable
std::future< UnsubscribeOutcome > UnsubscribeOutcomeCallable
std::function< void(const CodeStarNotificationsClient *, const Model::CreateNotificationRuleRequest &, const Model::CreateNotificationRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateNotificationRuleResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::UpdateNotificationRuleRequest &, const Model::UpdateNotificationRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateNotificationRuleResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::DescribeNotificationRuleRequest &, const Model::DescribeNotificationRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeNotificationRuleResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::ListTagsForResourceRequest &, const Model::ListTagsForResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTagsForResourceResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::ListTargetsRequest &, const Model::ListTargetsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTargetsResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::SubscribeRequest &, const Model::SubscribeOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SubscribeResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::DeleteTargetRequest &, const Model::DeleteTargetOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteTargetResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::UnsubscribeRequest &, const Model::UnsubscribeOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UnsubscribeResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TagResourceResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::ListEventTypesRequest &, const Model::ListEventTypesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListEventTypesResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::DeleteNotificationRuleRequest &, const Model::DeleteNotificationRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteNotificationRuleResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UntagResourceResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::ListNotificationRulesRequest &, const Model::ListNotificationRulesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListNotificationRulesResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String