7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codepipeline/model/WebhookAuthenticationType.h>
11#include <aws/codepipeline/model/WebhookAuthConfiguration.h>
12#include <aws/codepipeline/model/WebhookFilterRule.h>
51 template<
typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
53 template<
typename NameT = Aws::String>
63 template<
typename TargetPipelineT = Aws::String>
64 void SetTargetPipeline(TargetPipelineT&& value) { m_targetPipelineHasBeenSet =
true; m_targetPipeline = std::forward<TargetPipelineT>(value); }
65 template<
typename TargetPipelineT = Aws::String>
76 template<
typename TargetActionT = Aws::String>
77 void SetTargetAction(TargetActionT&& value) { m_targetActionHasBeenSet =
true; m_targetAction = std::forward<TargetActionT>(value); }
78 template<
typename TargetActionT = Aws::String>
90 template<
typename FiltersT = Aws::Vector<WebhookFilterRule>>
91 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet =
true; m_filters = std::forward<FiltersT>(value); }
92 template<
typename FiltersT = Aws::Vector<WebhookFilterRule>>
94 template<
typename FiltersT = WebhookFilterRule>
95 WebhookDefinition&
AddFilters(FiltersT&& value) { m_filtersHasBeenSet =
true; m_filters.emplace_back(std::forward<FiltersT>(value));
return *
this; }
134 template<
typename AuthenticationConfigurationT = WebhookAuthConfiguration>
135 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) { m_authenticationConfigurationHasBeenSet =
true; m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value); }
136 template<
typename AuthenticationConfigurationT = WebhookAuthConfiguration>
142 bool m_nameHasBeenSet =
false;
145 bool m_targetPipelineHasBeenSet =
false;
148 bool m_targetActionHasBeenSet =
false;
151 bool m_filtersHasBeenSet =
false;
154 bool m_authenticationHasBeenSet =
false;
156 WebhookAuthConfiguration m_authenticationConfiguration;
157 bool m_authenticationConfigurationHasBeenSet =
false;
AWS_CODEPIPELINE_API WebhookDefinition(Aws::Utils::Json::JsonView jsonValue)
WebhookAuthenticationType GetAuthentication() const
WebhookDefinition & AddFilters(FiltersT &&value)
const Aws::String & GetTargetAction() const
WebhookDefinition & WithAuthentication(WebhookAuthenticationType value)
WebhookDefinition & WithAuthenticationConfiguration(AuthenticationConfigurationT &&value)
void SetTargetPipeline(TargetPipelineT &&value)
AWS_CODEPIPELINE_API WebhookDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FiltersHasBeenSet() const
void SetFilters(FiltersT &&value)
void SetAuthenticationConfiguration(AuthenticationConfigurationT &&value)
const Aws::Vector< WebhookFilterRule > & GetFilters() const
bool TargetActionHasBeenSet() const
WebhookDefinition & WithName(NameT &&value)
bool AuthenticationConfigurationHasBeenSet() const
WebhookDefinition & WithFilters(FiltersT &&value)
bool AuthenticationHasBeenSet() const
AWS_CODEPIPELINE_API WebhookDefinition()=default
void SetAuthentication(WebhookAuthenticationType value)
const Aws::String & GetTargetPipeline() const
bool TargetPipelineHasBeenSet() const
WebhookDefinition & WithTargetPipeline(TargetPipelineT &&value)
void SetName(NameT &&value)
void SetTargetAction(TargetActionT &&value)
bool NameHasBeenSet() const
const Aws::String & GetName() const
WebhookDefinition & WithTargetAction(TargetActionT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const WebhookAuthConfiguration & GetAuthenticationConfiguration() const
WebhookAuthenticationType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue