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 java.util.List;
  
  import org.miaixz.bus.gitlab.support.JacksonJson;
  import org.miaixz.bus.gitlab.support.JacksonJsonEnumHelper;
  
  import com.fasterxml.jackson.annotation.JsonCreator;
  import com.fasterxml.jackson.annotation.JsonValue;
  import java.io.Serial;
  
  public class RunnerDetail extends Runner {
  
      @Serial
      private static final long serialVersionUID = 2852280720196L;
  
      private String architecture;
      private String platform;
      private Date contactedAt;
      private List<Project> projects;
      private String token;
      private String revision;
      private List<String> tagList;
      private String version;
      private RunnerAccessLevel accessLevel;
  
      /**
       * Enum to use for RunnerDetail accessLevel property.
       */
      public enum RunnerAccessLevel {
  
          NOT_PROTECTED, REF_PROTECTED;
  
          private static JacksonJsonEnumHelper<RunnerAccessLevel> enumHelper = new JacksonJsonEnumHelper<>(
                  RunnerAccessLevel.class);
  
          @JsonCreator
          public static RunnerAccessLevel forValue(String value) {
              return enumHelper.forValue(value);
          }
  
          @JsonValue
          public String toValue() {
              return (enumHelper.toString(this));
          }
  
          @Override
          public String toString() {
              return (enumHelper.toString(this));
          }
      }
  
      public String getArchitecture() {
          return architecture;
      }
  
      public void setArchitecture(String architecture) {
          this.architecture = architecture;
      }
  
      public String getPlatform() {
          return this.platform;
      }
  
      public void setPlatform(String platform) {
          this.platform = platform;
      }
  
      public Date getContactedAt() {
          return contactedAt;
      }
  
      public void setContactedAt(Date contactedAt) {
          this.contactedAt = contactedAt;
      }
  
      public List<Project> getProjects() {
          return this.projects;
      }
  
      public void setProjects(List<Project> projects) {
          this.projects = projects;
      }
  
      public String getToken() {
          return this.token;
      }
  
      public void setToken(String token) {
          this.token = token;
      }
  
      public String getRevision() {
          return this.revision;
      }
  
      public void setRevision(String revision) {
          this.revision = revision;
      }
  
      public List<String> getTagList() {
          return this.tagList;
      }
  
      public void setTagList(List<String> tagList) {
          this.tagList = tagList;
      }
  
      public String getVersion() {
          return this.version;
      }
  
      public void setVersion(String version) {
          this.version = version;
      }
  
      public RunnerAccessLevel getAccessLevel() {
          return this.accessLevel;
      }
  
      public void setAccessLevel(RunnerAccessLevel accessLevel) {
          this.accessLevel = accessLevel;
      }
  
      public RunnerDetail withArchitecture(String architecture) {
          this.architecture = architecture;
          return this;
      }
  
      public RunnerDetail withPlatform(String platform) {
          this.platform = platform;
          return this;
      }
  
      public RunnerDetail withContactedAt(Date contactedAt) {
          this.contactedAt = contactedAt;
          return this;
      }
  
      public RunnerDetail withProjects(List<Project> projects) {
          this.projects = projects;
          return this;
      }
  
      public RunnerDetail withToken(String token) {
          this.token = token;
          return this;
      }
  
      public RunnerDetail withRevision(String revision) {
          this.revision = revision;
          return this;
      }
  
      public RunnerDetail withTagList(List<String> tagList) {
          this.tagList = tagList;
          return this;
      }
  
      public RunnerDetail withVersion(String version) {
          this.version = version;
          return this;
      }
  
      public RunnerDetail withAccessLevel(RunnerAccessLevel accessLevel) {
          this.accessLevel = accessLevel;
          return this;
      }
  
      @Override
      public String toString() {
          return (JacksonJson.toJsonString(this));
      }
  
  }
  