AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
115
119 template<typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
120 Model::CreateNotificationRuleOutcomeCallable CreateNotificationRuleCallable(const CreateNotificationRuleRequestT& request) const
121 {
122 return SubmitCallable(&CodeStarNotificationsClient::CreateNotificationRule, request);
123 }
124
128 template<typename CreateNotificationRuleRequestT = Model::CreateNotificationRuleRequest>
129 void CreateNotificationRuleAsync(const CreateNotificationRuleRequestT& request, const CreateNotificationRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
130 {
131 return SubmitAsync(&CodeStarNotificationsClient::CreateNotificationRule, request, handler, context);
132 }
133
140
144 template<typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
145 Model::DeleteNotificationRuleOutcomeCallable DeleteNotificationRuleCallable(const DeleteNotificationRuleRequestT& request) const
146 {
147 return SubmitCallable(&CodeStarNotificationsClient::DeleteNotificationRule, request);
148 }
149
153 template<typename DeleteNotificationRuleRequestT = Model::DeleteNotificationRuleRequest>
154 void DeleteNotificationRuleAsync(const DeleteNotificationRuleRequestT& request, const DeleteNotificationRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
155 {
156 return SubmitAsync(&CodeStarNotificationsClient::DeleteNotificationRule, request, handler, context);
157 }
158
165
169 template<typename DeleteTargetRequestT = Model::DeleteTargetRequest>
170 Model::DeleteTargetOutcomeCallable DeleteTargetCallable(const DeleteTargetRequestT& request) const
171 {
172 return SubmitCallable(&CodeStarNotificationsClient::DeleteTarget, request);
173 }
174
178 template<typename DeleteTargetRequestT = Model::DeleteTargetRequest>
179 void DeleteTargetAsync(const DeleteTargetRequestT& request, const DeleteTargetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
180 {
181 return SubmitAsync(&CodeStarNotificationsClient::DeleteTarget, request, handler, context);
182 }
183
191
195 template<typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
196 Model::DescribeNotificationRuleOutcomeCallable DescribeNotificationRuleCallable(const DescribeNotificationRuleRequestT& request) const
197 {
198 return SubmitCallable(&CodeStarNotificationsClient::DescribeNotificationRule, request);
199 }
200
204 template<typename DescribeNotificationRuleRequestT = Model::DescribeNotificationRuleRequest>
205 void DescribeNotificationRuleAsync(const DescribeNotificationRuleRequestT& request, const DescribeNotificationRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
206 {
207 return SubmitAsync(&CodeStarNotificationsClient::DescribeNotificationRule, request, handler, context);
208 }
209
217
221 template<typename ListEventTypesRequestT = Model::ListEventTypesRequest>
222 Model::ListEventTypesOutcomeCallable ListEventTypesCallable(const ListEventTypesRequestT& request = {}) const
223 {
224 return SubmitCallable(&CodeStarNotificationsClient::ListEventTypes, request);
225 }
226
230 template<typename ListEventTypesRequestT = Model::ListEventTypesRequest>
231 void ListEventTypesAsync(const ListEventTypesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListEventTypesRequestT& request = {}) const
232 {
233 return SubmitAsync(&CodeStarNotificationsClient::ListEventTypes, request, handler, context);
234 }
235
243
247 template<typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
248 Model::ListNotificationRulesOutcomeCallable ListNotificationRulesCallable(const ListNotificationRulesRequestT& request = {}) const
249 {
250 return SubmitCallable(&CodeStarNotificationsClient::ListNotificationRules, request);
251 }
252
256 template<typename ListNotificationRulesRequestT = Model::ListNotificationRulesRequest>
257 void ListNotificationRulesAsync(const ListNotificationRulesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListNotificationRulesRequestT& request = {}) const
258 {
259 return SubmitAsync(&CodeStarNotificationsClient::ListNotificationRules, request, handler, context);
260 }
261
269
273 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
274 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const
275 {
276 return SubmitCallable(&CodeStarNotificationsClient::ListTagsForResource, request);
277 }
278
282 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
283 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
284 {
285 return SubmitAsync(&CodeStarNotificationsClient::ListTagsForResource, request, handler, context);
286 }
287
295
299 template<typename ListTargetsRequestT = Model::ListTargetsRequest>
300 Model::ListTargetsOutcomeCallable ListTargetsCallable(const ListTargetsRequestT& request = {}) const
301 {
302 return SubmitCallable(&CodeStarNotificationsClient::ListTargets, request);
303 }
304
308 template<typename ListTargetsRequestT = Model::ListTargetsRequest>
309 void ListTargetsAsync(const ListTargetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListTargetsRequestT& request = {}) const
310 {
311 return SubmitAsync(&CodeStarNotificationsClient::ListTargets, request, handler, context);
312 }
313
322
326 template<typename SubscribeRequestT = Model::SubscribeRequest>
327 Model::SubscribeOutcomeCallable SubscribeCallable(const SubscribeRequestT& request) const
328 {
329 return SubmitCallable(&CodeStarNotificationsClient::Subscribe, request);
330 }
331
335 template<typename SubscribeRequestT = Model::SubscribeRequest>
336 void SubscribeAsync(const SubscribeRequestT& request, const SubscribeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
337 {
338 return SubmitAsync(&CodeStarNotificationsClient::Subscribe, request, handler, context);
339 }
340
348
352 template<typename TagResourceRequestT = Model::TagResourceRequest>
353 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const
354 {
355 return SubmitCallable(&CodeStarNotificationsClient::TagResource, request);
356 }
357
361 template<typename TagResourceRequestT = Model::TagResourceRequest>
362 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
363 {
364 return SubmitAsync(&CodeStarNotificationsClient::TagResource, request, handler, context);
365 }
366
375
379 template<typename UnsubscribeRequestT = Model::UnsubscribeRequest>
380 Model::UnsubscribeOutcomeCallable UnsubscribeCallable(const UnsubscribeRequestT& request) const
381 {
382 return SubmitCallable(&CodeStarNotificationsClient::Unsubscribe, request);
383 }
384
388 template<typename UnsubscribeRequestT = Model::UnsubscribeRequest>
389 void UnsubscribeAsync(const UnsubscribeRequestT& request, const UnsubscribeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
390 {
391 return SubmitAsync(&CodeStarNotificationsClient::Unsubscribe, request, handler, context);
392 }
393
401
405 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
406 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const
407 {
408 return SubmitCallable(&CodeStarNotificationsClient::UntagResource, request);
409 }
410
414 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
415 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
416 {
417 return SubmitAsync(&CodeStarNotificationsClient::UntagResource, request, handler, context);
418 }
419
430
434 template<typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
435 Model::UpdateNotificationRuleOutcomeCallable UpdateNotificationRuleCallable(const UpdateNotificationRuleRequestT& request) const
436 {
437 return SubmitCallable(&CodeStarNotificationsClient::UpdateNotificationRule, request);
438 }
439
443 template<typename UpdateNotificationRuleRequestT = Model::UpdateNotificationRuleRequest>
444 void UpdateNotificationRuleAsync(const UpdateNotificationRuleRequestT& request, const UpdateNotificationRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
445 {
446 return SubmitAsync(&CodeStarNotificationsClient::UpdateNotificationRule, request, handler, context);
447 }
448
449
450 void OverrideEndpoint(const Aws::String& endpoint);
451 std::shared_ptr<CodeStarNotificationsEndpointProviderBase>& accessEndpointProvider();
452 private:
454 void init(const CodeStarNotificationsClientConfiguration& clientConfiguration);
455
456 CodeStarNotificationsClientConfiguration m_clientConfiguration;
457 std::shared_ptr<CodeStarNotificationsEndpointProviderBase> m_endpointProvider;
458 };
459
460} // namespace CodeStarNotifications
461} // 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