io.logicdrop.openapi.models.ComputeRuleset 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;
/**
* ComputeRuleset
*/
@JsonPropertyOrder({
ComputeRuleset.JSON_PROPERTY_ID,
ComputeRuleset.JSON_PROPERTY_NAME,
ComputeRuleset.JSON_PROPERTY_CLIENT,
ComputeRuleset.JSON_PROPERTY_PROJECT,
ComputeRuleset.JSON_PROPERTY_ARTIFACT,
ComputeRuleset.JSON_PROPERTY_VERSION,
ComputeRuleset.JSON_PROPERTY_BUILD,
ComputeRuleset.JSON_PROPERTY_ACTIVE,
ComputeRuleset.JSON_PROPERTY_URL,
ComputeRuleset.JSON_PROPERTY_SOURCE,
ComputeRuleset.JSON_PROPERTY_PACKAGE,
ComputeRuleset.JSON_PROPERTY_IDENTITY,
ComputeRuleset.JSON_PROPERTY_STATELESS,
ComputeRuleset.JSON_PROPERTY_DESCRIPTION,
ComputeRuleset.JSON_PROPERTY_CREATED,
ComputeRuleset.JSON_PROPERTY_MODIFIED,
ComputeRuleset.JSON_PROPERTY_TAGS,
ComputeRuleset.JSON_PROPERTY_PROPERTIES,
ComputeRuleset.JSON_PROPERTY_IMPORTS,
ComputeRuleset.JSON_PROPERTY_GLOBALS,
ComputeRuleset.JSON_PROPERTY_API
})
public class ComputeRuleset {
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_ARTIFACT = "artifact";
private String artifact;
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_ACTIVE = "active";
private Boolean active = false;
public static final String JSON_PROPERTY_URL = "url";
private String url;
public static final String JSON_PROPERTY_SOURCE = "source";
private String source;
public static final String JSON_PROPERTY_PACKAGE = "package";
private String _package;
public static final String JSON_PROPERTY_IDENTITY = "identity";
private Boolean identity = true;
public static final String JSON_PROPERTY_STATELESS = "stateless";
private Boolean stateless = true;
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_IMPORTS = "imports";
private List imports = null;
public static final String JSON_PROPERTY_GLOBALS = "globals";
private Map globals = null;
public static final String JSON_PROPERTY_API = "api";
private Integer api = 1;
public ComputeRuleset 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 ComputeRuleset 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;
}
/**
* Get artifact
* @return artifact
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARTIFACT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getArtifact() {
return artifact;
}
public ComputeRuleset 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;
}
public ComputeRuleset active(Boolean active) {
this.active = active;
return this;
}
/**
* Is the ruleset active or not
* @return active
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Is the ruleset active or not")
@JsonProperty(JSON_PROPERTY_ACTIVE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getActive() {
return active;
}
public void setActive(Boolean active) {
this.active = active;
}
/**
* 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 ComputeRuleset source(String source) {
this.source = source;
return this;
}
/**
* Get source
* @return source
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public ComputeRuleset _package(String _package) {
this._package = _package;
return this;
}
/**
* Get _package
* @return _package
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PACKAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPackage() {
return _package;
}
public void setPackage(String _package) {
this._package = _package;
}
public ComputeRuleset identity(Boolean identity) {
this.identity = identity;
return this;
}
/**
* Use identity or equality comparisons
* @return identity
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Use identity or equality comparisons")
@JsonProperty(JSON_PROPERTY_IDENTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIdentity() {
return identity;
}
public void setIdentity(Boolean identity) {
this.identity = identity;
}
public ComputeRuleset stateless(Boolean stateless) {
this.stateless = stateless;
return this;
}
/**
* Stateless or stateful session
* @return stateless
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Stateless or stateful session")
@JsonProperty(JSON_PROPERTY_STATELESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getStateless() {
return stateless;
}
public void setStateless(Boolean stateless) {
this.stateless = stateless;
}
public ComputeRuleset 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 ComputeRuleset tags(List tags) {
this.tags = tags;
return this;
}
public ComputeRuleset 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 ComputeRuleset properties(Map properties) {
this.properties = properties;
return this;
}
public ComputeRuleset 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 ComputeRuleset imports(List imports) {
this.imports = imports;
return this;
}
public ComputeRuleset addImportsItem(String importsItem) {
if (this.imports == null) {
this.imports = new ArrayList<>();
}
this.imports.add(importsItem);
return this;
}
/**
* Get imports
* @return imports
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_IMPORTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getImports() {
return imports;
}
public void setImports(List imports) {
this.imports = imports;
}
public ComputeRuleset globals(Map globals) {
this.globals = globals;
return this;
}
public ComputeRuleset putGlobalsItem(String key, String globalsItem) {
if (this.globals == null) {
this.globals = new HashMap<>();
}
this.globals.put(key, globalsItem);
return this;
}
/**
* Get globals
* @return globals
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_GLOBALS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getGlobals() {
return globals;
}
public void setGlobals(Map globals) {
this.globals = globals;
}
public ComputeRuleset api(Integer api) {
this.api = api;
return this;
}
/**
* Internal API version
* @return api
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Internal API version")
@JsonProperty(JSON_PROPERTY_API)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getApi() {
return api;
}
public void setApi(Integer api) {
this.api = api;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComputeRuleset computeRuleset = (ComputeRuleset) o;
return Objects.equals(this.id, computeRuleset.id) &&
Objects.equals(this.name, computeRuleset.name) &&
Objects.equals(this.client, computeRuleset.client) &&
Objects.equals(this.project, computeRuleset.project) &&
Objects.equals(this.artifact, computeRuleset.artifact) &&
Objects.equals(this.version, computeRuleset.version) &&
Objects.equals(this.build, computeRuleset.build) &&
Objects.equals(this.active, computeRuleset.active) &&
Objects.equals(this.url, computeRuleset.url) &&
Objects.equals(this.source, computeRuleset.source) &&
Objects.equals(this._package, computeRuleset._package) &&
Objects.equals(this.identity, computeRuleset.identity) &&
Objects.equals(this.stateless, computeRuleset.stateless) &&
Objects.equals(this.description, computeRuleset.description) &&
Objects.equals(this.created, computeRuleset.created) &&
Objects.equals(this.modified, computeRuleset.modified) &&
Objects.equals(this.tags, computeRuleset.tags) &&
Objects.equals(this.properties, computeRuleset.properties) &&
Objects.equals(this.imports, computeRuleset.imports) &&
Objects.equals(this.globals, computeRuleset.globals) &&
Objects.equals(this.api, computeRuleset.api);
}
@Override
public int hashCode() {
return Objects.hash(id, name, client, project, artifact, version, build, active, url, source, _package, identity, stateless, description, created, modified, tags, properties, imports, globals, api);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComputeRuleset {\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(" artifact: ").append(toIndentedString(artifact)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" build: ").append(toIndentedString(build)).append("\n");
sb.append(" active: ").append(toIndentedString(active)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" _package: ").append(toIndentedString(_package)).append("\n");
sb.append(" identity: ").append(toIndentedString(identity)).append("\n");
sb.append(" stateless: ").append(toIndentedString(stateless)).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(" imports: ").append(toIndentedString(imports)).append("\n");
sb.append(" globals: ").append(toIndentedString(globals)).append("\n");
sb.append(" api: ").append(toIndentedString(api)).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 ");
}
}