AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CodeStarNotificationsClient.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotificationsServiceClientModel.h>
8#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/client/ClientConfiguration.h>
12#include <aws/core/utils/json/JsonSerializer.h>
13
14namespace Aws {
15namespace CodeStarNotifications {
46class AWS_CODESTARNOTIFICATIONS_API CodeStarNotificationsClient
48 public Aws::Client::ClientWithAsyncTemplateMethods<CodeStarNotificationsClient> {
49 public:
51 static const char* GetServiceName();
52 static const char* GetAllocationTag();
53
56
63 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr);
64
70 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr,
73
78 CodeStarNotificationsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
79 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr,
82
83 /* Legacy constructors due deprecation */
89
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
121 template <typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
122 Model::CreateNotificationRuleOutcomeCallable CreateNotificationRuleCallable(const CreateNotificationRuleRequestT& request) const {
123 return SubmitCallable(&CodeStarNotificationsClient::CreateNotificationRule, request);
124 }
125
130 template <typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
131 void CreateNotificationRuleAsync(const CreateNotificationRuleRequestT& request,
133 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
134 return SubmitAsync(&CodeStarNotificationsClient::CreateNotificationRule, request, handler, context);
135 }
136
143
148 template <typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
149 Model::DeleteNotificationRuleOutcomeCallable DeleteNotificationRuleCallable(const DeleteNotificationRuleRequestT& request) const {
150 return SubmitCallable(&CodeStarNotificationsClient::DeleteNotificationRule, request);
151 }
152
157 template <typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
158 void DeleteNotificationRuleAsync(const DeleteNotificationRuleRequestT& request,
160 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
161 return SubmitAsync(&CodeStarNotificationsClient::DeleteNotificationRule, request, handler, context);
162 }
163
170
174 template <typename DeleteTargetRequestT = Model::DeleteTargetRequest>
175 Model::DeleteTargetOutcomeCallable DeleteTargetCallable(const DeleteTargetRequestT& request) const {
176 return SubmitCallable(&CodeStarNotificationsClient::DeleteTarget, request);
177 }
178
183 template <typename DeleteTargetRequestT = Model::DeleteTargetRequest>
184 void DeleteTargetAsync(const DeleteTargetRequestT& request, const DeleteTargetResponseReceivedHandler& handler,
185 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
186 return SubmitAsync(&CodeStarNotificationsClient::DeleteTarget, request, handler, context);
187 }
188
196
201 template <typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
202 Model::DescribeNotificationRuleOutcomeCallable DescribeNotificationRuleCallable(const DescribeNotificationRuleRequestT& request) const {
203 return SubmitCallable(&CodeStarNotificationsClient::DescribeNotificationRule, request);
204 }
205
210 template <typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
211 void DescribeNotificationRuleAsync(const DescribeNotificationRuleRequestT& request,
213 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
214 return SubmitAsync(&CodeStarNotificationsClient::DescribeNotificationRule, request, handler, context);
215 }
216
224
228 template <typename ListEventTypesRequestT = Model::ListEventTypesRequest>
229 Model::ListEventTypesOutcomeCallable ListEventTypesCallable(const ListEventTypesRequestT& request = {}) const {
230 return SubmitCallable(&CodeStarNotificationsClient::ListEventTypes, request);
231 }
232
237 template <typename ListEventTypesRequestT = Model::ListEventTypesRequest>
239 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
240 const ListEventTypesRequestT& request = {}) const {
241 return SubmitAsync(&CodeStarNotificationsClient::ListEventTypes, request, handler, context);
242 }
243
251
256 template <typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
257 Model::ListNotificationRulesOutcomeCallable ListNotificationRulesCallable(const ListNotificationRulesRequestT& request = {}) const {
258 return SubmitCallable(&CodeStarNotificationsClient::ListNotificationRules, request);
259 }
260
265 template <typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
267 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
268 const ListNotificationRulesRequestT& request = {}) const {
269 return SubmitAsync(&CodeStarNotificationsClient::ListNotificationRules, request, handler, context);
270 }
271
279
284 template <typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
285 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const {
286 return SubmitCallable(&CodeStarNotificationsClient::ListTagsForResource, request);
287 }
288
293 template <typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
294 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler,
295 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
296 return SubmitAsync(&CodeStarNotificationsClient::ListTagsForResource, request, handler, context);
297 }
298
306
310 template <typename ListTargetsRequestT = Model::ListTargetsRequest>
311 Model::ListTargetsOutcomeCallable ListTargetsCallable(const ListTargetsRequestT& request = {}) const {
312 return SubmitCallable(&CodeStarNotificationsClient::ListTargets, request);
313 }
314
319 template <typename ListTargetsRequestT = Model::ListTargetsRequest>
321 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
322 const ListTargetsRequestT& request = {}) const {
323 return SubmitAsync(&CodeStarNotificationsClient::ListTargets, request, handler, context);
324 }
325
335
339 template <typename SubscribeRequestT = Model::SubscribeRequest>
340 Model::SubscribeOutcomeCallable SubscribeCallable(const SubscribeRequestT& request) const {
341 return SubmitCallable(&CodeStarNotificationsClient::Subscribe, request);
342 }
343
348 template <typename SubscribeRequestT = Model::SubscribeRequest>
349 void SubscribeAsync(const SubscribeRequestT& request, const SubscribeResponseReceivedHandler& handler,
350 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
351 return SubmitAsync(&CodeStarNotificationsClient::Subscribe, request, handler, context);
352 }
353
361
365 template <typename TagResourceRequestT = Model::TagResourceRequest>
366 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const {
367 return SubmitCallable(&CodeStarNotificationsClient::TagResource, request);
368 }
369
374 template <typename TagResourceRequestT = Model::TagResourceRequest>
375 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler,
376 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
377 return SubmitAsync(&CodeStarNotificationsClient::TagResource, request, handler, context);
378 }
379
389
393 template <typename UnsubscribeRequestT = Model::UnsubscribeRequest>
394 Model::UnsubscribeOutcomeCallable UnsubscribeCallable(const UnsubscribeRequestT& request) const {
395 return SubmitCallable(&CodeStarNotificationsClient::Unsubscribe, request);
396 }
397
402 template <typename UnsubscribeRequestT = Model::UnsubscribeRequest>
403 void UnsubscribeAsync(const UnsubscribeRequestT& request, const UnsubscribeResponseReceivedHandler& handler,
404 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
405 return SubmitAsync(&CodeStarNotificationsClient::Unsubscribe, request, handler, context);
406 }
407
415
419 template <typename UntagResourceRequestT = Model::UntagResourceRequest>
420 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const {
421 return SubmitCallable(&CodeStarNotificationsClient::UntagResource, request);
422 }
423
428 template <typename UntagResourceRequestT = Model::UntagResourceRequest>
429 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler,
430 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
431 return SubmitAsync(&CodeStarNotificationsClient::UntagResource, request, handler, context);
432 }
433
444
449 template <typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
450 Model::UpdateNotificationRuleOutcomeCallable UpdateNotificationRuleCallable(const UpdateNotificationRuleRequestT& request) const {
451 return SubmitCallable(&CodeStarNotificationsClient::UpdateNotificationRule, request);
452 }
453
458 template <typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
459 void UpdateNotificationRuleAsync(const UpdateNotificationRuleRequestT& request,
461 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
462 return SubmitAsync(&CodeStarNotificationsClient::UpdateNotificationRule, request, handler, context);
463 }
464
465 void OverrideEndpoint(const Aws::String& endpoint);
466 std::shared_ptr<CodeStarNotificationsEndpointProviderBase>& accessEndpointProvider();
467
468 private:
470 void init(const CodeStarNotificationsClientConfiguration& clientConfiguration);
471
472 CodeStarNotificationsClientConfiguration m_clientConfiguration;
473 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> m_endpointProvider;
474};
475
476} // namespace CodeStarNotifications
477} // 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::UnsubscribeRequest &, const Model::UnsubscribeOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> UnsubscribeResponseReceivedHandler
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::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> TagResourceResponseReceivedHandler
std::function< void(const CodeStarNotificationsClient *, const Model::ListNotificationRulesRequest &, const Model::ListNotificationRulesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ListNotificationRulesResponseReceivedHandler
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::CreateNotificationRuleRequest &, const Model::CreateNotificationRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> CreateNotificationRuleResponseReceivedHandler
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::DeleteTargetRequest &, const Model::DeleteTargetOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> DeleteTargetResponseReceivedHandler
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::DeleteNotificationRuleRequest &, const Model::DeleteNotificationRuleOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> DeleteNotificationRuleResponseReceivedHandler
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::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> UntagResourceResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String