AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
WebhookDefinition.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodePipeline {
24namespace Model {
25
33 public:
34 AWS_CODEPIPELINE_API WebhookDefinition() = default;
35 AWS_CODEPIPELINE_API WebhookDefinition(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEPIPELINE_API WebhookDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 WebhookDefinition& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
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) {
65 m_targetPipelineHasBeenSet = true;
66 m_targetPipeline = std::forward<TargetPipelineT>(value);
67 }
68 template <typename TargetPipelineT = Aws::String>
69 WebhookDefinition& WithTargetPipeline(TargetPipelineT&& value) {
70 SetTargetPipeline(std::forward<TargetPipelineT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetTargetAction() const { return m_targetAction; }
81 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
82 template <typename TargetActionT = Aws::String>
83 void SetTargetAction(TargetActionT&& value) {
84 m_targetActionHasBeenSet = true;
85 m_targetAction = std::forward<TargetActionT>(value);
86 }
87 template <typename TargetActionT = Aws::String>
88 WebhookDefinition& WithTargetAction(TargetActionT&& value) {
89 SetTargetAction(std::forward<TargetActionT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::Vector<WebhookFilterRule>& GetFilters() const { return m_filters; }
101 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
102 template <typename FiltersT = Aws::Vector<WebhookFilterRule>>
103 void SetFilters(FiltersT&& value) {
104 m_filtersHasBeenSet = true;
105 m_filters = std::forward<FiltersT>(value);
106 }
107 template <typename FiltersT = Aws::Vector<WebhookFilterRule>>
108 WebhookDefinition& WithFilters(FiltersT&& value) {
109 SetFilters(std::forward<FiltersT>(value));
110 return *this;
111 }
112 template <typename FiltersT = WebhookFilterRule>
113 WebhookDefinition& AddFilters(FiltersT&& value) {
114 m_filtersHasBeenSet = true;
115 m_filters.emplace_back(std::forward<FiltersT>(value));
116 return *this;
117 }
119
121
140 inline WebhookAuthenticationType GetAuthentication() const { return m_authentication; }
141 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
143 m_authenticationHasBeenSet = true;
144 m_authentication = value;
145 }
147 SetAuthentication(value);
148 return *this;
149 }
151
153
160 inline const WebhookAuthConfiguration& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
161 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
162 template <typename AuthenticationConfigurationT = WebhookAuthConfiguration>
163 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
164 m_authenticationConfigurationHasBeenSet = true;
165 m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value);
166 }
167 template <typename AuthenticationConfigurationT = WebhookAuthConfiguration>
168 WebhookDefinition& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
169 SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_name;
175
176 Aws::String m_targetPipeline;
177
178 Aws::String m_targetAction;
179
181
183
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;
191};
192
193} // namespace Model
194} // namespace CodePipeline
195} // 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