AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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