7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/PullRequestBuildPolicy.h>
9#include <aws/codebuild/model/ScopeConfiguration.h>
10#include <aws/codebuild/model/WebhookBuildType.h>
11#include <aws/codebuild/model/WebhookFilter.h>
12#include <aws/codebuild/model/WebhookStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
48 template <
typename UrlT = Aws::String>
50 m_urlHasBeenSet =
true;
51 m_url = std::forward<UrlT>(value);
53 template <
typename UrlT = Aws::String>
55 SetUrl(std::forward<UrlT>(value));
66 template <
typename PayloadUrlT = Aws::String>
68 m_payloadUrlHasBeenSet =
true;
69 m_payloadUrl = std::forward<PayloadUrlT>(value);
71 template <
typename PayloadUrlT = Aws::String>
85 template <
typename SecretT = Aws::String>
87 m_secretHasBeenSet =
true;
88 m_secret = std::forward<SecretT>(value);
90 template <
typename SecretT = Aws::String>
107 template <
typename BranchFilterT = Aws::String>
109 m_branchFilterHasBeenSet =
true;
110 m_branchFilter = std::forward<BranchFilterT>(value);
112 template <
typename BranchFilterT = Aws::String>
130 template <
typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
132 m_filterGroupsHasBeenSet =
true;
133 m_filterGroups = std::forward<FilterGroupsT>(value);
135 template <
typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
140 template <
typename FilterGroupsT = Aws::Vector<WebhookFilter>>
142 m_filterGroupsHasBeenSet =
true;
143 m_filterGroups.emplace_back(std::forward<FilterGroupsT>(value));
161 m_buildTypeHasBeenSet =
true;
181 m_manualCreationHasBeenSet =
true;
182 m_manualCreation = value;
197 template <
typename LastModifiedSecretT = Aws::Utils::DateTime>
199 m_lastModifiedSecretHasBeenSet =
true;
200 m_lastModifiedSecret = std::forward<LastModifiedSecretT>(value);
202 template <
typename LastModifiedSecretT = Aws::Utils::DateTime>
217 template <
typename ScopeConfigurationT = ScopeConfiguration>
219 m_scopeConfigurationHasBeenSet =
true;
220 m_scopeConfiguration = std::forward<ScopeConfigurationT>(value);
222 template <
typename ScopeConfigurationT = ScopeConfiguration>
240 m_statusHasBeenSet =
true;
255 template <
typename StatusMessageT = Aws::String>
257 m_statusMessageHasBeenSet =
true;
258 m_statusMessage = std::forward<StatusMessageT>(value);
260 template <
typename StatusMessageT = Aws::String>
271 template <
typename PullRequestBuildPolicyT = PullRequestBuildPolicy>
273 m_pullRequestBuildPolicyHasBeenSet =
true;
274 m_pullRequestBuildPolicy = std::forward<PullRequestBuildPolicyT>(value);
276 template <
typename PullRequestBuildPolicyT = PullRequestBuildPolicy>
295 bool m_manualCreation{
false};
299 ScopeConfiguration m_scopeConfiguration;
305 PullRequestBuildPolicy m_pullRequestBuildPolicy;
306 bool m_urlHasBeenSet =
false;
307 bool m_payloadUrlHasBeenSet =
false;
308 bool m_secretHasBeenSet =
false;
309 bool m_branchFilterHasBeenSet =
false;
310 bool m_filterGroupsHasBeenSet =
false;
311 bool m_buildTypeHasBeenSet =
false;
312 bool m_manualCreationHasBeenSet =
false;
313 bool m_lastModifiedSecretHasBeenSet =
false;
314 bool m_scopeConfigurationHasBeenSet =
false;
315 bool m_statusHasBeenSet =
false;
316 bool m_statusMessageHasBeenSet =
false;
317 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