7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codebuild/model/WebhookBuildType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/codebuild/model/ScopeConfiguration.h>
13#include <aws/codebuild/model/WebhookStatus.h>
14#include <aws/codebuild/model/PullRequestBuildPolicy.h>
15#include <aws/codebuild/model/WebhookFilter.h>
54 template<
typename UrlT = Aws::String>
55 void SetUrl(UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
56 template<
typename UrlT = Aws::String>
66 template<
typename PayloadUrlT = Aws::String>
67 void SetPayloadUrl(PayloadUrlT&& value) { m_payloadUrlHasBeenSet =
true; m_payloadUrl = std::forward<PayloadUrlT>(value); }
68 template<
typename PayloadUrlT = Aws::String>
79 template<
typename SecretT = Aws::String>
80 void SetSecret(SecretT&& value) { m_secretHasBeenSet =
true; m_secret = std::forward<SecretT>(value); }
81 template<
typename SecretT = Aws::String>
95 template<
typename BranchFilterT = Aws::String>
96 void SetBranchFilter(BranchFilterT&& value) { m_branchFilterHasBeenSet =
true; m_branchFilter = std::forward<BranchFilterT>(value); }
97 template<
typename BranchFilterT = Aws::String>
112 template<
typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
113 void SetFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet =
true; m_filterGroups = std::forward<FilterGroupsT>(value); }
114 template<
typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
116 template<
typename FilterGroupsT = Aws::Vector<WebhookFilter>>
117 Webhook&
AddFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet =
true; m_filterGroups.emplace_back(std::forward<FilterGroupsT>(value));
return *
this; }
146 inline void SetManualCreation(
bool value) { m_manualCreationHasBeenSet =
true; m_manualCreation = value; }
157 template<
typename LastModifiedSecretT = Aws::Utils::DateTime>
158 void SetLastModifiedSecret(LastModifiedSecretT&& value) { m_lastModifiedSecretHasBeenSet =
true; m_lastModifiedSecret = std::forward<LastModifiedSecretT>(value); }
159 template<
typename LastModifiedSecretT = Aws::Utils::DateTime>
171 template<
typename ScopeConfigurationT = ScopeConfiguration>
172 void SetScopeConfiguration(ScopeConfigurationT&& value) { m_scopeConfigurationHasBeenSet =
true; m_scopeConfiguration = std::forward<ScopeConfigurationT>(value); }
173 template<
typename ScopeConfigurationT = ScopeConfiguration>
197 template<
typename StatusMessageT = Aws::String>
198 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet =
true; m_statusMessage = std::forward<StatusMessageT>(value); }
199 template<
typename StatusMessageT = Aws::String>
207 template<
typename PullRequestBuildPolicyT = PullRequestBuildPolicy>
208 void SetPullRequestBuildPolicy(PullRequestBuildPolicyT&& value) { m_pullRequestBuildPolicyHasBeenSet =
true; m_pullRequestBuildPolicy = std::forward<PullRequestBuildPolicyT>(value); }
209 template<
typename PullRequestBuildPolicyT = PullRequestBuildPolicy>
215 bool m_urlHasBeenSet =
false;
218 bool m_payloadUrlHasBeenSet =
false;
221 bool m_secretHasBeenSet =
false;
224 bool m_branchFilterHasBeenSet =
false;
227 bool m_filterGroupsHasBeenSet =
false;
230 bool m_buildTypeHasBeenSet =
false;
232 bool m_manualCreation{
false};
233 bool m_manualCreationHasBeenSet =
false;
236 bool m_lastModifiedSecretHasBeenSet =
false;
238 ScopeConfiguration m_scopeConfiguration;
239 bool m_scopeConfigurationHasBeenSet =
false;
242 bool m_statusHasBeenSet =
false;
245 bool m_statusMessageHasBeenSet =
false;
247 PullRequestBuildPolicy m_pullRequestBuildPolicy;
248 bool m_pullRequestBuildPolicyHasBeenSet =
false;
bool GetManualCreation() const
Webhook & WithPullRequestBuildPolicy(PullRequestBuildPolicyT &&value)
void SetSecret(SecretT &&value)
Webhook & WithManualCreation(bool value)
bool StatusHasBeenSet() const
WebhookStatus GetStatus() const
Webhook & WithBranchFilter(BranchFilterT &&value)
bool PullRequestBuildPolicyHasBeenSet() const
void SetScopeConfiguration(ScopeConfigurationT &&value)
bool SecretHasBeenSet() const
const Aws::String & GetSecret() const
void SetStatus(WebhookStatus value)
Webhook & WithSecret(SecretT &&value)
bool FilterGroupsHasBeenSet() const
void SetPayloadUrl(PayloadUrlT &&value)
Webhook & WithFilterGroups(FilterGroupsT &&value)
void SetLastModifiedSecret(LastModifiedSecretT &&value)
WebhookBuildType GetBuildType() const
bool StatusMessageHasBeenSet() const
const Aws::String & GetBranchFilter() const
void SetPullRequestBuildPolicy(PullRequestBuildPolicyT &&value)
const Aws::String & GetStatusMessage() const
void SetUrl(UrlT &&value)
Webhook & WithPayloadUrl(PayloadUrlT &&value)
Webhook & WithScopeConfiguration(ScopeConfigurationT &&value)
Webhook & WithStatusMessage(StatusMessageT &&value)
bool PayloadUrlHasBeenSet() const
bool ScopeConfigurationHasBeenSet() const
AWS_CODEBUILD_API Webhook(Aws::Utils::Json::JsonView jsonValue)
void SetManualCreation(bool value)
bool ManualCreationHasBeenSet() const
Webhook & WithStatus(WebhookStatus value)
Webhook & WithUrl(UrlT &&value)
void SetBuildType(WebhookBuildType value)
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
const Aws::String & GetPayloadUrl() const
void SetBranchFilter(BranchFilterT &&value)
void SetStatusMessage(StatusMessageT &&value)
const PullRequestBuildPolicy & GetPullRequestBuildPolicy() const
const ScopeConfiguration & GetScopeConfiguration() const
Webhook & WithBuildType(WebhookBuildType value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API Webhook()=default
AWS_CODEBUILD_API Webhook & operator=(Aws::Utils::Json::JsonView jsonValue)
Webhook & AddFilterGroups(FilterGroupsT &&value)
const Aws::Utils::DateTime & GetLastModifiedSecret() const
bool UrlHasBeenSet() const
Webhook & WithLastModifiedSecret(LastModifiedSecretT &&value)
bool BranchFilterHasBeenSet() const
void SetFilterGroups(FilterGroupsT &&value)
bool LastModifiedSecretHasBeenSet() const
bool BuildTypeHasBeenSet() const
const Aws::String & GetUrl() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue