AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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/CodeStarNotifications_EXPORTS.h>
10#include <aws/core/client/AWSClient.h>
11#include <aws/core/client/AWSClientAsyncCRTP.h>
12#include <aws/core/client/ClientConfiguration.h>
13#include <aws/core/utils/json/JsonSerializer.h>
14
15namespace Aws {
16namespace CodeStarNotifications {
47class AWS_CODESTARNOTIFICATIONS_API CodeStarNotificationsClient
49 public Aws::Client::ClientWithAsyncTemplateMethods<CodeStarNotificationsClient>,
50 public CodeStarNotificationsPaginationBase<CodeStarNotificationsClient> {
51 public:
53 static const char* GetServiceName();
54 static const char* GetAllocationTag();
55
58
65 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr);
66
72 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr,
75
80 CodeStarNotificationsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
81 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> endpointProvider = nullptr,
84
85 /* Legacy constructors due deprecation */
91
97
102 CodeStarNotificationsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
103 const Aws::Client::ClientConfiguration& clientConfiguration);
104
105 /* End of legacy constructors due deprecation */
107
118
123 template <typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
124 Model::CreateNotificationRuleOutcomeCallable CreateNotificationRuleCallable(const CreateNotificationRuleRequestT& request) const {
125 return SubmitCallable(&CodeStarNotificationsClient::CreateNotificationRule, request);
126 }
127
132 template <typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
133 void CreateNotificationRuleAsync(const CreateNotificationRuleRequestT& request,
135 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
136 return SubmitAsync(&CodeStarNotificationsClient::CreateNotificationRule, request, handler, context);
137 }
138
145
150 template <typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
151 Model::DeleteNotificationRuleOutcomeCallable DeleteNotificationRuleCallable(const DeleteNotificationRuleRequestT& request) const {
152 return SubmitCallable(&CodeStarNotificationsClient::DeleteNotificationRule, request);
153 }
154
159 template <typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
160 void DeleteNotificationRuleAsync(const DeleteNotificationRuleRequestT& request,
162 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
163 return SubmitAsync(&CodeStarNotificationsClient::DeleteNotificationRule, request, handler, context);
164 }
165
172
176 template <typename DeleteTargetRequestT = Model::DeleteTargetRequest>
177 Model::DeleteTargetOutcomeCallable DeleteTargetCallable(const DeleteTargetRequestT& request) const {
178 return SubmitCallable(&CodeStarNotificationsClient::DeleteTarget, request);
179 }
180
185 template <typename DeleteTargetRequestT = Model::DeleteTargetRequest>
186 void DeleteTargetAsync(const DeleteTargetRequestT& request, const DeleteTargetResponseReceivedHandler& handler,
187 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
188 return SubmitAsync(&CodeStarNotificationsClient::DeleteTarget, request, handler, context);
189 }
190
198
203 template <typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
204 Model::DescribeNotificationRuleOutcomeCallable DescribeNotificationRuleCallable(const DescribeNotificationRuleRequestT& request) const {
205 return SubmitCallable(&CodeStarNotificationsClient::DescribeNotificationRule, request);
206 }
207
212 template <typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
213 void DescribeNotificationRuleAsync(const DescribeNotificationRuleRequestT& request,
215 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
216 return SubmitAsync(&CodeStarNotificationsClient::DescribeNotificationRule, request, handler, context);
217 }
218
226
230 template <typename ListEventTypesRequestT = Model::ListEventTypesRequest>
231 Model::ListEventTypesOutcomeCallable ListEventTypesCallable(const ListEventTypesRequestT& request = {}) const {
232 return SubmitCallable(&CodeStarNotificationsClient::ListEventTypes, request);
233 }
234
239 template <typename ListEventTypesRequestT = Model::ListEventTypesRequest>
241 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
242 const ListEventTypesRequestT& request = {}) const {
243 return SubmitAsync(&CodeStarNotificationsClient::ListEventTypes, request, handler, context);
244 }
245
253
258 template <typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
259 Model::ListNotificationRulesOutcomeCallable ListNotificationRulesCallable(const ListNotificationRulesRequestT& request = {}) const {
260 return SubmitCallable(&CodeStarNotificationsClient::ListNotificationRules, request);
261 }
262
267 template <typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
269 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
270 const ListNotificationRulesRequestT& request = {}) const {
271 return SubmitAsync(&CodeStarNotificationsClient::ListNotificationRules, request, handler, context);
272 }
273
281
286 template <typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
287 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const {
288 return SubmitCallable(&CodeStarNotificationsClient::ListTagsForResource, request);
289 }
290
295 template <typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
296 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler,
297 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
298 return SubmitAsync(&CodeStarNotificationsClient::ListTagsForResource, request, handler, context);
299 }
300
308
312 template <typename ListTargetsRequestT = Model::ListTargetsRequest>
313 Model::ListTargetsOutcomeCallable ListTargetsCallable(const ListTargetsRequestT& request = {}) const {
314 return SubmitCallable(&CodeStarNotificationsClient::ListTargets, request);
315 }
316
321 template <typename ListTargetsRequestT = Model::ListTargetsRequest>
323 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
324 const ListTargetsRequestT& request = {}) const {
325 return SubmitAsync(&CodeStarNotificationsClient::ListTargets, request, handler, context);
326 }
327
337
341 template <typename SubscribeRequestT = Model::SubscribeRequest>
342 Model::SubscribeOutcomeCallable SubscribeCallable(const SubscribeRequestT& request) const {
343 return SubmitCallable(&CodeStarNotificationsClient::Subscribe, request);
344 }
345
350 template <typename SubscribeRequestT = Model::SubscribeRequest>
351 void SubscribeAsync(const SubscribeRequestT& request, const SubscribeResponseReceivedHandler& handler,
352 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
353 return SubmitAsync(&CodeStarNotificationsClient::Subscribe, request, handler, context);
354 }
355
363
367 template <typename TagResourceRequestT = Model::TagResourceRequest>
368 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const {
369 return SubmitCallable(&CodeStarNotificationsClient::TagResource, request);
370 }
371
376 template <typename TagResourceRequestT = Model::TagResourceRequest>
377 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler,
378 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
379 return SubmitAsync(&CodeStarNotificationsClient::TagResource, request, handler, context);
380 }
381
391
395 template <typename UnsubscribeRequestT = Model::UnsubscribeRequest>
396 Model::UnsubscribeOutcomeCallable UnsubscribeCallable(const UnsubscribeRequestT& request) const {
397 return SubmitCallable(&CodeStarNotificationsClient::Unsubscribe, request);
398 }
399
404 template <typename UnsubscribeRequestT = Model::UnsubscribeRequest>
405 void UnsubscribeAsync(const UnsubscribeRequestT& request, const UnsubscribeResponseReceivedHandler& handler,
406 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
407 return SubmitAsync(&CodeStarNotificationsClient::Unsubscribe, request, handler, context);
408 }
409
417
421 template <typename UntagResourceRequestT = Model::UntagResourceRequest>
422 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const {
423 return SubmitCallable(&CodeStarNotificationsClient::UntagResource, request);
424 }
425
430 template <typename UntagResourceRequestT = Model::UntagResourceRequest>
431 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler,
432 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
433 return SubmitAsync(&CodeStarNotificationsClient::UntagResource, request, handler, context);
434 }
435
446
451 template <typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
452 Model::UpdateNotificationRuleOutcomeCallable UpdateNotificationRuleCallable(const UpdateNotificationRuleRequestT& request) const {
453 return SubmitCallable(&CodeStarNotificationsClient::UpdateNotificationRule, request);
454 }
455
460 template <typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
461 void UpdateNotificationRuleAsync(const UpdateNotificationRuleRequestT& request,
463 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
464 return SubmitAsync(&CodeStarNotificationsClient::UpdateNotificationRule, request, handler, context);
465 }
466
467 virtual void OverrideEndpoint(const Aws::String& endpoint);
468 virtual std::shared_ptr<CodeStarNotificationsEndpointProviderBase>& accessEndpointProvider();
469
470 private:
472 void init(const CodeStarNotificationsClientConfiguration& clientConfiguration);
473
474 CodeStarNotificationsClientConfiguration m_clientConfiguration;
475 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> m_endpointProvider;
476};
477
478} // namespace CodeStarNotifications
479} // 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