AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
WebhookDefinition.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodePipeline
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODEPIPELINE_API WebhookDefinition() = default;
40 AWS_CODEPIPELINE_API WebhookDefinition(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API WebhookDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
54 WebhookDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetTargetPipeline() const { return m_targetPipeline; }
62 inline bool TargetPipelineHasBeenSet() const { return m_targetPipelineHasBeenSet; }
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>
66 WebhookDefinition& WithTargetPipeline(TargetPipelineT&& value) { SetTargetPipeline(std::forward<TargetPipelineT>(value)); return *this;}
68
70
74 inline const Aws::String& GetTargetAction() const { return m_targetAction; }
75 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
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>
79 WebhookDefinition& WithTargetAction(TargetActionT&& value) { SetTargetAction(std::forward<TargetActionT>(value)); return *this;}
81
83
88 inline const Aws::Vector<WebhookFilterRule>& GetFilters() const { return m_filters; }
89 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
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>>
93 WebhookDefinition& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
94 template<typename FiltersT = WebhookFilterRule>
95 WebhookDefinition& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
97
99
118 inline WebhookAuthenticationType GetAuthentication() const { return m_authentication; }
119 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
120 inline void SetAuthentication(WebhookAuthenticationType value) { m_authenticationHasBeenSet = true; m_authentication = value; }
123
125
132 inline const WebhookAuthConfiguration& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
133 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
134 template<typename AuthenticationConfigurationT = WebhookAuthConfiguration>
135 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value); }
136 template<typename AuthenticationConfigurationT = WebhookAuthConfiguration>
137 WebhookDefinition& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) { SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value)); return *this;}
139 private:
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_targetPipeline;
145 bool m_targetPipelineHasBeenSet = false;
146
147 Aws::String m_targetAction;
148 bool m_targetActionHasBeenSet = false;
149
151 bool m_filtersHasBeenSet = false;
152
154 bool m_authenticationHasBeenSet = false;
155
156 WebhookAuthConfiguration m_authenticationConfiguration;
157 bool m_authenticationConfigurationHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace CodePipeline
162} // namespace Aws
AWS_CODEPIPELINE_API WebhookDefinition(Aws::Utils::Json::JsonView jsonValue)
WebhookAuthenticationType GetAuthentication() const
WebhookDefinition & AddFilters(FiltersT &&value)
WebhookDefinition & WithAuthentication(WebhookAuthenticationType value)
WebhookDefinition & WithAuthenticationConfiguration(AuthenticationConfigurationT &&value)
void SetTargetPipeline(TargetPipelineT &&value)
AWS_CODEPIPELINE_API WebhookDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAuthenticationConfiguration(AuthenticationConfigurationT &&value)
const Aws::Vector< WebhookFilterRule > & GetFilters() const
WebhookDefinition & WithName(NameT &&value)
WebhookDefinition & WithFilters(FiltersT &&value)
AWS_CODEPIPELINE_API WebhookDefinition()=default
void SetAuthentication(WebhookAuthenticationType value)
const Aws::String & GetTargetPipeline() const
WebhookDefinition & WithTargetPipeline(TargetPipelineT &&value)
WebhookDefinition & WithTargetAction(TargetActionT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const WebhookAuthConfiguration & GetAuthenticationConfiguration() 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