7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codebuild/model/WebhookBuildType.h>
12#include <aws/codebuild/model/ScopeConfiguration.h>
13#include <aws/codebuild/model/PullRequestBuildPolicy.h>
14#include <aws/codebuild/model/WebhookFilter.h>
48 template<
typename ProjectNameT = Aws::String>
49 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet =
true; m_projectName = std::forward<ProjectNameT>(value); }
50 template<
typename ProjectNameT = Aws::String>
64 template<
typename BranchFilterT = Aws::String>
65 void SetBranchFilter(BranchFilterT&& value) { m_branchFilterHasBeenSet =
true; m_branchFilter = std::forward<BranchFilterT>(value); }
66 template<
typename BranchFilterT = Aws::String>
81 template<
typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
82 void SetFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet =
true; m_filterGroups = std::forward<FilterGroupsT>(value); }
83 template<
typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
85 template<
typename FilterGroupsT = Aws::Vector<WebhookFilter>>
115 inline void SetManualCreation(
bool value) { m_manualCreationHasBeenSet =
true; m_manualCreation = value; }
127 template<
typename ScopeConfigurationT = ScopeConfiguration>
128 void SetScopeConfiguration(ScopeConfigurationT&& value) { m_scopeConfigurationHasBeenSet =
true; m_scopeConfiguration = std::forward<ScopeConfigurationT>(value); }
129 template<
typename ScopeConfigurationT = ScopeConfiguration>
142 template<
typename PullRequestBuildPolicyT = PullRequestBuildPolicy>
143 void SetPullRequestBuildPolicy(PullRequestBuildPolicyT&& value) { m_pullRequestBuildPolicyHasBeenSet =
true; m_pullRequestBuildPolicy = std::forward<PullRequestBuildPolicyT>(value); }
144 template<
typename PullRequestBuildPolicyT = PullRequestBuildPolicy>
150 bool m_projectNameHasBeenSet =
false;
153 bool m_branchFilterHasBeenSet =
false;
156 bool m_filterGroupsHasBeenSet =
false;
159 bool m_buildTypeHasBeenSet =
false;
161 bool m_manualCreation{
false};
162 bool m_manualCreationHasBeenSet =
false;
164 ScopeConfiguration m_scopeConfiguration;
165 bool m_scopeConfigurationHasBeenSet =
false;
167 PullRequestBuildPolicy m_pullRequestBuildPolicy;
168 bool m_pullRequestBuildPolicyHasBeenSet =
false;
const Aws::String & GetProjectName() const
bool BranchFilterHasBeenSet() const
void SetBuildType(WebhookBuildType value)
WebhookBuildType GetBuildType() const
CreateWebhookRequest & WithPullRequestBuildPolicy(PullRequestBuildPolicyT &&value)
void SetManualCreation(bool value)
bool FilterGroupsHasBeenSet() const
bool ManualCreationHasBeenSet() const
void SetScopeConfiguration(ScopeConfigurationT &&value)
CreateWebhookRequest & WithManualCreation(bool value)
bool BuildTypeHasBeenSet() const
const Aws::String & GetBranchFilter() const
bool PullRequestBuildPolicyHasBeenSet() const
CreateWebhookRequest & WithBuildType(WebhookBuildType value)
CreateWebhookRequest & WithProjectName(ProjectNameT &&value)
CreateWebhookRequest & WithBranchFilter(BranchFilterT &&value)
void SetBranchFilter(BranchFilterT &&value)
void SetProjectName(ProjectNameT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
void SetFilterGroups(FilterGroupsT &&value)
bool GetManualCreation() const
virtual const char * GetServiceRequestName() const override
bool ScopeConfigurationHasBeenSet() const
const ScopeConfiguration & GetScopeConfiguration() const
void SetPullRequestBuildPolicy(PullRequestBuildPolicyT &&value)
const PullRequestBuildPolicy & GetPullRequestBuildPolicy() const
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
bool ProjectNameHasBeenSet() const
AWS_CODEBUILD_API CreateWebhookRequest()=default
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWebhookRequest & AddFilterGroups(FilterGroupsT &&value)
CreateWebhookRequest & WithScopeConfiguration(ScopeConfigurationT &&value)
CreateWebhookRequest & WithFilterGroups(FilterGroupsT &&value)
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