AWS SDK for C++  1.8.129
AWS SDK for C++
PutWebhookRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodePipeline
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
46  inline const WebhookDefinition& GetWebhook() const{ return m_webhook; }
47 
55  inline bool WebhookHasBeenSet() const { return m_webhookHasBeenSet; }
56 
64  inline void SetWebhook(const WebhookDefinition& value) { m_webhookHasBeenSet = true; m_webhook = value; }
65 
73  inline void SetWebhook(WebhookDefinition&& value) { m_webhookHasBeenSet = true; m_webhook = std::move(value); }
74 
82  inline PutWebhookRequest& WithWebhook(const WebhookDefinition& value) { SetWebhook(value); return *this;}
83 
91  inline PutWebhookRequest& WithWebhook(WebhookDefinition&& value) { SetWebhook(std::move(value)); return *this;}
92 
93 
97  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
98 
102  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 
107  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 
112  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113 
117  inline PutWebhookRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
118 
122  inline PutWebhookRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
123 
127  inline PutWebhookRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
128 
132  inline PutWebhookRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
133 
134  private:
135 
136  WebhookDefinition m_webhook;
137  bool m_webhookHasBeenSet;
138 
139  Aws::Vector<Tag> m_tags;
140  bool m_tagsHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace CodePipeline
145 } // namespace Aws
Aws::CodePipeline::Model::PutWebhookRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: PutWebhookRequest.h:102
Aws::CodePipeline::Model::PutWebhookRequest::AddTags
PutWebhookRequest & AddTags(const Tag &value)
Definition: PutWebhookRequest.h:127
Aws::CodePipeline::Model::PutWebhookRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: PutWebhookRequest.h:97
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
Aws::CodePipeline::Model::PutWebhookRequest::PutWebhookRequest
PutWebhookRequest()
CodePipelineRequest.h
Aws::CodePipeline::Model::PutWebhookRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodePipeline::Model::Tag
Definition: Tag.h:33
Aws::CodePipeline::Model::PutWebhookRequest
Definition: PutWebhookRequest.h:24
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WebhookDefinition.h
AWSVector.h
Aws::CodePipeline::Model::PutWebhookRequest::WithTags
PutWebhookRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: PutWebhookRequest.h:122
CodePipeline_EXPORTS.h
Aws::CodePipeline::Model::PutWebhookRequest::WebhookHasBeenSet
bool WebhookHasBeenSet() const
Definition: PutWebhookRequest.h:55
Aws::CodePipeline::Model::PutWebhookRequest::GetWebhook
const WebhookDefinition & GetWebhook() const
Definition: PutWebhookRequest.h:46
Tag.h
Aws::CodePipeline::Model::PutWebhookRequest::SetWebhook
void SetWebhook(WebhookDefinition &&value)
Definition: PutWebhookRequest.h:73
Aws::CodePipeline::Model::WebhookDefinition
Definition: WebhookDefinition.h:37
Aws::CodePipeline::Model::PutWebhookRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodePipeline::Model::PutWebhookRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: PutWebhookRequest.h:107
Aws::CodePipeline::Model::PutWebhookRequest::AddTags
PutWebhookRequest & AddTags(Tag &&value)
Definition: PutWebhookRequest.h:132
Aws::CodePipeline::Model::PutWebhookRequest::SetWebhook
void SetWebhook(const WebhookDefinition &value)
Definition: PutWebhookRequest.h:64
Aws::CodePipeline::Model::PutWebhookRequest::WithWebhook
PutWebhookRequest & WithWebhook(WebhookDefinition &&value)
Definition: PutWebhookRequest.h:91
Aws::CodePipeline::Model::PutWebhookRequest::WithWebhook
PutWebhookRequest & WithWebhook(const WebhookDefinition &value)
Definition: PutWebhookRequest.h:82
Aws::CodePipeline::Model::PutWebhookRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: PutWebhookRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodePipeline::CodePipelineRequest
Definition: CodePipelineRequest.h:17
Aws::CodePipeline::Model::PutWebhookRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutWebhookRequest.h:32
Aws::CodePipeline::Model::PutWebhookRequest::WithTags
PutWebhookRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: PutWebhookRequest.h:117