|
5 | 5 |
|
6 | 6 | import org.gitlab4j.api.utils.JacksonJson; |
7 | 7 |
|
8 | | -import com.fasterxml.jackson.annotation.JsonIgnore; |
9 | | - |
10 | 8 | public class ProjectHook { |
11 | 9 |
|
12 | 10 | private Boolean buildEvents; |
@@ -181,125 +179,65 @@ public String getPushEventsBranchFilter() { |
181 | 179 | public void setPushEventsBranchFilter(String pushEventsBranchFilter) { |
182 | 180 | this.pushEventsBranchFilter = pushEventsBranchFilter; |
183 | 181 | } |
184 | | - |
185 | | - /** |
186 | | - * @return the do build events flag |
187 | | - * @deprecated As of release 4.1.0, replaced by {@link #getBuildEvents()} |
188 | | - */ |
189 | | - @Deprecated |
190 | | - @JsonIgnore |
191 | | - public Boolean getBuild_events() { |
192 | | - return buildEvents; |
| 182 | + |
| 183 | + public ProjectHook withIssuesEvents(Boolean issuesEvents) { |
| 184 | + this.issuesEvents = issuesEvents; |
| 185 | + return (this); |
193 | 186 | } |
194 | 187 |
|
195 | | - /** |
196 | | - * @param buildEvents the do build events flag |
197 | | - * @deprecated As of release 4.1.0, replaced by {@link #setBuildEvents(Boolean)} |
198 | | - */ |
199 | | - @Deprecated |
200 | | - @JsonIgnore |
201 | | - public void setBuild_events(Boolean buildEvents) { |
202 | | - this.buildEvents = buildEvents; |
| 188 | + public ProjectHook withMergeRequestsEvents(Boolean mergeRequestsEvents) { |
| 189 | + this.mergeRequestsEvents = mergeRequestsEvents; |
| 190 | + return (this); |
203 | 191 | } |
204 | 192 |
|
205 | | - /** |
206 | | - * @return the enable SSL verification flag |
207 | | - * @deprecated As of release 4.1.0, replaced by {@link #getEnableSslVerification()} |
208 | | - */ |
209 | | - @Deprecated |
210 | | - @JsonIgnore |
211 | | - public Boolean getEnable_ssl_verification() { |
212 | | - return enableSslVerification; |
| 193 | + public ProjectHook withNoteEvents(Boolean noteEvents) { |
| 194 | + this.noteEvents = noteEvents; |
| 195 | + return (this); |
213 | 196 | } |
214 | | - |
215 | | - /** |
216 | | - * @param enableSslVerification the enable SSL verification flag |
217 | | - * @deprecated As of release 4.1.0, replaced by {@link #setEnableSslVerification(Boolean)} |
218 | | - */ |
219 | | - @Deprecated |
220 | | - @JsonIgnore |
221 | | - public void setEnable_ssl_verification(Boolean enableSslVerification) { |
222 | | - this.enableSslVerification = enableSslVerification; |
| 197 | + |
| 198 | + public ProjectHook withJobEvents(Boolean jobEvents) { |
| 199 | + this.jobEvents = jobEvents; |
| 200 | + return (this); |
223 | 201 | } |
224 | 202 |
|
225 | | - /** |
226 | | - * @return the do note events flag |
227 | | - * @deprecated As of release 4.1.0, replaced by {@link #getNoteEvents()} |
228 | | - */ |
229 | | - @Deprecated |
230 | | - @JsonIgnore |
231 | | - public Boolean getNote_events() { |
232 | | - return noteEvents; |
| 203 | + public ProjectHook withPipelineEvents(Boolean pipelineEvents) { |
| 204 | + this.pipelineEvents = pipelineEvents; |
| 205 | + return (this); |
233 | 206 | } |
234 | 207 |
|
235 | | - /** |
236 | | - * @param noteEvents the do note events flag |
237 | | - * @deprecated As of release 4.1.0, replaced by {@link #setNoteEvents(Boolean)} |
238 | | - */ |
239 | | - @Deprecated |
240 | | - @JsonIgnore |
241 | | - public void setNote_events(Boolean noteEvents) { |
242 | | - this.noteEvents = noteEvents; |
| 208 | + public ProjectHook withPushEvents(Boolean pushEvents) { |
| 209 | + this.pushEvents = pushEvents; |
| 210 | + return (this); |
243 | 211 | } |
244 | 212 |
|
245 | | - /** |
246 | | - * @return the do pipeline events flag |
247 | | - * @deprecated As of release 4.1.0, replaced by {@link #getPipelineEvents()} |
248 | | - */ |
249 | | - @Deprecated |
250 | | - @JsonIgnore |
251 | | - public Boolean getPipeline_events() { |
252 | | - return pipelineEvents; |
| 213 | + public ProjectHook withTagPushEvents(Boolean tagPushEvents) { |
| 214 | + this.tagPushEvents = tagPushEvents; |
| 215 | + return (this); |
253 | 216 | } |
254 | 217 |
|
255 | | - /** |
256 | | - * @param pipelineEvents the do pipeline events flag |
257 | | - * @deprecated As of release 4.1.0, replaced by {@link #setPipelineEvents(Boolean)} |
258 | | - */ |
259 | | - @Deprecated |
260 | | - @JsonIgnore |
261 | | - public void setPipeline_events(Boolean pipelineEvents) { |
262 | | - this.pipelineEvents = pipelineEvents; |
| 218 | + public ProjectHook withWikiPageEvents(Boolean wikiPageEvents) { |
| 219 | + this.wikiPageEvents = wikiPageEvents; |
| 220 | + return (this); |
263 | 221 | } |
264 | 222 |
|
265 | | - /** |
266 | | - * @return the do tag push events flag |
267 | | - * @deprecated As of release 4.1.0, replaced by {@link #getTagPushEvents()} |
268 | | - */ |
269 | | - @Deprecated |
270 | | - @JsonIgnore |
271 | | - public Boolean getTag_push_events() { |
272 | | - return tagPushEvents; |
| 223 | + public ProjectHook withRepositoryUpdateEvents(Boolean repositoryUpdateEvents) { |
| 224 | + this.repositoryUpdateEvents = repositoryUpdateEvents; |
| 225 | + return (this); |
273 | 226 | } |
274 | 227 |
|
275 | | - /** |
276 | | - * @param tagPushEvents the do tag push events flag |
277 | | - * @deprecated As of release 4.1.0, replaced by {@link #setTagPushEvents(Boolean)} |
278 | | - */ |
279 | | - @Deprecated |
280 | | - @JsonIgnore |
281 | | - public void setTag_push_events(Boolean tagPushEvents) { |
282 | | - this.tagPushEvents = tagPushEvents; |
| 228 | + public ProjectHook withConfidentialIssuesEvents(Boolean confidentialIssuesEvents) { |
| 229 | + this.confidentialIssuesEvents = confidentialIssuesEvents; |
| 230 | + return (this); |
283 | 231 | } |
284 | 232 |
|
285 | | - /** |
286 | | - * @return the do wiki page events flag |
287 | | - * @deprecated As of release 4.1.0, replaced by {@link #getWikiPageEvents()} |
288 | | - */ |
289 | | - @Deprecated |
290 | | - @JsonIgnore |
291 | | - public Boolean getWiki_page_events() { |
292 | | - return wikiPageEvents; |
| 233 | + public ProjectHook withConfidentialNoteEvents(Boolean confidentialNoteEvents) { |
| 234 | + this.confidentialNoteEvents = confidentialNoteEvents; |
| 235 | + return (this); |
293 | 236 | } |
294 | 237 |
|
295 | | - /** |
296 | | - * @param wikiPageEvents the do wiki page events flag |
297 | | - * @deprecated As of release 4.1.0, replaced by {@link #setWikiPageEvents(Boolean)} |
298 | | - */ |
299 | | - @Deprecated |
300 | | - @JsonIgnore |
301 | | - public void setWiki_page_events(Boolean wikiPageEvents) { |
302 | | - this.wikiPageEvents = wikiPageEvents; |
| 238 | + public ProjectHook withPushEventsBranchFilter(String pushEventsBranchFilter) { |
| 239 | + this.pushEventsBranchFilter = pushEventsBranchFilter; |
| 240 | + return (this); |
303 | 241 | } |
304 | 242 |
|
305 | 243 | @Override |
|
0 commit comments