org.gitlab4j.api.models.CommitStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab4j-api Show documentation
Show all versions of gitlab4j-api Show documentation
GitLab4J-API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories and servers via the GitLab REST API.
package org.gitlab4j.api.models;
import java.util.Date;
import org.gitlab4j.api.utils.JacksonJson;
public class CommitStatus {
private Boolean allowFailure;
private Author author;
private Float coverage;
private Date createdAt;
private String description;
private Date finishedAt;
private Integer id;
private String name;
private String ref;
private String sha;
private Date startedAt;
private String status;
private String targetUrl;
public Boolean isAllowFailure() {
return allowFailure;
}
public void setAllowFailure(Boolean allowFailure) {
this.allowFailure = allowFailure;
}
public Author getAuthor() {
return author;
}
public void setAuthor(Author author) {
this.author = author;
}
public Float getCoverage() {
return coverage;
}
public void setCoverage(Float coverage) {
this.coverage = coverage;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getFinishedAt() {
return this.finishedAt;
}
public void setFinishedAt(Date finishedAt) {
this.finishedAt = finishedAt;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRef() {
return ref;
}
public void setRef(String ref) {
this.ref = ref;
}
public String getSha() {
return sha;
}
public void setSha(String sha) {
this.sha = sha;
}
public Date getStartedAt() {
return startedAt;
}
public void setStartedAt(Date startedAt) {
this.startedAt = startedAt;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getTargetUrl() {
return targetUrl;
}
public void setTargetUrl(String targetUrl) {
this.targetUrl = targetUrl;
}
public CommitStatus withCoverage(Float coverage) {
this.coverage = coverage;
return this;
}
public CommitStatus withDescription(String description) {
this.description = description;
return this;
}
public CommitStatus withName(String name) {
this.name = name;
return this;
}
public CommitStatus withRef(String ref) {
this.ref = ref;
return this;
}
public CommitStatus withTargetUrl(String targetUrl) {
this.targetUrl = targetUrl;
return this;
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}