io.logicdrop.openapi.models.ComputeRule 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.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ComputeRule
*/
@JsonPropertyOrder({
ComputeRule.JSON_PROPERTY_ID,
ComputeRule.JSON_PROPERTY_NAME,
ComputeRule.JSON_PROPERTY_CLIENT,
ComputeRule.JSON_PROPERTY_PROJECT,
ComputeRule.JSON_PROPERTY_VERSION,
ComputeRule.JSON_PROPERTY_BUILD,
ComputeRule.JSON_PROPERTY_URL,
ComputeRule.JSON_PROPERTY_AGENDA_GROUP,
ComputeRule.JSON_PROPERTY_ACTIVATION_GROUP,
ComputeRule.JSON_PROPERTY_RULEFLOW_GROUP,
ComputeRule.JSON_PROPERTY_NO_LOOP,
ComputeRule.JSON_PROPERTY_LOCK_ON_ACTIVE,
ComputeRule.JSON_PROPERTY_ENABLED,
ComputeRule.JSON_PROPERTY_LOG,
ComputeRule.JSON_PROPERTY_RULESET,
ComputeRule.JSON_PROPERTY_DESCRIPTION,
ComputeRule.JSON_PROPERTY_CREATED,
ComputeRule.JSON_PROPERTY_MODIFIED,
ComputeRule.JSON_PROPERTY_TAGS,
ComputeRule.JSON_PROPERTY_PROPERTIES,
ComputeRule.JSON_PROPERTY_SALIENCE
})
public class ComputeRule {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_CLIENT = "client";
private String client;
public static final String JSON_PROPERTY_PROJECT = "project";
private String project;
public static final String JSON_PROPERTY_VERSION = "version";
private String version;
public static final String JSON_PROPERTY_BUILD = "build";
private Long build;
public static final String JSON_PROPERTY_URL = "url";
private String url;
public static final String JSON_PROPERTY_AGENDA_GROUP = "agendaGroup";
private String agendaGroup;
public static final String JSON_PROPERTY_ACTIVATION_GROUP = "activationGroup";
private String activationGroup;
public static final String JSON_PROPERTY_RULEFLOW_GROUP = "ruleflowGroup";
private String ruleflowGroup;
public static final String JSON_PROPERTY_NO_LOOP = "noLoop";
private Boolean noLoop;
public static final String JSON_PROPERTY_LOCK_ON_ACTIVE = "lockOnActive";
private Boolean lockOnActive;
public static final String JSON_PROPERTY_ENABLED = "enabled";
private Boolean enabled;
public static final String JSON_PROPERTY_LOG = "log";
private Boolean log;
public static final String JSON_PROPERTY_RULESET = "ruleset";
private String ruleset;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_CREATED = "created";
private OffsetDateTime created;
public static final String JSON_PROPERTY_MODIFIED = "modified";
private OffsetDateTime modified;
public static final String JSON_PROPERTY_TAGS = "tags";
private List tags = null;
public static final String JSON_PROPERTY_PROPERTIES = "properties";
private Map properties = null;
public static final String JSON_PROPERTY_SALIENCE = "salience";
private Integer salience = 0;
public ComputeRule id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ComputeRule name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Get client
* @return client
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClient() {
return client;
}
/**
* Get project
* @return project
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROJECT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProject() {
return project;
}
public ComputeRule version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
/**
* Get build
* @return build
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BUILD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getBuild() {
return build;
}
/**
* Get url
* @return url
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUrl() {
return url;
}
public ComputeRule agendaGroup(String agendaGroup) {
this.agendaGroup = agendaGroup;
return this;
}
/**
* Get agendaGroup
* @return agendaGroup
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_AGENDA_GROUP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAgendaGroup() {
return agendaGroup;
}
public void setAgendaGroup(String agendaGroup) {
this.agendaGroup = agendaGroup;
}
public ComputeRule activationGroup(String activationGroup) {
this.activationGroup = activationGroup;
return this;
}
/**
* Get activationGroup
* @return activationGroup
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ACTIVATION_GROUP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getActivationGroup() {
return activationGroup;
}
public void setActivationGroup(String activationGroup) {
this.activationGroup = activationGroup;
}
public ComputeRule ruleflowGroup(String ruleflowGroup) {
this.ruleflowGroup = ruleflowGroup;
return this;
}
/**
* Get ruleflowGroup
* @return ruleflowGroup
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RULEFLOW_GROUP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRuleflowGroup() {
return ruleflowGroup;
}
public void setRuleflowGroup(String ruleflowGroup) {
this.ruleflowGroup = ruleflowGroup;
}
public ComputeRule noLoop(Boolean noLoop) {
this.noLoop = noLoop;
return this;
}
/**
* Get noLoop
* @return noLoop
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NO_LOOP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNoLoop() {
return noLoop;
}
public void setNoLoop(Boolean noLoop) {
this.noLoop = noLoop;
}
public ComputeRule lockOnActive(Boolean lockOnActive) {
this.lockOnActive = lockOnActive;
return this;
}
/**
* Get lockOnActive
* @return lockOnActive
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LOCK_ON_ACTIVE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getLockOnActive() {
return lockOnActive;
}
public void setLockOnActive(Boolean lockOnActive) {
this.lockOnActive = lockOnActive;
}
public ComputeRule enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Get enabled
* @return enabled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public ComputeRule log(Boolean log) {
this.log = log;
return this;
}
/**
* Get log
* @return log
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LOG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getLog() {
return log;
}
public void setLog(Boolean log) {
this.log = log;
}
/**
* Get ruleset
* @return ruleset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RULESET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRuleset() {
return ruleset;
}
public ComputeRule description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
* Get created
* @return created
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getCreated() {
return created;
}
/**
* Get modified
* @return modified
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MODIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getModified() {
return modified;
}
public ComputeRule tags(List tags) {
this.tags = tags;
return this;
}
public ComputeRule addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
public ComputeRule properties(Map properties) {
this.properties = properties;
return this;
}
public ComputeRule putPropertiesItem(String key, Object propertiesItem) {
if (this.properties == null) {
this.properties = new HashMap<>();
}
this.properties.put(key, propertiesItem);
return this;
}
/**
* Get properties
* @return properties
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getProperties() {
return properties;
}
public void setProperties(Map properties) {
this.properties = properties;
}
public ComputeRule salience(Integer salience) {
this.salience = salience;
return this;
}
/**
* Priority
* @return salience
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Priority")
@JsonProperty(JSON_PROPERTY_SALIENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSalience() {
return salience;
}
public void setSalience(Integer salience) {
this.salience = salience;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComputeRule computeRule = (ComputeRule) o;
return Objects.equals(this.id, computeRule.id) &&
Objects.equals(this.name, computeRule.name) &&
Objects.equals(this.client, computeRule.client) &&
Objects.equals(this.project, computeRule.project) &&
Objects.equals(this.version, computeRule.version) &&
Objects.equals(this.build, computeRule.build) &&
Objects.equals(this.url, computeRule.url) &&
Objects.equals(this.agendaGroup, computeRule.agendaGroup) &&
Objects.equals(this.activationGroup, computeRule.activationGroup) &&
Objects.equals(this.ruleflowGroup, computeRule.ruleflowGroup) &&
Objects.equals(this.noLoop, computeRule.noLoop) &&
Objects.equals(this.lockOnActive, computeRule.lockOnActive) &&
Objects.equals(this.enabled, computeRule.enabled) &&
Objects.equals(this.log, computeRule.log) &&
Objects.equals(this.ruleset, computeRule.ruleset) &&
Objects.equals(this.description, computeRule.description) &&
Objects.equals(this.created, computeRule.created) &&
Objects.equals(this.modified, computeRule.modified) &&
Objects.equals(this.tags, computeRule.tags) &&
Objects.equals(this.properties, computeRule.properties) &&
Objects.equals(this.salience, computeRule.salience);
}
@Override
public int hashCode() {
return Objects.hash(id, name, client, project, version, build, url, agendaGroup, activationGroup, ruleflowGroup, noLoop, lockOnActive, enabled, log, ruleset, description, created, modified, tags, properties, salience);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComputeRule {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" client: ").append(toIndentedString(client)).append("\n");
sb.append(" project: ").append(toIndentedString(project)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" build: ").append(toIndentedString(build)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" agendaGroup: ").append(toIndentedString(agendaGroup)).append("\n");
sb.append(" activationGroup: ").append(toIndentedString(activationGroup)).append("\n");
sb.append(" ruleflowGroup: ").append(toIndentedString(ruleflowGroup)).append("\n");
sb.append(" noLoop: ").append(toIndentedString(noLoop)).append("\n");
sb.append(" lockOnActive: ").append(toIndentedString(lockOnActive)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" log: ").append(toIndentedString(log)).append("\n");
sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" modified: ").append(toIndentedString(modified)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" salience: ").append(toIndentedString(salience)).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 ");
}
}