AWS SDK for C++  1.9.106
AWS SDK for C++
WebhookDefinition.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace CodePipeline
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline WebhookDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline WebhookDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline WebhookDefinition& WithName(const char* value) { SetName(value); return *this;}
84 
85 
89  inline const Aws::String& GetTargetPipeline() const{ return m_targetPipeline; }
90 
94  inline bool TargetPipelineHasBeenSet() const { return m_targetPipelineHasBeenSet; }
95 
99  inline void SetTargetPipeline(const Aws::String& value) { m_targetPipelineHasBeenSet = true; m_targetPipeline = value; }
100 
104  inline void SetTargetPipeline(Aws::String&& value) { m_targetPipelineHasBeenSet = true; m_targetPipeline = std::move(value); }
105 
109  inline void SetTargetPipeline(const char* value) { m_targetPipelineHasBeenSet = true; m_targetPipeline.assign(value); }
110 
114  inline WebhookDefinition& WithTargetPipeline(const Aws::String& value) { SetTargetPipeline(value); return *this;}
115 
119  inline WebhookDefinition& WithTargetPipeline(Aws::String&& value) { SetTargetPipeline(std::move(value)); return *this;}
120 
124  inline WebhookDefinition& WithTargetPipeline(const char* value) { SetTargetPipeline(value); return *this;}
125 
126 
131  inline const Aws::String& GetTargetAction() const{ return m_targetAction; }
132 
137  inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
138 
143  inline void SetTargetAction(const Aws::String& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
144 
149  inline void SetTargetAction(Aws::String&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
150 
155  inline void SetTargetAction(const char* value) { m_targetActionHasBeenSet = true; m_targetAction.assign(value); }
156 
161  inline WebhookDefinition& WithTargetAction(const Aws::String& value) { SetTargetAction(value); return *this;}
162 
167  inline WebhookDefinition& WithTargetAction(Aws::String&& value) { SetTargetAction(std::move(value)); return *this;}
168 
173  inline WebhookDefinition& WithTargetAction(const char* value) { SetTargetAction(value); return *this;}
174 
175 
181  inline const Aws::Vector<WebhookFilterRule>& GetFilters() const{ return m_filters; }
182 
188  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
189 
195  inline void SetFilters(const Aws::Vector<WebhookFilterRule>& value) { m_filtersHasBeenSet = true; m_filters = value; }
196 
202  inline void SetFilters(Aws::Vector<WebhookFilterRule>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
203 
209  inline WebhookDefinition& WithFilters(const Aws::Vector<WebhookFilterRule>& value) { SetFilters(value); return *this;}
210 
216  inline WebhookDefinition& WithFilters(Aws::Vector<WebhookFilterRule>&& value) { SetFilters(std::move(value)); return *this;}
217 
223  inline WebhookDefinition& AddFilters(const WebhookFilterRule& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
224 
230  inline WebhookDefinition& AddFilters(WebhookFilterRule&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
231 
232 
243  inline const WebhookAuthenticationType& GetAuthentication() const{ return m_authentication; }
244 
255  inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
256 
267  inline void SetAuthentication(const WebhookAuthenticationType& value) { m_authenticationHasBeenSet = true; m_authentication = value; }
268 
279  inline void SetAuthentication(WebhookAuthenticationType&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); }
280 
291  inline WebhookDefinition& WithAuthentication(const WebhookAuthenticationType& value) { SetAuthentication(value); return *this;}
292 
303  inline WebhookDefinition& WithAuthentication(WebhookAuthenticationType&& value) { SetAuthentication(std::move(value)); return *this;}
304 
305 
313  inline const WebhookAuthConfiguration& GetAuthenticationConfiguration() const{ return m_authenticationConfiguration; }
314 
322  inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
323 
331  inline void SetAuthenticationConfiguration(const WebhookAuthConfiguration& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = value; }
332 
340  inline void SetAuthenticationConfiguration(WebhookAuthConfiguration&& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = std::move(value); }
341 
349  inline WebhookDefinition& WithAuthenticationConfiguration(const WebhookAuthConfiguration& value) { SetAuthenticationConfiguration(value); return *this;}
350 
358  inline WebhookDefinition& WithAuthenticationConfiguration(WebhookAuthConfiguration&& value) { SetAuthenticationConfiguration(std::move(value)); return *this;}
359 
360  private:
361 
362  Aws::String m_name;
363  bool m_nameHasBeenSet;
364 
365  Aws::String m_targetPipeline;
366  bool m_targetPipelineHasBeenSet;
367 
368  Aws::String m_targetAction;
369  bool m_targetActionHasBeenSet;
370 
372  bool m_filtersHasBeenSet;
373 
374  WebhookAuthenticationType m_authentication;
375  bool m_authenticationHasBeenSet;
376 
377  WebhookAuthConfiguration m_authenticationConfiguration;
378  bool m_authenticationConfigurationHasBeenSet;
379  };
380 
381 } // namespace Model
382 } // namespace CodePipeline
383 } // namespace Aws
WebhookFilterRule.h
Aws::CodePipeline::Model::WebhookDefinition::WithTargetPipeline
WebhookDefinition & WithTargetPipeline(const Aws::String &value)
Definition: WebhookDefinition.h:114
Aws::CodePipeline::Model::WebhookDefinition::WithFilters
WebhookDefinition & WithFilters(const Aws::Vector< WebhookFilterRule > &value)
Definition: WebhookDefinition.h:209
Aws::CodePipeline::Model::WebhookDefinition::SetName
void SetName(const Aws::String &value)
Definition: WebhookDefinition.h:58
Aws::CodePipeline::Model::WebhookAuthConfiguration
Definition: WebhookAuthConfiguration.h:33
Aws::CodePipeline::Model::WebhookDefinition::SetFilters
void SetFilters(const Aws::Vector< WebhookFilterRule > &value)
Definition: WebhookDefinition.h:195
Aws::CodePipeline::Model::WebhookDefinition::AddFilters
WebhookDefinition & AddFilters(const WebhookFilterRule &value)
Definition: WebhookDefinition.h:223
Aws::CodePipeline::Model::WebhookDefinition::TargetPipelineHasBeenSet
bool TargetPipelineHasBeenSet() const
Definition: WebhookDefinition.h:94
Aws::CodePipeline::Model::WebhookDefinition::SetAuthenticationConfiguration
void SetAuthenticationConfiguration(const WebhookAuthConfiguration &value)
Definition: WebhookDefinition.h:331
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
Aws::CodePipeline::Model::WebhookDefinition::WithTargetPipeline
WebhookDefinition & WithTargetPipeline(const char *value)
Definition: WebhookDefinition.h:124
Aws::CodePipeline::Model::WebhookDefinition::WithAuthentication
WebhookDefinition & WithAuthentication(const WebhookAuthenticationType &value)
Definition: WebhookDefinition.h:291
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodePipeline::Model::WebhookDefinition::WithName
WebhookDefinition & WithName(const char *value)
Definition: WebhookDefinition.h:83
Aws::CodePipeline::Model::WebhookDefinition::GetTargetAction
const Aws::String & GetTargetAction() const
Definition: WebhookDefinition.h:131
AWSVector.h
Aws::CodePipeline::Model::WebhookDefinition::WithTargetAction
WebhookDefinition & WithTargetAction(Aws::String &&value)
Definition: WebhookDefinition.h:167
CodePipeline_EXPORTS.h
Aws::CodePipeline::Model::WebhookDefinition::AddFilters
WebhookDefinition & AddFilters(WebhookFilterRule &&value)
Definition: WebhookDefinition.h:230
Aws::CodePipeline::Model::WebhookDefinition::NameHasBeenSet
bool NameHasBeenSet() const
Definition: WebhookDefinition.h:53
Aws::CodePipeline::Model::WebhookDefinition
Definition: WebhookDefinition.h:37
Aws::CodePipeline::Model::WebhookAuthenticationType
WebhookAuthenticationType
Definition: WebhookAuthenticationType.h:17
Aws::CodePipeline::Model::WebhookDefinition::WithName
WebhookDefinition & WithName(const Aws::String &value)
Definition: WebhookDefinition.h:73
Aws::CodePipeline::Model::WebhookDefinition::SetName
void SetName(const char *value)
Definition: WebhookDefinition.h:68
Aws::CodePipeline::Model::WebhookDefinition::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: WebhookDefinition.h:188
Aws::CodePipeline::Model::WebhookDefinition::WebhookDefinition
WebhookDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::WebhookDefinition::SetAuthentication
void SetAuthentication(WebhookAuthenticationType &&value)
Definition: WebhookDefinition.h:279
Aws::CodePipeline::Model::WebhookDefinition::WebhookDefinition
WebhookDefinition()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::CodePipeline::Model::WebhookDefinition::GetName
const Aws::String & GetName() const
Definition: WebhookDefinition.h:48
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CodePipeline::Model::WebhookDefinition::AuthenticationConfigurationHasBeenSet
bool AuthenticationConfigurationHasBeenSet() const
Definition: WebhookDefinition.h:322
Aws::CodePipeline::Model::WebhookDefinition::SetTargetAction
void SetTargetAction(const Aws::String &value)
Definition: WebhookDefinition.h:143
Aws::CodePipeline::Model::WebhookDefinition::SetTargetAction
void SetTargetAction(Aws::String &&value)
Definition: WebhookDefinition.h:149
Aws::CodePipeline::Model::WebhookDefinition::WithTargetAction
WebhookDefinition & WithTargetAction(const char *value)
Definition: WebhookDefinition.h:173
Aws::CodePipeline::Model::WebhookDefinition::WithTargetPipeline
WebhookDefinition & WithTargetPipeline(Aws::String &&value)
Definition: WebhookDefinition.h:119
Aws::CodePipeline::Model::WebhookDefinition::SetName
void SetName(Aws::String &&value)
Definition: WebhookDefinition.h:63
Aws::CodePipeline::Model::WebhookDefinition::SetTargetPipeline
void SetTargetPipeline(Aws::String &&value)
Definition: WebhookDefinition.h:104
WebhookAuthConfiguration.h
Aws::CodePipeline::Model::WebhookDefinition::WithAuthenticationConfiguration
WebhookDefinition & WithAuthenticationConfiguration(const WebhookAuthConfiguration &value)
Definition: WebhookDefinition.h:349
Aws::CodePipeline::Model::WebhookDefinition::GetAuthentication
const WebhookAuthenticationType & GetAuthentication() const
Definition: WebhookDefinition.h:243
Aws::CodePipeline::Model::WebhookDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodePipeline::Model::WebhookDefinition::WithAuthentication
WebhookDefinition & WithAuthentication(WebhookAuthenticationType &&value)
Definition: WebhookDefinition.h:303
Aws::CodePipeline::Model::WebhookDefinition::operator=
WebhookDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CodePipeline::Model::WebhookDefinition::SetAuthentication
void SetAuthentication(const WebhookAuthenticationType &value)
Definition: WebhookDefinition.h:267
Aws::CodePipeline::Model::WebhookDefinition::GetFilters
const Aws::Vector< WebhookFilterRule > & GetFilters() const
Definition: WebhookDefinition.h:181
WebhookAuthenticationType.h
Aws::CodePipeline::Model::WebhookDefinition::SetTargetPipeline
void SetTargetPipeline(const Aws::String &value)
Definition: WebhookDefinition.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodePipeline::Model::WebhookDefinition::AuthenticationHasBeenSet
bool AuthenticationHasBeenSet() const
Definition: WebhookDefinition.h:255
Aws::CodePipeline::Model::WebhookDefinition::WithAuthenticationConfiguration
WebhookDefinition & WithAuthenticationConfiguration(WebhookAuthConfiguration &&value)
Definition: WebhookDefinition.h:358
Aws::CodePipeline::Model::WebhookDefinition::SetTargetPipeline
void SetTargetPipeline(const char *value)
Definition: WebhookDefinition.h:109
Aws::CodePipeline::Model::WebhookDefinition::SetFilters
void SetFilters(Aws::Vector< WebhookFilterRule > &&value)
Definition: WebhookDefinition.h:202
Aws::CodePipeline::Model::WebhookDefinition::WithName
WebhookDefinition & WithName(Aws::String &&value)
Definition: WebhookDefinition.h:78
Aws::CodePipeline::Model::WebhookDefinition::GetTargetPipeline
const Aws::String & GetTargetPipeline() const
Definition: WebhookDefinition.h:89
Aws::CodePipeline::Model::WebhookDefinition::TargetActionHasBeenSet
bool TargetActionHasBeenSet() const
Definition: WebhookDefinition.h:137
Aws::CodePipeline::Model::WebhookDefinition::GetAuthenticationConfiguration
const WebhookAuthConfiguration & GetAuthenticationConfiguration() const
Definition: WebhookDefinition.h:313
Aws::CodePipeline::Model::WebhookDefinition::SetAuthenticationConfiguration
void SetAuthenticationConfiguration(WebhookAuthConfiguration &&value)
Definition: WebhookDefinition.h:340
Aws::CodePipeline::Model::WebhookDefinition::SetTargetAction
void SetTargetAction(const char *value)
Definition: WebhookDefinition.h:155
Aws::CodePipeline::Model::WebhookDefinition::WithFilters
WebhookDefinition & WithFilters(Aws::Vector< WebhookFilterRule > &&value)
Definition: WebhookDefinition.h:216
Aws::CodePipeline::Model::WebhookDefinition::WithTargetAction
WebhookDefinition & WithTargetAction(const Aws::String &value)
Definition: WebhookDefinition.h:161
Aws::CodePipeline::Model::WebhookFilterRule
Definition: WebhookFilterRule.h:33