7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/WebhookAuthConfiguration.h>
9#include <aws/codepipeline/model/WebhookAuthenticationType.h>
10#include <aws/codepipeline/model/WebhookFilterRule.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace CodePipeline {
45 template <
typename NameT = Aws::String>
47 m_nameHasBeenSet =
true;
48 m_name = std::forward<NameT>(value);
50 template <
typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
63 template <
typename TargetPipelineT = Aws::String>
65 m_targetPipelineHasBeenSet =
true;
66 m_targetPipeline = std::forward<TargetPipelineT>(value);
68 template <
typename TargetPipelineT = Aws::String>
82 template <
typename TargetActionT = Aws::String>
84 m_targetActionHasBeenSet =
true;
85 m_targetAction = std::forward<TargetActionT>(value);
87 template <
typename TargetActionT = Aws::String>
102 template <
typename FiltersT = Aws::Vector<WebhookFilterRule>>
104 m_filtersHasBeenSet =
true;
105 m_filters = std::forward<FiltersT>(value);
107 template <
typename FiltersT = Aws::Vector<WebhookFilterRule>>
112 template <
typename FiltersT = WebhookFilterRule>
114 m_filtersHasBeenSet =
true;
115 m_filters.emplace_back(std::forward<FiltersT>(value));
143 m_authenticationHasBeenSet =
true;
144 m_authentication = value;
162 template <
typename AuthenticationConfigurationT = WebhookAuthConfiguration>
164 m_authenticationConfigurationHasBeenSet =
true;
165 m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value);
167 template <
typename AuthenticationConfigurationT = WebhookAuthConfiguration>
184 WebhookAuthConfiguration m_authenticationConfiguration;
185 bool m_nameHasBeenSet =
false;
186 bool m_targetPipelineHasBeenSet =
false;
187 bool m_targetActionHasBeenSet =
false;
188 bool m_filtersHasBeenSet =
false;
189 bool m_authenticationHasBeenSet =
false;
190 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