content: /*
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
   ~                                                                               ~
   ~ The MIT License (MIT)                                                         ~
   ~                                                                               ~
   ~ Copyright (c) 2015-2025 miaixz.org gitlab4j and other contributors.           ~
   ~                                                                               ~
   ~ Permission is hereby granted, free of charge, to any person obtaining a copy  ~
   ~ of this software and associated documentation files (the "Software"), to deal ~
   ~ in the Software without restriction, including without limitation the rights  ~
   ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell     ~
   ~ copies of the Software, and to permit persons to whom the Software is         ~
   ~ furnished to do so, subject to the following conditions:                      ~
   ~                                                                               ~
   ~ The above copyright notice and this permission notice shall be included in    ~
   ~ all copies or substantial portions of the Software.                           ~
   ~                                                                               ~
   ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR    ~
   ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,      ~
   ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE   ~
   ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER        ~
   ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ~
   ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN     ~
   ~ THE SOFTWARE.                                                                 ~
   ~                                                                               ~
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  */
  package org.miaixz.bus.gitlab.models;
  
  import java.io.Serializable;
  import java.util.Date;
  
  import org.miaixz.bus.gitlab.support.JacksonJson;
  import java.io.Serial;
  
  public class PushRules implements Serializable {
  
      @Serial
      private static final long serialVersionUID = 2852276372752L;
  
      private Long id;
      private Long projectId;
      private String commitMessageRegex;
      private String commitMessageNegativeRegex;
      private String branchNameRegex;
      private Boolean denyDeleteTag;
      private Date createdAt;
      private Boolean memberCheck;
      private Boolean preventSecrets;
      private String authorEmailRegex;
      private String fileNameRegex;
      private Integer maxFileSize;
      private Boolean commitCommitterCheck;
      private Boolean commitCommitterNameCheck;
      private Boolean rejectUnsignedCommits;
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public Long getProjectId() {
          return projectId;
      }
  
      public void setProjectId(Long projectId) {
          this.projectId = projectId;
      }
  
      public PushRules withProjectId(Long 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 getCommitMessageNegativeRegex() {
          return commitMessageNegativeRegex;
      }
  
      public void setCommitMessageNegativeRegex(String commitMessageNegativeRegex) {
          this.commitMessageNegativeRegex = commitMessageNegativeRegex;
      }
  
      public PushRules withCommitMessageNegativeRegex(String commitMessageNegativeRegex) {
          this.commitMessageNegativeRegex = commitMessageNegativeRegex;
          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);
      }
  
      public Boolean getCommitCommitterCheck() {
          return commitCommitterCheck;
      }
  
      public Boolean getCommitCommitterNameCheck() {
          return commitCommitterNameCheck;
      }
  
      public void setCommitCommitterNameCheck(Boolean commitCommitterNameCheck) {
          this.commitCommitterNameCheck = commitCommitterNameCheck;
      }
  
      public void setCommitCommitterCheck(Boolean commitCommitterCheck) {
          this.commitCommitterCheck = commitCommitterCheck;
      }
  
      public PushRules withCommitCommitterCheck(Boolean commitCommitterCheck) {
          this.commitCommitterCheck = commitCommitterCheck;
          return (this);
      }
  
      public Boolean getRejectUnsignedCommits() {
          return rejectUnsignedCommits;
      }
  
      public void setRejectUnsignedCommits(Boolean rejectUnsignedCommits) {
          this.rejectUnsignedCommits = rejectUnsignedCommits;
      }
  
      public PushRules withRejectUnsignedCommits(Boolean rejectUnsignedCommits) {
          this.rejectUnsignedCommits = rejectUnsignedCommits;
          return (this);
      }
  
      @Override
      public String toString() {
          return (JacksonJson.toJsonString(this));
      }
  
  }
  