com.siftscience.model.GetDecisionsResponseBody Maven / Gradle / Ivy
package com.siftscience.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import static com.siftscience.model.GetDecisionFieldSet.*;
public class GetDecisionsResponseBody extends BaseResponseBody{
@Expose @SerializedName("data") private final List decisions;
@Expose @SerializedName("has_more") private final Boolean hasMore;
@Expose @SerializedName("total_results") private final Long totalResults;
@Expose @SerializedName("next_ref") private final String nextRef;
public GetDecisionsResponseBody(List decisions, boolean hasMore, long totalResults, String nextRef) {
this.decisions = decisions;
this.hasMore = hasMore;
this.totalResults = totalResults;
this.nextRef = nextRef;
}
public List getDecisions() {
return decisions;
}
public Boolean isHasMore() {
return hasMore;
}
public Long getTotalResults() {
return totalResults;
}
public String getNextRef() {
return nextRef;
}
public class Decision {
@Expose @SerializedName("id") private String id;
@Expose @SerializedName("name") private String name;
@Expose @SerializedName("description") private String description;
@Expose @SerializedName("category") private DecisionCategory category;
@Expose @SerializedName("entity_type") private EntityType entityType;
@Expose @SerializedName("abuse_type") private AbuseType abuseType;
@Expose @SerializedName("webhook_url") private String webhookUrl;
@Expose @SerializedName("created_at") private Long createdAt;
@Expose @SerializedName("created_by") private String createdBy;
@Expose @SerializedName("updated_at") private Long updatedAt;
@Expose @SerializedName("updated_by") private String updatedBy;
public Decision(String id, String name, String description, DecisionCategory category,
EntityType entityType, AbuseType abuseType, String webhookUrl,
long createdAt, String createdBy, long updatedAt, String updatedBy) {
this.id = id;
this.name = name;
this.description = description;
this.category = category;
this.entityType = entityType;
this.abuseType = abuseType;
this.webhookUrl = webhookUrl;
this.createdAt = createdAt;
this.createdBy = createdBy;
this.updatedAt = updatedAt;
this.updatedBy = updatedBy;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public DecisionCategory getCategory() {
return category;
}
public void setCategory(DecisionCategory category) {
this.category = category;
}
public EntityType getEntityType() {
return entityType;
}
public void setEntityType(EntityType entityType) {
this.entityType = entityType;
}
public AbuseType getAbuseType() {
return abuseType;
}
public void setAbuseType(AbuseType abuseType) {
this.abuseType = abuseType;
}
public String getWebhookUrl() {
return webhookUrl;
}
public void setWebhookUrl(String webhookUrl) {
this.webhookUrl = webhookUrl;
}
public Long getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Long createdAt) {
this.createdAt = createdAt;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Long getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Long updatedAt) {
this.updatedAt = updatedAt;
}
public String getUpdatedBy() {
return updatedBy;
}
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
}
}