io.logicdrop.openapi.models.Dataset 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;
/**
* Dataset
*/
@JsonPropertyOrder({
Dataset.JSON_PROPERTY_ID,
Dataset.JSON_PROPERTY_NAME,
Dataset.JSON_PROPERTY_CLIENT,
Dataset.JSON_PROPERTY_PROJECT,
Dataset.JSON_PROPERTY_ARTIFACT,
Dataset.JSON_PROPERTY_VERSION,
Dataset.JSON_PROPERTY_BUILD,
Dataset.JSON_PROPERTY_URL,
Dataset.JSON_PROPERTY_EXTERNAL,
Dataset.JSON_PROPERTY_SOURCE,
Dataset.JSON_PROPERTY_PRIMARY_KEY,
Dataset.JSON_PROPERTY_CONNECTION,
Dataset.JSON_PROPERTY_DESCRIPTION,
Dataset.JSON_PROPERTY_CREATED,
Dataset.JSON_PROPERTY_MODIFIED,
Dataset.JSON_PROPERTY_TAGS,
Dataset.JSON_PROPERTY_PROPERTIES,
Dataset.JSON_PROPERTY_CONTENT
})
public class Dataset {
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_URL = "url";
private String url;
public static final String JSON_PROPERTY_EXTERNAL = "external";
private Boolean external;
public static final String JSON_PROPERTY_SOURCE = "source";
private String source;
public static final String JSON_PROPERTY_PRIMARY_KEY = "primaryKey";
private String primaryKey;
public static final String JSON_PROPERTY_CONNECTION = "connection";
private String connection;
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_CONTENT = "content";
private Object content;
public Dataset 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 Dataset 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 Dataset 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;
}
/**
* Get external
* @return external
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXTERNAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getExternal() {
return external;
}
public Dataset 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 Dataset primaryKey(String primaryKey) {
this.primaryKey = primaryKey;
return this;
}
/**
* Get primaryKey
* @return primaryKey
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PRIMARY_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPrimaryKey() {
return primaryKey;
}
public void setPrimaryKey(String primaryKey) {
this.primaryKey = primaryKey;
}
public Dataset connection(String connection) {
this.connection = connection;
return this;
}
/**
* Get connection
* @return connection
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CONNECTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getConnection() {
return connection;
}
public void setConnection(String connection) {
this.connection = connection;
}
public Dataset 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 Dataset tags(List tags) {
this.tags = tags;
return this;
}
public Dataset 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 Dataset properties(Map properties) {
this.properties = properties;
return this;
}
public Dataset 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 Dataset content(Object content) {
this.content = content;
return this;
}
/**
* Get content
* @return content
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CONTENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getContent() {
return content;
}
public void setContent(Object content) {
this.content = content;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Dataset dataset = (Dataset) o;
return Objects.equals(this.id, dataset.id) &&
Objects.equals(this.name, dataset.name) &&
Objects.equals(this.client, dataset.client) &&
Objects.equals(this.project, dataset.project) &&
Objects.equals(this.artifact, dataset.artifact) &&
Objects.equals(this.version, dataset.version) &&
Objects.equals(this.build, dataset.build) &&
Objects.equals(this.url, dataset.url) &&
Objects.equals(this.external, dataset.external) &&
Objects.equals(this.source, dataset.source) &&
Objects.equals(this.primaryKey, dataset.primaryKey) &&
Objects.equals(this.connection, dataset.connection) &&
Objects.equals(this.description, dataset.description) &&
Objects.equals(this.created, dataset.created) &&
Objects.equals(this.modified, dataset.modified) &&
Objects.equals(this.tags, dataset.tags) &&
Objects.equals(this.properties, dataset.properties) &&
Objects.equals(this.content, dataset.content);
}
@Override
public int hashCode() {
return Objects.hash(id, name, client, project, artifact, version, build, url, external, source, primaryKey, connection, description, created, modified, tags, properties, content);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Dataset {\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(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" external: ").append(toIndentedString(external)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" primaryKey: ").append(toIndentedString(primaryKey)).append("\n");
sb.append(" connection: ").append(toIndentedString(connection)).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(" content: ").append(toIndentedString(content)).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 ");
}
}