Skip to content

Commit 25a8cc1

Browse files
committed
Added withXXXX() methods.
1 parent c561c75 commit 25a8cc1

File tree

1 file changed

+38
-100
lines changed

1 file changed

+38
-100
lines changed

src/main/java/org/gitlab4j/api/models/ProjectHook.java

Lines changed: 38 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
import org.gitlab4j.api.utils.JacksonJson;
77

8-
import com.fasterxml.jackson.annotation.JsonIgnore;
9-
108
public class ProjectHook {
119

1210
private Boolean buildEvents;
@@ -181,125 +179,65 @@ public String getPushEventsBranchFilter() {
181179
public void setPushEventsBranchFilter(String pushEventsBranchFilter) {
182180
this.pushEventsBranchFilter = pushEventsBranchFilter;
183181
}
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);
193186
}
194187

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);
203191
}
204192

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);
213196
}
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);
223201
}
224202

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);
233206
}
234207

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);
243211
}
244212

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);
253216
}
254217

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);
263221
}
264222

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);
273226
}
274227

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);
283231
}
284232

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);
293236
}
294237

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);
303241
}
304242

305243
@Override

0 commit comments

Comments
 (0)