Skip to content

Commit

Permalink
Added withXXXX() methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmessner committed Jul 2, 2019
1 parent c561c75 commit 25a8cc1
Showing 1 changed file with 38 additions and 100 deletions.
138 changes: 38 additions & 100 deletions src/main/java/org/gitlab4j/api/models/ProjectHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

import org.gitlab4j.api.utils.JacksonJson;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class ProjectHook {

private Boolean buildEvents;
Expand Down Expand Up @@ -181,125 +179,65 @@ public String getPushEventsBranchFilter() {
public void setPushEventsBranchFilter(String pushEventsBranchFilter) {
this.pushEventsBranchFilter = pushEventsBranchFilter;
}

/**
* @return the do build events flag
* @deprecated As of release 4.1.0, replaced by {@link #getBuildEvents()}
*/
@Deprecated
@JsonIgnore
public Boolean getBuild_events() {
return buildEvents;

public ProjectHook withIssuesEvents(Boolean issuesEvents) {
this.issuesEvents = issuesEvents;
return (this);
}

/**
* @param buildEvents the do build events flag
* @deprecated As of release 4.1.0, replaced by {@link #setBuildEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public void setBuild_events(Boolean buildEvents) {
this.buildEvents = buildEvents;
public ProjectHook withMergeRequestsEvents(Boolean mergeRequestsEvents) {
this.mergeRequestsEvents = mergeRequestsEvents;
return (this);
}

/**
* @return the enable SSL verification flag
* @deprecated As of release 4.1.0, replaced by {@link #getEnableSslVerification()}
*/
@Deprecated
@JsonIgnore
public Boolean getEnable_ssl_verification() {
return enableSslVerification;
public ProjectHook withNoteEvents(Boolean noteEvents) {
this.noteEvents = noteEvents;
return (this);
}

/**
* @param enableSslVerification the enable SSL verification flag
* @deprecated As of release 4.1.0, replaced by {@link #setEnableSslVerification(Boolean)}
*/
@Deprecated
@JsonIgnore
public void setEnable_ssl_verification(Boolean enableSslVerification) {
this.enableSslVerification = enableSslVerification;

public ProjectHook withJobEvents(Boolean jobEvents) {
this.jobEvents = jobEvents;
return (this);
}

/**
* @return the do note events flag
* @deprecated As of release 4.1.0, replaced by {@link #getNoteEvents()}
*/
@Deprecated
@JsonIgnore
public Boolean getNote_events() {
return noteEvents;
public ProjectHook withPipelineEvents(Boolean pipelineEvents) {
this.pipelineEvents = pipelineEvents;
return (this);
}

/**
* @param noteEvents the do note events flag
* @deprecated As of release 4.1.0, replaced by {@link #setNoteEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public void setNote_events(Boolean noteEvents) {
this.noteEvents = noteEvents;
public ProjectHook withPushEvents(Boolean pushEvents) {
this.pushEvents = pushEvents;
return (this);
}

/**
* @return the do pipeline events flag
* @deprecated As of release 4.1.0, replaced by {@link #getPipelineEvents()}
*/
@Deprecated
@JsonIgnore
public Boolean getPipeline_events() {
return pipelineEvents;
public ProjectHook withTagPushEvents(Boolean tagPushEvents) {
this.tagPushEvents = tagPushEvents;
return (this);
}

/**
* @param pipelineEvents the do pipeline events flag
* @deprecated As of release 4.1.0, replaced by {@link #setPipelineEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public void setPipeline_events(Boolean pipelineEvents) {
this.pipelineEvents = pipelineEvents;
public ProjectHook withWikiPageEvents(Boolean wikiPageEvents) {
this.wikiPageEvents = wikiPageEvents;
return (this);
}

/**
* @return the do tag push events flag
* @deprecated As of release 4.1.0, replaced by {@link #getTagPushEvents()}
*/
@Deprecated
@JsonIgnore
public Boolean getTag_push_events() {
return tagPushEvents;
public ProjectHook withRepositoryUpdateEvents(Boolean repositoryUpdateEvents) {
this.repositoryUpdateEvents = repositoryUpdateEvents;
return (this);
}

/**
* @param tagPushEvents the do tag push events flag
* @deprecated As of release 4.1.0, replaced by {@link #setTagPushEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public void setTag_push_events(Boolean tagPushEvents) {
this.tagPushEvents = tagPushEvents;
public ProjectHook withConfidentialIssuesEvents(Boolean confidentialIssuesEvents) {
this.confidentialIssuesEvents = confidentialIssuesEvents;
return (this);
}

/**
* @return the do wiki page events flag
* @deprecated As of release 4.1.0, replaced by {@link #getWikiPageEvents()}
*/
@Deprecated
@JsonIgnore
public Boolean getWiki_page_events() {
return wikiPageEvents;
public ProjectHook withConfidentialNoteEvents(Boolean confidentialNoteEvents) {
this.confidentialNoteEvents = confidentialNoteEvents;
return (this);
}

/**
* @param wikiPageEvents the do wiki page events flag
* @deprecated As of release 4.1.0, replaced by {@link #setWikiPageEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public void setWiki_page_events(Boolean wikiPageEvents) {
this.wikiPageEvents = wikiPageEvents;
public ProjectHook withPushEventsBranchFilter(String pushEventsBranchFilter) {
this.pushEventsBranchFilter = pushEventsBranchFilter;
return (this);
}

@Override
Expand Down

0 comments on commit 25a8cc1

Please sign in to comment.