AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutWebhookRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipelineRequest.h>
8#include <aws/codepipeline/CodePipeline_EXPORTS.h>
9#include <aws/codepipeline/model/Tag.h>
10#include <aws/codepipeline/model/WebhookDefinition.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodePipeline {
17namespace Model {
18
22 public:
23 AWS_CODEPIPELINE_API PutWebhookRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutWebhook"; }
30
31 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
32
33 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
43 inline const WebhookDefinition& GetWebhook() const { return m_webhook; }
44 inline bool WebhookHasBeenSet() const { return m_webhookHasBeenSet; }
45 template <typename WebhookT = WebhookDefinition>
46 void SetWebhook(WebhookT&& value) {
47 m_webhookHasBeenSet = true;
48 m_webhook = std::forward<WebhookT>(value);
49 }
50 template <typename WebhookT = WebhookDefinition>
51 PutWebhookRequest& WithWebhook(WebhookT&& value) {
52 SetWebhook(std::forward<WebhookT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Vector<Tag>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Vector<Tag>>
69 PutWebhookRequest& WithTags(TagsT&& value) {
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsT = Tag>
74 PutWebhookRequest& AddTags(TagsT&& value) {
75 m_tagsHasBeenSet = true;
76 m_tags.emplace_back(std::forward<TagsT>(value));
77 return *this;
78 }
80 private:
81 WebhookDefinition m_webhook;
82
83 Aws::Vector<Tag> m_tags;
84 bool m_webhookHasBeenSet = false;
85 bool m_tagsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CodePipeline
90} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
PutWebhookRequest & WithTags(TagsT &&value)
AWS_CODEPIPELINE_API PutWebhookRequest()=default
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
PutWebhookRequest & WithWebhook(WebhookT &&value)
virtual const char * GetServiceRequestName() const override
const WebhookDefinition & GetWebhook() const
PutWebhookRequest & AddTags(TagsT &&value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector