AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Webhook.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codebuild/model/WebhookBuildType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/codebuild/model/ScopeConfiguration.h>
13#include <aws/codebuild/model/WebhookFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeBuild
27{
28namespace Model
29{
30
37 class Webhook
38 {
39 public:
40 AWS_CODEBUILD_API Webhook();
41 AWS_CODEBUILD_API Webhook(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Webhook& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetUrl() const{ return m_url; }
51 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
52 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
53 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
54 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
55 inline Webhook& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
56 inline Webhook& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
57 inline Webhook& WithUrl(const char* value) { SetUrl(value); return *this;}
59
61
64 inline const Aws::String& GetPayloadUrl() const{ return m_payloadUrl; }
65 inline bool PayloadUrlHasBeenSet() const { return m_payloadUrlHasBeenSet; }
66 inline void SetPayloadUrl(const Aws::String& value) { m_payloadUrlHasBeenSet = true; m_payloadUrl = value; }
67 inline void SetPayloadUrl(Aws::String&& value) { m_payloadUrlHasBeenSet = true; m_payloadUrl = std::move(value); }
68 inline void SetPayloadUrl(const char* value) { m_payloadUrlHasBeenSet = true; m_payloadUrl.assign(value); }
69 inline Webhook& WithPayloadUrl(const Aws::String& value) { SetPayloadUrl(value); return *this;}
70 inline Webhook& WithPayloadUrl(Aws::String&& value) { SetPayloadUrl(std::move(value)); return *this;}
71 inline Webhook& WithPayloadUrl(const char* value) { SetPayloadUrl(value); return *this;}
73
75
79 inline const Aws::String& GetSecret() const{ return m_secret; }
80 inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; }
81 inline void SetSecret(const Aws::String& value) { m_secretHasBeenSet = true; m_secret = value; }
82 inline void SetSecret(Aws::String&& value) { m_secretHasBeenSet = true; m_secret = std::move(value); }
83 inline void SetSecret(const char* value) { m_secretHasBeenSet = true; m_secret.assign(value); }
84 inline Webhook& WithSecret(const Aws::String& value) { SetSecret(value); return *this;}
85 inline Webhook& WithSecret(Aws::String&& value) { SetSecret(std::move(value)); return *this;}
86 inline Webhook& WithSecret(const char* value) { SetSecret(value); return *this;}
88
90
97 inline const Aws::String& GetBranchFilter() const{ return m_branchFilter; }
98 inline bool BranchFilterHasBeenSet() const { return m_branchFilterHasBeenSet; }
99 inline void SetBranchFilter(const Aws::String& value) { m_branchFilterHasBeenSet = true; m_branchFilter = value; }
100 inline void SetBranchFilter(Aws::String&& value) { m_branchFilterHasBeenSet = true; m_branchFilter = std::move(value); }
101 inline void SetBranchFilter(const char* value) { m_branchFilterHasBeenSet = true; m_branchFilter.assign(value); }
102 inline Webhook& WithBranchFilter(const Aws::String& value) { SetBranchFilter(value); return *this;}
103 inline Webhook& WithBranchFilter(Aws::String&& value) { SetBranchFilter(std::move(value)); return *this;}
104 inline Webhook& WithBranchFilter(const char* value) { SetBranchFilter(value); return *this;}
106
108
116 inline const Aws::Vector<Aws::Vector<WebhookFilter>>& GetFilterGroups() const{ return m_filterGroups; }
117 inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; }
118 inline void SetFilterGroups(const Aws::Vector<Aws::Vector<WebhookFilter>>& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = value; }
119 inline void SetFilterGroups(Aws::Vector<Aws::Vector<WebhookFilter>>&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = std::move(value); }
120 inline Webhook& WithFilterGroups(const Aws::Vector<Aws::Vector<WebhookFilter>>& value) { SetFilterGroups(value); return *this;}
121 inline Webhook& WithFilterGroups(Aws::Vector<Aws::Vector<WebhookFilter>>&& value) { SetFilterGroups(std::move(value)); return *this;}
122 inline Webhook& AddFilterGroups(const Aws::Vector<WebhookFilter>& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(value); return *this; }
123 inline Webhook& AddFilterGroups(Aws::Vector<WebhookFilter>&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(std::move(value)); return *this; }
125
127
130 inline const WebhookBuildType& GetBuildType() const{ return m_buildType; }
131 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
132 inline void SetBuildType(const WebhookBuildType& value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
133 inline void SetBuildType(WebhookBuildType&& value) { m_buildTypeHasBeenSet = true; m_buildType = std::move(value); }
134 inline Webhook& WithBuildType(const WebhookBuildType& value) { SetBuildType(value); return *this;}
135 inline Webhook& WithBuildType(WebhookBuildType&& value) { SetBuildType(std::move(value)); return *this;}
137
139
146 inline bool GetManualCreation() const{ return m_manualCreation; }
147 inline bool ManualCreationHasBeenSet() const { return m_manualCreationHasBeenSet; }
148 inline void SetManualCreation(bool value) { m_manualCreationHasBeenSet = true; m_manualCreation = value; }
149 inline Webhook& WithManualCreation(bool value) { SetManualCreation(value); return *this;}
151
153
157 inline const Aws::Utils::DateTime& GetLastModifiedSecret() const{ return m_lastModifiedSecret; }
158 inline bool LastModifiedSecretHasBeenSet() const { return m_lastModifiedSecretHasBeenSet; }
159 inline void SetLastModifiedSecret(const Aws::Utils::DateTime& value) { m_lastModifiedSecretHasBeenSet = true; m_lastModifiedSecret = value; }
160 inline void SetLastModifiedSecret(Aws::Utils::DateTime&& value) { m_lastModifiedSecretHasBeenSet = true; m_lastModifiedSecret = std::move(value); }
161 inline Webhook& WithLastModifiedSecret(const Aws::Utils::DateTime& value) { SetLastModifiedSecret(value); return *this;}
162 inline Webhook& WithLastModifiedSecret(Aws::Utils::DateTime&& value) { SetLastModifiedSecret(std::move(value)); return *this;}
164
166
171 inline const ScopeConfiguration& GetScopeConfiguration() const{ return m_scopeConfiguration; }
172 inline bool ScopeConfigurationHasBeenSet() const { return m_scopeConfigurationHasBeenSet; }
173 inline void SetScopeConfiguration(const ScopeConfiguration& value) { m_scopeConfigurationHasBeenSet = true; m_scopeConfiguration = value; }
174 inline void SetScopeConfiguration(ScopeConfiguration&& value) { m_scopeConfigurationHasBeenSet = true; m_scopeConfiguration = std::move(value); }
175 inline Webhook& WithScopeConfiguration(const ScopeConfiguration& value) { SetScopeConfiguration(value); return *this;}
176 inline Webhook& WithScopeConfiguration(ScopeConfiguration&& value) { SetScopeConfiguration(std::move(value)); return *this;}
178 private:
179
180 Aws::String m_url;
181 bool m_urlHasBeenSet = false;
182
183 Aws::String m_payloadUrl;
184 bool m_payloadUrlHasBeenSet = false;
185
186 Aws::String m_secret;
187 bool m_secretHasBeenSet = false;
188
189 Aws::String m_branchFilter;
190 bool m_branchFilterHasBeenSet = false;
191
193 bool m_filterGroupsHasBeenSet = false;
194
195 WebhookBuildType m_buildType;
196 bool m_buildTypeHasBeenSet = false;
197
198 bool m_manualCreation;
199 bool m_manualCreationHasBeenSet = false;
200
201 Aws::Utils::DateTime m_lastModifiedSecret;
202 bool m_lastModifiedSecretHasBeenSet = false;
203
204 ScopeConfiguration m_scopeConfiguration;
205 bool m_scopeConfigurationHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace CodeBuild
210} // namespace Aws
void SetFilterGroups(Aws::Vector< Aws::Vector< WebhookFilter > > &&value)
Definition Webhook.h:119
Webhook & WithManualCreation(bool value)
Definition Webhook.h:149
void SetBranchFilter(const Aws::String &value)
Definition Webhook.h:99
Webhook & WithLastModifiedSecret(Aws::Utils::DateTime &&value)
Definition Webhook.h:162
void SetBranchFilter(Aws::String &&value)
Definition Webhook.h:100
AWS_CODEBUILD_API Webhook()
void SetUrl(const Aws::String &value)
Definition Webhook.h:52
Webhook & WithBuildType(WebhookBuildType &&value)
Definition Webhook.h:135
void SetBuildType(const WebhookBuildType &value)
Definition Webhook.h:132
Webhook & WithBranchFilter(const char *value)
Definition Webhook.h:104
Webhook & WithPayloadUrl(const char *value)
Definition Webhook.h:71
Webhook & WithFilterGroups(Aws::Vector< Aws::Vector< WebhookFilter > > &&value)
Definition Webhook.h:121
bool SecretHasBeenSet() const
Definition Webhook.h:80
void SetFilterGroups(const Aws::Vector< Aws::Vector< WebhookFilter > > &value)
Definition Webhook.h:118
const Aws::String & GetSecret() const
Definition Webhook.h:79
bool FilterGroupsHasBeenSet() const
Definition Webhook.h:117
Webhook & WithPayloadUrl(Aws::String &&value)
Definition Webhook.h:70
Webhook & AddFilterGroups(const Aws::Vector< WebhookFilter > &value)
Definition Webhook.h:122
void SetSecret(Aws::String &&value)
Definition Webhook.h:82
Webhook & AddFilterGroups(Aws::Vector< WebhookFilter > &&value)
Definition Webhook.h:123
const Aws::String & GetBranchFilter() const
Definition Webhook.h:97
void SetPayloadUrl(Aws::String &&value)
Definition Webhook.h:67
void SetBranchFilter(const char *value)
Definition Webhook.h:101
bool PayloadUrlHasBeenSet() const
Definition Webhook.h:65
Webhook & WithUrl(const Aws::String &value)
Definition Webhook.h:55
bool ScopeConfigurationHasBeenSet() const
Definition Webhook.h:172
AWS_CODEBUILD_API Webhook(Aws::Utils::Json::JsonView jsonValue)
void SetManualCreation(bool value)
Definition Webhook.h:148
Webhook & WithBranchFilter(const Aws::String &value)
Definition Webhook.h:102
void SetLastModifiedSecret(const Aws::Utils::DateTime &value)
Definition Webhook.h:159
void SetUrl(Aws::String &&value)
Definition Webhook.h:53
Webhook & WithSecret(Aws::String &&value)
Definition Webhook.h:85
bool ManualCreationHasBeenSet() const
Definition Webhook.h:147
Webhook & WithBuildType(const WebhookBuildType &value)
Definition Webhook.h:134
void SetLastModifiedSecret(Aws::Utils::DateTime &&value)
Definition Webhook.h:160
Webhook & WithLastModifiedSecret(const Aws::Utils::DateTime &value)
Definition Webhook.h:161
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
Definition Webhook.h:116
void SetBuildType(WebhookBuildType &&value)
Definition Webhook.h:133
const Aws::String & GetPayloadUrl() const
Definition Webhook.h:64
Webhook & WithUrl(Aws::String &&value)
Definition Webhook.h:56
Webhook & WithPayloadUrl(const Aws::String &value)
Definition Webhook.h:69
const ScopeConfiguration & GetScopeConfiguration() const
Definition Webhook.h:171
void SetScopeConfiguration(ScopeConfiguration &&value)
Definition Webhook.h:174
Webhook & WithScopeConfiguration(ScopeConfiguration &&value)
Definition Webhook.h:176
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
Webhook & WithScopeConfiguration(const ScopeConfiguration &value)
Definition Webhook.h:175
AWS_CODEBUILD_API Webhook & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUrl(const char *value)
Definition Webhook.h:54
Webhook & WithBranchFilter(Aws::String &&value)
Definition Webhook.h:103
Webhook & WithUrl(const char *value)
Definition Webhook.h:57
const Aws::Utils::DateTime & GetLastModifiedSecret() const
Definition Webhook.h:157
Webhook & WithSecret(const Aws::String &value)
Definition Webhook.h:84
void SetSecret(const Aws::String &value)
Definition Webhook.h:81
void SetScopeConfiguration(const ScopeConfiguration &value)
Definition Webhook.h:173
bool BranchFilterHasBeenSet() const
Definition Webhook.h:98
void SetPayloadUrl(const Aws::String &value)
Definition Webhook.h:66
void SetSecret(const char *value)
Definition Webhook.h:83
void SetPayloadUrl(const char *value)
Definition Webhook.h:68
const WebhookBuildType & GetBuildType() const
Definition Webhook.h:130
Webhook & WithFilterGroups(const Aws::Vector< Aws::Vector< WebhookFilter > > &value)
Definition Webhook.h:120
bool LastModifiedSecretHasBeenSet() const
Definition Webhook.h:158
Webhook & WithSecret(const char *value)
Definition Webhook.h:86
bool BuildTypeHasBeenSet() const
Definition Webhook.h:131
const Aws::String & GetUrl() const
Definition Webhook.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue