AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline WebhookDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline WebhookDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline WebhookDefinition& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetTargetPipeline() const{ return m_targetPipeline; }
64 inline bool TargetPipelineHasBeenSet() const { return m_targetPipelineHasBeenSet; }
65 inline void SetTargetPipeline(const Aws::String& value) { m_targetPipelineHasBeenSet = true; m_targetPipeline = value; }
66 inline void SetTargetPipeline(Aws::String&& value) { m_targetPipelineHasBeenSet = true; m_targetPipeline = std::move(value); }
67 inline void SetTargetPipeline(const char* value) { m_targetPipelineHasBeenSet = true; m_targetPipeline.assign(value); }
68 inline WebhookDefinition& WithTargetPipeline(const Aws::String& value) { SetTargetPipeline(value); return *this;}
69 inline WebhookDefinition& WithTargetPipeline(Aws::String&& value) { SetTargetPipeline(std::move(value)); return *this;}
70 inline WebhookDefinition& WithTargetPipeline(const char* value) { SetTargetPipeline(value); return *this;}
72
74
78 inline const Aws::String& GetTargetAction() const{ return m_targetAction; }
79 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
80 inline void SetTargetAction(const Aws::String& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
81 inline void SetTargetAction(Aws::String&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
82 inline void SetTargetAction(const char* value) { m_targetActionHasBeenSet = true; m_targetAction.assign(value); }
83 inline WebhookDefinition& WithTargetAction(const Aws::String& value) { SetTargetAction(value); return *this;}
84 inline WebhookDefinition& WithTargetAction(Aws::String&& value) { SetTargetAction(std::move(value)); return *this;}
85 inline WebhookDefinition& WithTargetAction(const char* value) { SetTargetAction(value); return *this;}
87
89
94 inline const Aws::Vector<WebhookFilterRule>& GetFilters() const{ return m_filters; }
95 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
96 inline void SetFilters(const Aws::Vector<WebhookFilterRule>& value) { m_filtersHasBeenSet = true; m_filters = value; }
97 inline void SetFilters(Aws::Vector<WebhookFilterRule>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
98 inline WebhookDefinition& WithFilters(const Aws::Vector<WebhookFilterRule>& value) { SetFilters(value); return *this;}
99 inline WebhookDefinition& WithFilters(Aws::Vector<WebhookFilterRule>&& value) { SetFilters(std::move(value)); return *this;}
100 inline WebhookDefinition& AddFilters(const WebhookFilterRule& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
101 inline WebhookDefinition& AddFilters(WebhookFilterRule&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
103
105
124 inline const WebhookAuthenticationType& GetAuthentication() const{ return m_authentication; }
125 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
126 inline void SetAuthentication(const WebhookAuthenticationType& value) { m_authenticationHasBeenSet = true; m_authentication = value; }
127 inline void SetAuthentication(WebhookAuthenticationType&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); }
129 inline WebhookDefinition& WithAuthentication(WebhookAuthenticationType&& value) { SetAuthentication(std::move(value)); return *this;}
131
133
140 inline const WebhookAuthConfiguration& GetAuthenticationConfiguration() const{ return m_authenticationConfiguration; }
141 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
142 inline void SetAuthenticationConfiguration(const WebhookAuthConfiguration& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = value; }
143 inline void SetAuthenticationConfiguration(WebhookAuthConfiguration&& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = std::move(value); }
147 private:
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 Aws::String m_targetPipeline;
153 bool m_targetPipelineHasBeenSet = false;
154
155 Aws::String m_targetAction;
156 bool m_targetActionHasBeenSet = false;
157
159 bool m_filtersHasBeenSet = false;
160
161 WebhookAuthenticationType m_authentication;
162 bool m_authenticationHasBeenSet = false;
163
164 WebhookAuthConfiguration m_authenticationConfiguration;
165 bool m_authenticationConfigurationHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace CodePipeline
170} // namespace Aws
AWS_CODEPIPELINE_API WebhookDefinition(Aws::Utils::Json::JsonView jsonValue)
WebhookDefinition & WithName(Aws::String &&value)
void SetAuthentication(const WebhookAuthenticationType &value)
WebhookDefinition & WithTargetAction(Aws::String &&value)
WebhookDefinition & WithName(const Aws::String &value)
void SetTargetAction(const Aws::String &value)
AWS_CODEPIPELINE_API WebhookDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
WebhookDefinition & WithTargetPipeline(Aws::String &&value)
void SetAuthentication(WebhookAuthenticationType &&value)
WebhookDefinition & WithTargetAction(const Aws::String &value)
WebhookDefinition & WithAuthentication(const WebhookAuthenticationType &value)
void SetFilters(const Aws::Vector< WebhookFilterRule > &value)
WebhookDefinition & WithAuthenticationConfiguration(const WebhookAuthConfiguration &value)
void SetAuthenticationConfiguration(const WebhookAuthConfiguration &value)
WebhookDefinition & WithFilters(const Aws::Vector< WebhookFilterRule > &value)
const Aws::Vector< WebhookFilterRule > & GetFilters() const
WebhookDefinition & AddFilters(WebhookFilterRule &&value)
const WebhookAuthenticationType & GetAuthentication() const
WebhookDefinition & AddFilters(const WebhookFilterRule &value)
WebhookDefinition & WithAuthentication(WebhookAuthenticationType &&value)
WebhookDefinition & WithTargetPipeline(const Aws::String &value)
WebhookDefinition & WithAuthenticationConfiguration(WebhookAuthConfiguration &&value)
const Aws::String & GetTargetPipeline() const
WebhookDefinition & WithName(const char *value)
WebhookDefinition & WithFilters(Aws::Vector< WebhookFilterRule > &&value)
WebhookDefinition & WithTargetPipeline(const char *value)
void SetAuthenticationConfiguration(WebhookAuthConfiguration &&value)
void SetTargetPipeline(const Aws::String &value)
void SetFilters(Aws::Vector< WebhookFilterRule > &&value)
WebhookDefinition & WithTargetAction(const char *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