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/WebhookFilter.h>
53 template<
typename UrlT = Aws::String>
54 void SetUrl(UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
55 template<
typename UrlT = Aws::String>
65 template<
typename PayloadUrlT = Aws::String>
66 void SetPayloadUrl(PayloadUrlT&& value) { m_payloadUrlHasBeenSet =
true; m_payloadUrl = std::forward<PayloadUrlT>(value); }
67 template<
typename PayloadUrlT = Aws::String>
78 template<
typename SecretT = Aws::String>
79 void SetSecret(SecretT&& value) { m_secretHasBeenSet =
true; m_secret = std::forward<SecretT>(value); }
80 template<
typename SecretT = Aws::String>
94 template<
typename BranchFilterT = Aws::String>
95 void SetBranchFilter(BranchFilterT&& value) { m_branchFilterHasBeenSet =
true; m_branchFilter = std::forward<BranchFilterT>(value); }
96 template<
typename BranchFilterT = Aws::String>
111 template<
typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
112 void SetFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet =
true; m_filterGroups = std::forward<FilterGroupsT>(value); }
113 template<
typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
115 template<
typename FilterGroupsT = Aws::Vector<WebhookFilter>>
116 Webhook&
AddFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet =
true; m_filterGroups.emplace_back(std::forward<FilterGroupsT>(value));
return *
this; }
145 inline void SetManualCreation(
bool value) { m_manualCreationHasBeenSet =
true; m_manualCreation = value; }
156 template<
typename LastModifiedSecretT = Aws::Utils::DateTime>
157 void SetLastModifiedSecret(LastModifiedSecretT&& value) { m_lastModifiedSecretHasBeenSet =
true; m_lastModifiedSecret = std::forward<LastModifiedSecretT>(value); }
158 template<
typename LastModifiedSecretT = Aws::Utils::DateTime>
170 template<
typename ScopeConfigurationT = ScopeConfiguration>
171 void SetScopeConfiguration(ScopeConfigurationT&& value) { m_scopeConfigurationHasBeenSet =
true; m_scopeConfiguration = std::forward<ScopeConfigurationT>(value); }
172 template<
typename ScopeConfigurationT = ScopeConfiguration>
196 template<
typename StatusMessageT = Aws::String>
197 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet =
true; m_statusMessage = std::forward<StatusMessageT>(value); }
198 template<
typename StatusMessageT = Aws::String>
204 bool m_urlHasBeenSet =
false;
207 bool m_payloadUrlHasBeenSet =
false;
210 bool m_secretHasBeenSet =
false;
213 bool m_branchFilterHasBeenSet =
false;
216 bool m_filterGroupsHasBeenSet =
false;
219 bool m_buildTypeHasBeenSet =
false;
221 bool m_manualCreation{
false};
222 bool m_manualCreationHasBeenSet =
false;
225 bool m_lastModifiedSecretHasBeenSet =
false;
227 ScopeConfiguration m_scopeConfiguration;
228 bool m_scopeConfigurationHasBeenSet =
false;
231 bool m_statusHasBeenSet =
false;
234 bool m_statusMessageHasBeenSet =
false;
bool GetManualCreation() const
void SetSecret(SecretT &&value)
Webhook & WithManualCreation(bool value)
bool StatusHasBeenSet() const
WebhookStatus GetStatus() const
Webhook & WithBranchFilter(BranchFilterT &&value)
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
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 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