|
| 1 | +package org.gitlab4j.api.models; |
| 2 | + |
| 3 | +import java.util.Date; |
| 4 | + |
| 5 | +import javax.xml.bind.annotation.XmlAccessType; |
| 6 | +import javax.xml.bind.annotation.XmlAccessorType; |
| 7 | +import javax.xml.bind.annotation.XmlRootElement; |
| 8 | + |
| 9 | +@XmlRootElement |
| 10 | +@XmlAccessorType(XmlAccessType.FIELD) |
| 11 | +public class PushRule { |
| 12 | + |
| 13 | + private Integer id; |
| 14 | + private Integer projectId; |
| 15 | + private String commitMessageRegex; |
| 16 | + private String branchNameRegex; |
| 17 | + private Boolean denyDeleteTag; |
| 18 | + private Date createdAt; |
| 19 | + private Boolean memberCheck; |
| 20 | + private Boolean preventSecrets; |
| 21 | + private String authorEmailRegex; |
| 22 | + private String fileNameRegex; |
| 23 | + private Integer maxFileSize; |
| 24 | + |
| 25 | + public Integer getId() { |
| 26 | + return id; |
| 27 | + } |
| 28 | + |
| 29 | + public void setId(Integer id) { |
| 30 | + this.id = id; |
| 31 | + } |
| 32 | + |
| 33 | + public Integer getProjectId() { |
| 34 | + return projectId; |
| 35 | + } |
| 36 | + |
| 37 | + public void setProjectId(Integer projectId) { |
| 38 | + this.projectId = projectId; |
| 39 | + } |
| 40 | + |
| 41 | + public PushRule withProjectId(Integer projectId) { |
| 42 | + this.projectId = projectId; |
| 43 | + return (this); |
| 44 | + } |
| 45 | + |
| 46 | + public String getCommitMessageRegex() { |
| 47 | + return commitMessageRegex; |
| 48 | + } |
| 49 | + |
| 50 | + public void setCommitMessageRegex(String commitMessageRegex) { |
| 51 | + this.commitMessageRegex = commitMessageRegex; |
| 52 | + } |
| 53 | + |
| 54 | + public PushRule withCommitMessageRegex(String commitMessageRegex) { |
| 55 | + this.commitMessageRegex = commitMessageRegex; |
| 56 | + return (this); |
| 57 | + } |
| 58 | + |
| 59 | + public String getBranchNameRegex() { |
| 60 | + return branchNameRegex; |
| 61 | + } |
| 62 | + |
| 63 | + public void setBranchNameRegex(String branchNameRegex) { |
| 64 | + this.branchNameRegex = branchNameRegex; |
| 65 | + } |
| 66 | + |
| 67 | + public PushRule withBranchNameRegex(String branchNameRegex) { |
| 68 | + this.branchNameRegex = branchNameRegex; |
| 69 | + return (this); |
| 70 | + } |
| 71 | + |
| 72 | + public Boolean getDenyDeleteTag() { |
| 73 | + return denyDeleteTag; |
| 74 | + } |
| 75 | + |
| 76 | + public void setDenyDeleteTag(Boolean denyDeleteTag) { |
| 77 | + this.denyDeleteTag = denyDeleteTag; |
| 78 | + } |
| 79 | + |
| 80 | + public PushRule withDenyDeleteTag(Boolean denyDeleteTag) { |
| 81 | + this.denyDeleteTag = denyDeleteTag; |
| 82 | + return (this); |
| 83 | + } |
| 84 | + |
| 85 | + public Date getCreatedAt() { |
| 86 | + return createdAt; |
| 87 | + } |
| 88 | + |
| 89 | + public void setCreatedAt(Date createdAt) { |
| 90 | + this.createdAt = createdAt; |
| 91 | + } |
| 92 | + |
| 93 | + public Boolean getMemberCheck() { |
| 94 | + return memberCheck; |
| 95 | + } |
| 96 | + |
| 97 | + public void setMemberCheck(Boolean memberCheck) { |
| 98 | + this.memberCheck = memberCheck; |
| 99 | + } |
| 100 | + |
| 101 | + public PushRule withMemberCheck(Boolean memberCheck) { |
| 102 | + this.memberCheck = memberCheck; |
| 103 | + return (this); |
| 104 | + } |
| 105 | + |
| 106 | + public Boolean getPreventSecrets() { |
| 107 | + return preventSecrets; |
| 108 | + } |
| 109 | + |
| 110 | + public void setPreventSecrets(Boolean preventSecrets) { |
| 111 | + this.preventSecrets = preventSecrets; |
| 112 | + } |
| 113 | + |
| 114 | + public PushRule withPreventSecrets(Boolean preventSecrets) { |
| 115 | + this.preventSecrets = preventSecrets; |
| 116 | + return (this); |
| 117 | + } |
| 118 | + |
| 119 | + public String getAuthorEmailRegex() { |
| 120 | + return authorEmailRegex; |
| 121 | + } |
| 122 | + |
| 123 | + public void setAuthorEmailRegex(String authorEmailRegex) { |
| 124 | + this.authorEmailRegex = authorEmailRegex; |
| 125 | + } |
| 126 | + |
| 127 | + public PushRule withAuthorEmailRegex(String authorEmailRegex) { |
| 128 | + this.authorEmailRegex = authorEmailRegex; |
| 129 | + return (this); |
| 130 | + } |
| 131 | + |
| 132 | + public String getFileNameRegex() { |
| 133 | + return fileNameRegex; |
| 134 | + } |
| 135 | + |
| 136 | + public void setFileNameRegex(String fileNameRegex) { |
| 137 | + this.fileNameRegex = fileNameRegex; |
| 138 | + } |
| 139 | + |
| 140 | + public PushRule withFileNameRegex(String fileNameRegex) { |
| 141 | + this.fileNameRegex = fileNameRegex; |
| 142 | + return (this); |
| 143 | + } |
| 144 | + |
| 145 | + public Integer getMaxFileSize() { |
| 146 | + return maxFileSize; |
| 147 | + } |
| 148 | + |
| 149 | + public void setMaxFileSize(Integer maxFileSize) { |
| 150 | + this.maxFileSize = maxFileSize; |
| 151 | + } |
| 152 | + |
| 153 | + public PushRule withMaxFileSize(Integer maxFileSize) { |
| 154 | + this.maxFileSize = maxFileSize; |
| 155 | + return (this); |
| 156 | + } |
| 157 | + } |
0 commit comments