org.aoju.bus.gitlab.models.RunnerDetail Maven / Gradle / Ivy
/*********************************************************************************
* *
* The MIT License (MIT) *
* *
* Copyright (c) 2015-2022 aoju.org Greg Messner 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.aoju.bus.gitlab.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import org.aoju.bus.gitlab.support.JacksonJson;
import org.aoju.bus.gitlab.support.JacksonJsonEnumHelper;
import java.util.Date;
import java.util.List;
public class RunnerDetail extends Runner {
private String architecture;
private String platform;
private Date contactedAt;
private List projects;
private String token;
private String revision;
private List tagList;
private String version;
private RunnerAccessLevel accessLevel;
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 getProjects() {
return this.projects;
}
public void setProjects(List 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 getTagList() {
return this.tagList;
}
public void setTagList(List 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 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 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));
}
/**
* Enum to use for RunnerDetail accessLevel property.
*/
public enum RunnerAccessLevel {
NOT_PROTECTED, REF_PROTECTED;
private static JacksonJsonEnumHelper 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));
}
}
}