AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CodeStarNotificationsClient.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotificationsPaginationBase.h>
8#include <aws/codestar-notifications/CodeStarNotificationsServiceClientModel.h>
9#include <aws/codestar-notifications/CodeStarNotificationsWaiter.h>
10#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
11#include <aws/core/client/AWSClient.h>
12#include <aws/core/client/AWSClientAsyncCRTP.h>
13#include <aws/core/client/ClientConfiguration.h>
14#include <aws/core/utils/json/JsonSerializer.h>
15
16namespace Aws {
17namespace CodeStarNotifications {
48class AWS_CODESTARNOTIFICATIONS_API CodeStarNotificationsClient
50 public Aws::Client::ClientWithAsyncTemplateMethods<CodeStarNotificationsClient>,
51 public CodeStarNotificationsPaginationBase<CodeStarNotificationsClient>,
52 public CodeStarNotificationsWaiter<CodeStarNotificationsClient> {
53 public:
55 static const char* GetServiceName();
56 static const char* GetAllocationTag();
57
60
67 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr);
68
74 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr,
77
82 CodeStarNotificationsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
83 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr,
86
87 /* Legacy constructors due deprecation */
93
99
104 CodeStarNotificationsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
105 const Aws::Client::ClientConfiguration& clientConfiguration);
106
107 /* End of legacy constructors due deprecation */
109
120
125 template <typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
126 Model::CreateNotificationRuleOutcomeCallable CreateNotificationRuleCallable(const CreateNotificationRuleRequestT& request) const {
127 return SubmitCallable(&CodeStarNotificationsClient::CreateNotificationRule, request);
128 }
129
134 template <typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
135 void CreateNotificationRuleAsync(const CreateNotificationRuleRequestT& request,
137 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
138 return SubmitAsync(&CodeStarNotificationsClient::CreateNotificationRule, request, handler, context);
139 }
140
147
152 template <typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
153 Model::DeleteNotificationRuleOutcomeCallable DeleteNotificationRuleCallable(const DeleteNotificationRuleRequestT& request) const {
154 return SubmitCallable(&CodeStarNotificationsClient::DeleteNotificationRule, request);
155 }
156
161 template <typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
162 void DeleteNotificationRuleAsync(const DeleteNotificationRuleRequestT& request,
164 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
165 return SubmitAsync(&CodeStarNotificationsClient::DeleteNotificationRule, request, handler, context);
166 }
167
174
178 template <typename DeleteTargetRequestT = Model::DeleteTargetRequest>
179 Model::DeleteTargetOutcomeCallable DeleteTargetCallable(const DeleteTargetRequestT& request) const {
180 return SubmitCallable(&CodeStarNotificationsClient::DeleteTarget, request);
181 }
182
187 template <typename DeleteTargetRequestT = Model::DeleteTargetRequest>
188 void DeleteTargetAsync(const DeleteTargetRequestT& request, const DeleteTargetResponseReceivedHandler& handler,
189 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
190 return SubmitAsync(&CodeStarNotificationsClient::DeleteTarget, request, handler, context);
191 }
192
200
205 template <typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
206 Model::DescribeNotificationRuleOutcomeCallable DescribeNotificationRuleCallable(const DescribeNotificationRuleRequestT& request) const {
207 return SubmitCallable(&CodeStarNotificationsClient::DescribeNotificationRule, request);
208 }
209
214 template <typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
215 void DescribeNotificationRuleAsync(const DescribeNotificationRuleRequestT& request,
217 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
218 return SubmitAsync(&CodeStarNotificationsClient::DescribeNotificationRule, request, handler, context);
219 }
220
228
232 template <typename ListEventTypesRequestT = Model::ListEventTypesRequest>
233 Model::ListEventTypesOutcomeCallable ListEventTypesCallable(const ListEventTypesRequestT& request = {}) const {
234 return SubmitCallable(&CodeStarNotificationsClient::ListEventTypes, request);
235 }
236
241 template <typename ListEventTypesRequestT = Model::ListEventTypesRequest>
243 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
244 const ListEventTypesRequestT& request = {}) const {
245 return SubmitAsync(&CodeStarNotificationsClient::ListEventTypes, request, handler, context);
246 }
247
255
260 template <typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
261 Model::ListNotificationRulesOutcomeCallable ListNotificationRulesCallable(const ListNotificationRulesRequestT& request = {}) const {
262 return SubmitCallable(&CodeStarNotificationsClient::ListNotificationRules, request);
263 }
264
269 template <typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
271 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
272 const ListNotificationRulesRequestT& request = {}) const {
273 return SubmitAsync(&CodeStarNotificationsClient::ListNotificationRules, request, handler, context);
274 }
275
283
288 template <typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
289 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const {
290 return SubmitCallable(&CodeStarNotificationsClient::ListTagsForResource, request);
291 }
292
297 template <typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
298 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler,
299 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
300 return SubmitAsync(&CodeStarNotificationsClient::ListTagsForResource, request, handler, context);
301 }
302
310
314 template <typename ListTargetsRequestT = Model::ListTargetsRequest>
315 Model::ListTargetsOutcomeCallable ListTargetsCallable(const ListTargetsRequestT& request = {}) const {
316 return SubmitCallable(&CodeStarNotificationsClient::ListTargets, request);
317 }
318
323 template <typename ListTargetsRequestT = Model::ListTargetsRequest>
325 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
326 const ListTargetsRequestT& request = {}) const {
327 return SubmitAsync(&CodeStarNotificationsClient::ListTargets, request, handler, context);
328 }
329
339
343 template <typename SubscribeRequestT = Model::SubscribeRequest>
344 Model::SubscribeOutcomeCallable SubscribeCallable(const SubscribeRequestT& request) const {
345 return SubmitCallable(&CodeStarNotificationsClient::Subscribe, request);
346 }
347
352 template <typename SubscribeRequestT = Model::SubscribeRequest>
353 void SubscribeAsync(const SubscribeRequestT& request, const SubscribeResponseReceivedHandler& handler,
354 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
355 return SubmitAsync(&CodeStarNotificationsClient::Subscribe, request, handler, context);
356 }
357
365
369 template <typename TagResourceRequestT = Model::TagResourceRequest>
370 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const {
371 return SubmitCallable(&CodeStarNotificationsClient::TagResource, request);
372 }
373
378 template <typename TagResourceRequestT = Model::TagResourceRequest>
379 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler,
380 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
381 return SubmitAsync(&CodeStarNotificationsClient::TagResource, request, handler, context);
382 }
383
393
397 template <typename UnsubscribeRequestT = Model::UnsubscribeRequest>
398 Model::UnsubscribeOutcomeCallable UnsubscribeCallable(const UnsubscribeRequestT& request) const {
399 return SubmitCallable(&CodeStarNotificationsClient::Unsubscribe, request);
400 }
401
406 template <typename UnsubscribeRequestT = Model::UnsubscribeRequest>
407 void UnsubscribeAsync(const UnsubscribeRequestT& request, const UnsubscribeResponseReceivedHandler& handler,
408 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
409 return SubmitAsync(&CodeStarNotificationsClient::Unsubscribe, request, handler, context);
410 }
411
419
423 template <typename UntagResourceRequestT = Model::UntagResourceRequest>
424 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const {
425 return SubmitCallable(&CodeStarNotificationsClient::UntagResource, request);
426 }
427
432 template <typename UntagResourceRequestT = Model::UntagResourceRequest>
433 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler,
434 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
435 return SubmitAsync(&CodeStarNotificationsClient::UntagResource, request, handler, context);
436 }
437
448
453 template <typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
454 Model::UpdateNotificationRuleOutcomeCallable UpdateNotificationRuleCallable(const UpdateNotificationRuleRequestT& request) const {
455 return SubmitCallable(&CodeStarNotificationsClient::UpdateNotificationRule, request);
456 }
457
462 template <typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
463 void UpdateNotificationRuleAsync(const UpdateNotificationRuleRequestT& request,
465 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
466 return SubmitAsync(&CodeStarNotificationsClient::UpdateNotificationRule, request, handler, context);
467 }
468
469 virtual void OverrideEndpoint(const Aws::String& endpoint);
470 virtual std::shared_ptr<CodeStarNotificationsEndpointProviderBase>& accessEndpointProvider();
471
472 private:
474 void init(const CodeStarNotificationsClientConfiguration& clientConfiguration);
475
477
478 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request,
479 const std::function<void(Aws::Endpoint::ResolveEndpointOutcome&)>& resolveUri,
480 Aws::Http::HttpMethod httpMethod) const;
481
482 CodeStarNotificationsClientConfiguration m_clientConfiguration;
483 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> m_endpointProvider;
484};
485
486} // namespace CodeStarNotifications
487} // 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
virtual 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
virtual std::shared_ptr< CodeStarNotificationsEndpointProviderBase > & accessEndpointProvider()
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
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