com.inteligr8.solr.model.ResponseAction Maven / Gradle / Ivy
The newest version!
package com.inteligr8.solr.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonProperty.Access;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResponseAction {
public enum Status {
@JsonProperty("success")
Success,
@JsonProperty("scheduled")
Scheduled,
@JsonProperty("error")
Error,
}
@JsonProperty(access = Access.READ_ONLY)
private Status status;
@JsonProperty(access = Access.READ_ONLY)
private String errorMessage;
public Status getStatus() {
return status;
}
protected void setStatus(Status status) {
this.status = status;
}
public String getErrorMessage() {
return errorMessage;
}
protected void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
}