AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/WebhookStatus.h>
14#include <aws/codebuild/model/WebhookFilter.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CodeBuild
28{
29namespace Model
30{
31
38 class Webhook
39 {
40 public:
41 AWS_CODEBUILD_API Webhook() = default;
42 AWS_CODEBUILD_API Webhook(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEBUILD_API Webhook& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetUrl() const { return m_url; }
52 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
53 template<typename UrlT = Aws::String>
54 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
55 template<typename UrlT = Aws::String>
56 Webhook& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
58
60
63 inline const Aws::String& GetPayloadUrl() const { return m_payloadUrl; }
64 inline bool PayloadUrlHasBeenSet() const { return m_payloadUrlHasBeenSet; }
65 template<typename PayloadUrlT = Aws::String>
66 void SetPayloadUrl(PayloadUrlT&& value) { m_payloadUrlHasBeenSet = true; m_payloadUrl = std::forward<PayloadUrlT>(value); }
67 template<typename PayloadUrlT = Aws::String>
68 Webhook& WithPayloadUrl(PayloadUrlT&& value) { SetPayloadUrl(std::forward<PayloadUrlT>(value)); return *this;}
70
72
76 inline const Aws::String& GetSecret() const { return m_secret; }
77 inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; }
78 template<typename SecretT = Aws::String>
79 void SetSecret(SecretT&& value) { m_secretHasBeenSet = true; m_secret = std::forward<SecretT>(value); }
80 template<typename SecretT = Aws::String>
81 Webhook& WithSecret(SecretT&& value) { SetSecret(std::forward<SecretT>(value)); return *this;}
83
85
92 inline const Aws::String& GetBranchFilter() const { return m_branchFilter; }
93 inline bool BranchFilterHasBeenSet() const { return m_branchFilterHasBeenSet; }
94 template<typename BranchFilterT = Aws::String>
95 void SetBranchFilter(BranchFilterT&& value) { m_branchFilterHasBeenSet = true; m_branchFilter = std::forward<BranchFilterT>(value); }
96 template<typename BranchFilterT = Aws::String>
97 Webhook& WithBranchFilter(BranchFilterT&& value) { SetBranchFilter(std::forward<BranchFilterT>(value)); return *this;}
99
101
109 inline const Aws::Vector<Aws::Vector<WebhookFilter>>& GetFilterGroups() const { return m_filterGroups; }
110 inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; }
111 template<typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
112 void SetFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = std::forward<FilterGroupsT>(value); }
113 template<typename FilterGroupsT = Aws::Vector<Aws::Vector<WebhookFilter>>>
114 Webhook& WithFilterGroups(FilterGroupsT&& value) { SetFilterGroups(std::forward<FilterGroupsT>(value)); return *this;}
115 template<typename FilterGroupsT = Aws::Vector<WebhookFilter>>
116 Webhook& AddFilterGroups(FilterGroupsT&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.emplace_back(std::forward<FilterGroupsT>(value)); return *this; }
118
120
129 inline WebhookBuildType GetBuildType() const { return m_buildType; }
130 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
131 inline void SetBuildType(WebhookBuildType value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
132 inline Webhook& WithBuildType(WebhookBuildType value) { SetBuildType(value); return *this;}
134
136
143 inline bool GetManualCreation() const { return m_manualCreation; }
144 inline bool ManualCreationHasBeenSet() const { return m_manualCreationHasBeenSet; }
145 inline void SetManualCreation(bool value) { m_manualCreationHasBeenSet = true; m_manualCreation = value; }
146 inline Webhook& WithManualCreation(bool value) { SetManualCreation(value); return *this;}
148
150
154 inline const Aws::Utils::DateTime& GetLastModifiedSecret() const { return m_lastModifiedSecret; }
155 inline bool LastModifiedSecretHasBeenSet() const { return m_lastModifiedSecretHasBeenSet; }
156 template<typename LastModifiedSecretT = Aws::Utils::DateTime>
157 void SetLastModifiedSecret(LastModifiedSecretT&& value) { m_lastModifiedSecretHasBeenSet = true; m_lastModifiedSecret = std::forward<LastModifiedSecretT>(value); }
158 template<typename LastModifiedSecretT = Aws::Utils::DateTime>
159 Webhook& WithLastModifiedSecret(LastModifiedSecretT&& value) { SetLastModifiedSecret(std::forward<LastModifiedSecretT>(value)); return *this;}
161
163
168 inline const ScopeConfiguration& GetScopeConfiguration() const { return m_scopeConfiguration; }
169 inline bool ScopeConfigurationHasBeenSet() const { return m_scopeConfigurationHasBeenSet; }
170 template<typename ScopeConfigurationT = ScopeConfiguration>
171 void SetScopeConfiguration(ScopeConfigurationT&& value) { m_scopeConfigurationHasBeenSet = true; m_scopeConfiguration = std::forward<ScopeConfigurationT>(value); }
172 template<typename ScopeConfigurationT = ScopeConfiguration>
173 Webhook& WithScopeConfiguration(ScopeConfigurationT&& value) { SetScopeConfiguration(std::forward<ScopeConfigurationT>(value)); return *this;}
175
177
184 inline WebhookStatus GetStatus() const { return m_status; }
185 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
186 inline void SetStatus(WebhookStatus value) { m_statusHasBeenSet = true; m_status = value; }
187 inline Webhook& WithStatus(WebhookStatus value) { SetStatus(value); return *this;}
189
191
194 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
195 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
196 template<typename StatusMessageT = Aws::String>
197 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
198 template<typename StatusMessageT = Aws::String>
199 Webhook& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
201 private:
202
203 Aws::String m_url;
204 bool m_urlHasBeenSet = false;
205
206 Aws::String m_payloadUrl;
207 bool m_payloadUrlHasBeenSet = false;
208
209 Aws::String m_secret;
210 bool m_secretHasBeenSet = false;
211
212 Aws::String m_branchFilter;
213 bool m_branchFilterHasBeenSet = false;
214
216 bool m_filterGroupsHasBeenSet = false;
217
219 bool m_buildTypeHasBeenSet = false;
220
221 bool m_manualCreation{false};
222 bool m_manualCreationHasBeenSet = false;
223
224 Aws::Utils::DateTime m_lastModifiedSecret{};
225 bool m_lastModifiedSecretHasBeenSet = false;
226
227 ScopeConfiguration m_scopeConfiguration;
228 bool m_scopeConfigurationHasBeenSet = false;
229
231 bool m_statusHasBeenSet = false;
232
233 Aws::String m_statusMessage;
234 bool m_statusMessageHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace CodeBuild
239} // namespace Aws
void SetSecret(SecretT &&value)
Definition Webhook.h:79
Webhook & WithManualCreation(bool value)
Definition Webhook.h:146
WebhookStatus GetStatus() const
Definition Webhook.h:184
Webhook & WithBranchFilter(BranchFilterT &&value)
Definition Webhook.h:97
void SetScopeConfiguration(ScopeConfigurationT &&value)
Definition Webhook.h:171
bool SecretHasBeenSet() const
Definition Webhook.h:77
const Aws::String & GetSecret() const
Definition Webhook.h:76
void SetStatus(WebhookStatus value)
Definition Webhook.h:186
Webhook & WithSecret(SecretT &&value)
Definition Webhook.h:81
bool FilterGroupsHasBeenSet() const
Definition Webhook.h:110
void SetPayloadUrl(PayloadUrlT &&value)
Definition Webhook.h:66
Webhook & WithFilterGroups(FilterGroupsT &&value)
Definition Webhook.h:114
void SetLastModifiedSecret(LastModifiedSecretT &&value)
Definition Webhook.h:157
WebhookBuildType GetBuildType() const
Definition Webhook.h:129
bool StatusMessageHasBeenSet() const
Definition Webhook.h:195
const Aws::String & GetBranchFilter() const
Definition Webhook.h:92
const Aws::String & GetStatusMessage() const
Definition Webhook.h:194
void SetUrl(UrlT &&value)
Definition Webhook.h:54
Webhook & WithPayloadUrl(PayloadUrlT &&value)
Definition Webhook.h:68
Webhook & WithScopeConfiguration(ScopeConfigurationT &&value)
Definition Webhook.h:173
Webhook & WithStatusMessage(StatusMessageT &&value)
Definition Webhook.h:199
bool PayloadUrlHasBeenSet() const
Definition Webhook.h:64
bool ScopeConfigurationHasBeenSet() const
Definition Webhook.h:169
AWS_CODEBUILD_API Webhook(Aws::Utils::Json::JsonView jsonValue)
void SetManualCreation(bool value)
Definition Webhook.h:145
bool ManualCreationHasBeenSet() const
Definition Webhook.h:144
Webhook & WithStatus(WebhookStatus value)
Definition Webhook.h:187
Webhook & WithUrl(UrlT &&value)
Definition Webhook.h:56
void SetBuildType(WebhookBuildType value)
Definition Webhook.h:131
const Aws::Vector< Aws::Vector< WebhookFilter > > & GetFilterGroups() const
Definition Webhook.h:109
const Aws::String & GetPayloadUrl() const
Definition Webhook.h:63
void SetBranchFilter(BranchFilterT &&value)
Definition Webhook.h:95
void SetStatusMessage(StatusMessageT &&value)
Definition Webhook.h:197
const ScopeConfiguration & GetScopeConfiguration() const
Definition Webhook.h:168
Webhook & WithBuildType(WebhookBuildType value)
Definition Webhook.h:132
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API Webhook()=default
AWS_CODEBUILD_API Webhook & operator=(Aws::Utils::Json::JsonView jsonValue)
Webhook & AddFilterGroups(FilterGroupsT &&value)
Definition Webhook.h:116
const Aws::Utils::DateTime & GetLastModifiedSecret() const
Definition Webhook.h:154
Webhook & WithLastModifiedSecret(LastModifiedSecretT &&value)
Definition Webhook.h:159
bool BranchFilterHasBeenSet() const
Definition Webhook.h:93
void SetFilterGroups(FilterGroupsT &&value)
Definition Webhook.h:112
bool LastModifiedSecretHasBeenSet() const
Definition Webhook.h:155
bool BuildTypeHasBeenSet() const
Definition Webhook.h:130
const Aws::String & GetUrl() const
Definition Webhook.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue