io.logicdrop.openapi.models.ExternalSource 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ExternalSource
*/
@JsonPropertyOrder({
ExternalSource.JSON_PROPERTY_ID,
ExternalSource.JSON_PROPERTY_SOURCE,
ExternalSource.JSON_PROPERTY_PROJECT,
ExternalSource.JSON_PROPERTY_CLIENT,
ExternalSource.JSON_PROPERTY_PRIMARY_KEY,
ExternalSource.JSON_PROPERTY_CONNECTION
})
public class ExternalSource {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_SOURCE = "source";
private String source;
public static final String JSON_PROPERTY_PROJECT = "project";
private String project;
public static final String JSON_PROPERTY_CLIENT = "client";
private String client;
public static final String JSON_PROPERTY_PRIMARY_KEY = "primaryKey";
private String primaryKey;
public static final String JSON_PROPERTY_CONNECTION = "connection";
private String connection;
public ExternalSource 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 ExternalSource 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 ExternalSource project(String project) {
this.project = project;
return this;
}
/**
* 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 void setProject(String project) {
this.project = project;
}
public ExternalSource client(String client) {
this.client = client;
return this;
}
/**
* Get client
* @return client
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClient() {
return client;
}
public void setClient(String client) {
this.client = client;
}
public ExternalSource 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 ExternalSource 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExternalSource externalSource = (ExternalSource) o;
return Objects.equals(this.id, externalSource.id) &&
Objects.equals(this.source, externalSource.source) &&
Objects.equals(this.project, externalSource.project) &&
Objects.equals(this.client, externalSource.client) &&
Objects.equals(this.primaryKey, externalSource.primaryKey) &&
Objects.equals(this.connection, externalSource.connection);
}
@Override
public int hashCode() {
return Objects.hash(id, source, project, client, primaryKey, connection);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExternalSource {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" project: ").append(toIndentedString(project)).append("\n");
sb.append(" client: ").append(toIndentedString(client)).append("\n");
sb.append(" primaryKey: ").append(toIndentedString(primaryKey)).append("\n");
sb.append(" connection: ").append(toIndentedString(connection)).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 ");
}
}