io.logicdrop.openapi.models.ProcessorResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sparks-openapi-models Show documentation
Show all versions of sparks-openapi-models Show documentation
Logicdrop Sparks OpenAPI client
/*
* Sparks OpenAPI
* Generated documentation for the Logicdrop Sparks API and OpenAPI clients. Logicdrop Sparks lets users build rules, analyze data, and automate documents. Use it to make decisions faster, generate documents better, and learn from your data. ### Documentation - [User Documentation](https://docs.logicdrop.com) ### Modules - [Sparks Compute](https://docs.logicdrop.com/rules/introduction) - [Sparks Decision Tables](https://docs.logicdrop.com/rules/authoring-decision-tables) - [Sparks Documents](https://docs.logicdrop.com/documents/introduction) ### Clients - [OpenAPI Clients](https://docs.logicdrop.com/development/sample-clients) ### Security - [Authorizing API Requests](https://docs.logicdrop.com/development/authorization)
*
* The version of the OpenAPI document: v_VERSION_, build# _BUILD_
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.logicdrop.openapi.models;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ProcessorResult
*/
@JsonPropertyOrder({
ProcessorResult.JSON_PROPERTY_ID,
ProcessorResult.JSON_PROPERTY_TIMESTAMP,
ProcessorResult.JSON_PROPERTY_DURATION,
ProcessorResult.JSON_PROPERTY_ACTIVATIONS,
ProcessorResult.JSON_PROPERTY_EXCEPTION,
ProcessorResult.JSON_PROPERTY_ERROR,
ProcessorResult.JSON_PROPERTY_PROPERTIES,
ProcessorResult.JSON_PROPERTY_RESULTS,
ProcessorResult.JSON_PROPERTY_MESSAGES,
ProcessorResult.JSON_PROPERTY_MATCHES
})
public class ProcessorResult {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
private Long timestamp;
public static final String JSON_PROPERTY_DURATION = "duration";
private Long duration;
public static final String JSON_PROPERTY_ACTIVATIONS = "activations";
private Integer activations;
public static final String JSON_PROPERTY_EXCEPTION = "exception";
private Boolean exception;
public static final String JSON_PROPERTY_ERROR = "error";
private String error;
public static final String JSON_PROPERTY_PROPERTIES = "properties";
private Map properties = null;
public static final String JSON_PROPERTY_RESULTS = "results";
private Map results = null;
public static final String JSON_PROPERTY_MESSAGES = "messages";
private List messages = null;
public static final String JSON_PROPERTY_MATCHES = "matches";
private List matches = null;
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
/**
* Timestamp
* @return timestamp
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Timestamp")
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTimestamp() {
return timestamp;
}
/**
* Get duration
* @return duration
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DURATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getDuration() {
return duration;
}
/**
* Get activations
* @return activations
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ACTIVATIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getActivations() {
return activations;
}
/**
* Get exception
* @return exception
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXCEPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getException() {
return exception;
}
/**
* Get error
* @return error
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ERROR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getError() {
return error;
}
/**
* Get properties
* @return properties
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getProperties() {
return properties;
}
/**
* Get results
* @return results
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RESULTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getResults() {
return results;
}
/**
* Get messages
* @return messages
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MESSAGES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getMessages() {
return messages;
}
/**
* Get matches
* @return matches
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MATCHES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getMatches() {
return matches;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProcessorResult processorResult = (ProcessorResult) o;
return Objects.equals(this.id, processorResult.id) &&
Objects.equals(this.timestamp, processorResult.timestamp) &&
Objects.equals(this.duration, processorResult.duration) &&
Objects.equals(this.activations, processorResult.activations) &&
Objects.equals(this.exception, processorResult.exception) &&
Objects.equals(this.error, processorResult.error) &&
Objects.equals(this.properties, processorResult.properties) &&
Objects.equals(this.results, processorResult.results) &&
Objects.equals(this.messages, processorResult.messages) &&
Objects.equals(this.matches, processorResult.matches);
}
@Override
public int hashCode() {
return Objects.hash(id, timestamp, duration, activations, exception, error, properties, results, messages, matches);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProcessorResult {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
sb.append(" activations: ").append(toIndentedString(activations)).append("\n");
sb.append(" exception: ").append(toIndentedString(exception)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" results: ").append(toIndentedString(results)).append("\n");
sb.append(" messages: ").append(toIndentedString(messages)).append("\n");
sb.append(" matches: ").append(toIndentedString(matches)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}