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.util.Date;
  
  import org.miaixz.bus.gitlab.support.JacksonJson;
  
  public class Build {
  
      private Long id;
      private String stage;
      private String name;
      private BuildStatus status;
      private Date createdAt;
      private Date startedAt;
      private Date finishedAt;
      private Float duration;
      private Float queuedDuration;
      private String failureReason;
      private String when;
      private Boolean manual;
      private Boolean allowFailure;
      private User user;
      private Runner runner;
      private ArtifactsFile artifactsFile;
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public String getStage() {
          return stage;
      }
  
      public void setStage(String stage) {
          this.stage = stage;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public BuildStatus getStatus() {
          return status;
      }
  
      public void setStatus(BuildStatus status) {
          this.status = status;
      }
  
      public Date getCreatedAt() {
          return createdAt;
      }
  
      public void setCreatedAt(Date createdAt) {
          this.createdAt = createdAt;
      }
  
      public Date getStartedAt() {
          return startedAt;
      }
  
      public void setStartedAt(Date startedAt) {
          this.startedAt = startedAt;
      }
  
      public Date getFinishedAt() {
          return finishedAt;
      }
  
      public void setFinishedAt(Date finishedAt) {
          this.finishedAt = finishedAt;
      }
  
      public Float getDuration() {
          return duration;
      }
  
      public void setDuration(Float duration) {
          this.duration = duration;
      }
  
      public Float getQueuedDuration() {
          return queuedDuration;
      }
  
      public void setQueuedDuration(Float queuedDuration) {
          this.queuedDuration = queuedDuration;
      }
  
      public String getFailureReason() {
          return failureReason;
      }
  
      public void setFailureReason(String failureReason) {
          this.failureReason = failureReason;
      }
  
      public String getWhen() {
          return when;
      }
  
      public void setWhen(String when) {
          this.when = when;
      }
  
      public Boolean getManual() {
          return manual;
      }
  
      public void setManual(Boolean manual) {
          this.manual = manual;
      }
  
      public Boolean getAllowFailure() {
          return allowFailure;
      }
  
      public void setAllowFailure(Boolean allowFailure) {
          this.allowFailure = allowFailure;
      }
  
      public User getUser() {
          return user;
      }
  
      public void setUser(User user) {
          this.user = user;
      }
  
      public Runner getRunner() {
          return runner;
      }
  
      public void setRunner(Runner runner) {
          this.runner = runner;
      }
  
      public ArtifactsFile getArtifactsFile() {
          return artifactsFile;
      }
  
      public void setArtifactsFile(ArtifactsFile artifactsFile) {
          this.artifactsFile = artifactsFile;
      }
  
      @Override
      public String toString() {
          return (JacksonJson.toJsonString(this));
      }
  
  }
  