org.gitlab4j.api.models.PushRules Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab4j-api Show documentation
Show all versions of gitlab4j-api Show documentation
GitLab4J-API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories and servers via the GitLab REST API.
package org.gitlab4j.api.models;
import java.util.Date;
import org.gitlab4j.api.utils.JacksonJson;
public class PushRules {
private Integer id;
private Integer projectId;
private String commitMessageRegex;
private String branchNameRegex;
private Boolean denyDeleteTag;
private Date createdAt;
private Boolean memberCheck;
private Boolean preventSecrets;
private String authorEmailRegex;
private String fileNameRegex;
private Integer maxFileSize;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getProjectId() {
return projectId;
}
public void setProjectId(Integer projectId) {
this.projectId = projectId;
}
public PushRules withProjectId(Integer projectId) {
this.projectId = projectId;
return (this);
}
public String getCommitMessageRegex() {
return commitMessageRegex;
}
public void setCommitMessageRegex(String commitMessageRegex) {
this.commitMessageRegex = commitMessageRegex;
}
public PushRules withCommitMessageRegex(String commitMessageRegex) {
this.commitMessageRegex = commitMessageRegex;
return (this);
}
public String getBranchNameRegex() {
return branchNameRegex;
}
public void setBranchNameRegex(String branchNameRegex) {
this.branchNameRegex = branchNameRegex;
}
public PushRules withBranchNameRegex(String branchNameRegex) {
this.branchNameRegex = branchNameRegex;
return (this);
}
public Boolean getDenyDeleteTag() {
return denyDeleteTag;
}
public void setDenyDeleteTag(Boolean denyDeleteTag) {
this.denyDeleteTag = denyDeleteTag;
}
public PushRules withDenyDeleteTag(Boolean denyDeleteTag) {
this.denyDeleteTag = denyDeleteTag;
return (this);
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Boolean getMemberCheck() {
return memberCheck;
}
public void setMemberCheck(Boolean memberCheck) {
this.memberCheck = memberCheck;
}
public PushRules withMemberCheck(Boolean memberCheck) {
this.memberCheck = memberCheck;
return (this);
}
public Boolean getPreventSecrets() {
return preventSecrets;
}
public void setPreventSecrets(Boolean preventSecrets) {
this.preventSecrets = preventSecrets;
}
public PushRules withPreventSecrets(Boolean preventSecrets) {
this.preventSecrets = preventSecrets;
return (this);
}
public String getAuthorEmailRegex() {
return authorEmailRegex;
}
public void setAuthorEmailRegex(String authorEmailRegex) {
this.authorEmailRegex = authorEmailRegex;
}
public PushRules withAuthorEmailRegex(String authorEmailRegex) {
this.authorEmailRegex = authorEmailRegex;
return (this);
}
public String getFileNameRegex() {
return fileNameRegex;
}
public void setFileNameRegex(String fileNameRegex) {
this.fileNameRegex = fileNameRegex;
}
public PushRules withFileNameRegex(String fileNameRegex) {
this.fileNameRegex = fileNameRegex;
return (this);
}
public Integer getMaxFileSize() {
return maxFileSize;
}
public void setMaxFileSize(Integer maxFileSize) {
this.maxFileSize = maxFileSize;
}
public PushRules withMaxFileSize(Integer maxFileSize) {
this.maxFileSize = maxFileSize;
return (this);
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}