com.siftscience.model.EntityScoreResponseBody Maven / Gradle / Ivy
package com.siftscience.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import java.util.Map;
public class EntityScoreResponseBody extends BaseResponseBody {
public static EntityScoreResponseBody fromJson(String json) {
return gson.fromJson(json, EntityScoreResponseBody.class);
}
@Expose @SerializedName("entity_type") private String entityType;
@Expose @SerializedName("entity_id") private String entityId;
@Expose @SerializedName("scores") private Map scores;
@Expose @SerializedName("latest_labels") private Map latestLabels;
@Expose @SerializedName("latest_decisions") private Map latestDecisions;
@Expose @SerializedName("workflow_statuses") private List workflowStatuses;
public String getEntityType() {
return entityType;
}
public EntityScoreResponseBody setEntityType(String entityType) {
this.entityType = entityType;
return this;
}
public String getEntityId() {
return entityId;
}
public EntityScoreResponseBody setEntityId(String entityId) {
this.entityId = entityId;
return this;
}
public Map getScores() {
return scores;
}
public EntityScoreResponseBody setScores(Map scores) {
this.scores = scores;
return this;
}
public Map getLatestLabels() {
return latestLabels;
}
public EntityScoreResponseBody setLatestLabels(Map latestLabels) {
this.latestLabels = latestLabels;
return this;
}
public Map getLatestDecisions() {
return latestDecisions;
}
public EntityScoreResponseBody setLatestDecisions(Map latestDecisions) {
this.latestDecisions = latestDecisions;
return this;
}
public List getWorkflowStatuses() {
return workflowStatuses;
}
public EntityScoreResponseBody setWorkflowStatuses(List workflowStatuses) {
this.workflowStatuses = workflowStatuses;
return this;
}
public WorkflowStatus getWorkflowStatus(int i) {
return workflowStatuses.get(i);
}
}