com.ecwid.consul.v1.health.model.Check Maven / Gradle / Ivy
package com.ecwid.consul.v1.health.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* @author Vasily Vasilkov ([email protected])
*/
public class Check {
public static enum CheckStatus {
@SerializedName("unknown")
UNKNOWN,
@SerializedName("passing")
PASSING,
@SerializedName("warning")
WARNING,
@SerializedName("critical")
CRITICAL
}
@SerializedName("Node")
private String node;
@SerializedName("CheckID")
private String checkId;
@SerializedName("Name")
private String name;
@SerializedName("Status")
private CheckStatus status;
@SerializedName("Notes")
private String notes;
@SerializedName("Output")
private String output;
@SerializedName("ServiceID")
private String serviceId;
@SerializedName("ServiceName")
private String serviceName;
@SerializedName("ServiceTags")
private List serviceTags;
@SerializedName("CreateIndex")
private Long createIndex;
@SerializedName("ModifyIndex")
private Long modifyIndex;
public String getNode() {
return node;
}
public void setNode(String node) {
this.node = node;
}
public String getCheckId() {
return checkId;
}
public void setCheckId(String checkId) {
this.checkId = checkId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CheckStatus getStatus() {
return status;
}
public void setStatus(CheckStatus status) {
this.status = status;
}
public String getNotes() {
return notes;
}
public void setNotes(String notes) {
this.notes = notes;
}
public String getOutput() {
return output;
}
public void setOutput(String output) {
this.output = output;
}
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public List getServiceTags() {
return serviceTags;
}
public void setServiceTags(List serviceTags) {
this.serviceTags = serviceTags;
}
public Long getCreateIndex() {
return createIndex;
}
public void setCreateIndex(Long createIndex) {
this.createIndex = createIndex;
}
public Long getModifyIndex() {
return modifyIndex;
}
public void setModifyIndex(Long modifyIndex) {
this.modifyIndex = modifyIndex;
}
@Override
public String toString() {
return "Check{" +
"node='" + node + '\'' +
", checkId='" + checkId + '\'' +
", name='" + name + '\'' +
", status=" + status +
", notes='" + notes + '\'' +
", output='" + output + '\'' +
", serviceId='" + serviceId + '\'' +
", serviceName='" + serviceName + '\'' +
", serviceTags=" + serviceTags +
", createIndex=" + createIndex +
", modifyIndex=" + modifyIndex +
'}';
}
}