AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
UpdateWebhookRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/PullRequestBuildPolicy.h>
10#include <aws/codebuild/model/WebhookBuildType.h>
11#include <aws/codebuild/model/WebhookFilter.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodeBuild {
19namespace Model {
20
24 public:
25 AWS_CODEBUILD_API UpdateWebhookRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateWebhook"; }
32
33 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetProjectName() const { return m_projectName; }
42 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
43 template <typename ProjectNameT = Aws::String>
44 void SetProjectName(ProjectNameT&& value) {
45 m_projectNameHasBeenSet = true;
46 m_projectName = std::forward<ProjectNameT>(value);
47 }
48 template <typename ProjectNameT = Aws::String>
49 UpdateWebhookRequest& WithProjectName(ProjectNameT&& value) {
50 SetProjectName(std::forward<ProjectNameT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetBranchFilter() const { return m_branchFilter; }
64 inline bool BranchFilterHasBeenSet() const { return m_branchFilterHasBeenSet; }
65 template <typename BranchFilterT = Aws::String>
66 void SetBranchFilter(BranchFilterT&& value) {
67 m_branchFilterHasBeenSet = true;
68 m_branchFilter = std::forward<BranchFilterT>(value);
69 }
70 template <typename BranchFilterT = Aws::String>
71 UpdateWebhookRequest& WithBranchFilter(BranchFilterT&& value) {
72 SetBranchFilter(std::forward<BranchFilterT>(value));
73 return *this;
74 }
76
78
83 inline bool GetRotateSecret() const { return m_rotateSecret; }
84 inline bool RotateSecretHasBeenSet() const { return m_rotateSecretHasBeenSet; }
85 inline void SetRotateSecret(bool value) {
86 m_rotateSecretHasBeenSet = true;
87 m_rotateSecret = value;
88 }
90 SetRotateSecret(value);
91 return *this;
92 }
94
96
101 inline const Aws::Vector<Aws::Vector<WebhookFilter>>& GetFilterGroups() const { return m_filterGroups; }
102 inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; }
103 template <typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
104 void SetFilterGroups(FilterGroupsT&& value) {
105 m_filterGroupsHasBeenSet = true;
106 m_filterGroups = std::forward<FilterGroupsT>(value);
107 }
108 template <typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
109 UpdateWebhookRequest& WithFilterGroups(FilterGroupsT&& value) {
110 SetFilterGroups(std::forward<FilterGroupsT>(value));
111 return *this;
112 }
113 template <typename FilterGroupsT = Aws::Vector<WebhookFilter>>
114 UpdateWebhookRequest& AddFilterGroups(FilterGroupsT&& value) {
115 m_filterGroupsHasBeenSet = true;
116 m_filterGroups.emplace_back(std::forward<FilterGroupsT>(value));
117 return *this;
118 }
120
122
131 inline WebhookBuildType GetBuildType() const { return m_buildType; }
132 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
133 inline void SetBuildType(WebhookBuildType value) {
134 m_buildTypeHasBeenSet = true;
135 m_buildType = value;
136 }
138 SetBuildType(value);
139 return *this;
140 }
142
144
150 inline const PullRequestBuildPolicy& GetPullRequestBuildPolicy() const { return m_pullRequestBuildPolicy; }
151 inline bool PullRequestBuildPolicyHasBeenSet() const { return m_pullRequestBuildPolicyHasBeenSet; }
152 template <typename PullRequestBuildPolicyT = PullRequestBuildPolicy>
153 void SetPullRequestBuildPolicy(PullRequestBuildPolicyT&& value) {
154 m_pullRequestBuildPolicyHasBeenSet = true;
155 m_pullRequestBuildPolicy = std::forward<PullRequestBuildPolicyT>(value);
156 }
157 template <typename PullRequestBuildPolicyT = PullRequestBuildPolicy>
158 UpdateWebhookRequest& WithPullRequestBuildPolicy(PullRequestBuildPolicyT&& value) {
159 SetPullRequestBuildPolicy(std::forward<PullRequestBuildPolicyT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_projectName;
165 bool m_projectNameHasBeenSet = false;
166
167 Aws::String m_branchFilter;
168 bool m_branchFilterHasBeenSet = false;
169
170 bool m_rotateSecret{false};
171 bool m_rotateSecretHasBeenSet = false;
172
174 bool m_filterGroupsHasBeenSet = false;
175
177 bool m_buildTypeHasBeenSet = false;
178
179 PullRequestBuildPolicy m_pullRequestBuildPolicy;
180 bool m_pullRequestBuildPolicyHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace CodeBuild
185} // namespace Aws
const PullRequestBuildPolicy & GetPullRequestBuildPolicy() const
AWS_CODEBUILD_API UpdateWebhookRequest()=default
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
UpdateWebhookRequest & WithBranchFilter(BranchFilterT &&value)
UpdateWebhookRequest & WithRotateSecret(bool value)
UpdateWebhookRequest & WithFilterGroups(FilterGroupsT &&value)
UpdateWebhookRequest & AddFilterGroups(FilterGroupsT &&value)
void SetPullRequestBuildPolicy(PullRequestBuildPolicyT &&value)
UpdateWebhookRequest & WithPullRequestBuildPolicy(PullRequestBuildPolicyT &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateWebhookRequest & WithBuildType(WebhookBuildType value)
UpdateWebhookRequest & WithProjectName(ProjectNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_API Aws::String SerializePayload() 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