io.logicdrop.openapi.models.ContainerResponse 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;
/**
* ContainerResponse
*/
@JsonPropertyOrder({
ContainerResponse.JSON_PROPERTY_DISPLAY,
ContainerResponse.JSON_PROPERTY_DESCRIPTION,
ContainerResponse.JSON_PROPERTY_CLIENT,
ContainerResponse.JSON_PROPERTY_PROJECT,
ContainerResponse.JSON_PROPERTY_RULESET,
ContainerResponse.JSON_PROPERTY_VERSION,
ContainerResponse.JSON_PROPERTY_UPTIME,
ContainerResponse.JSON_PROPERTY_CACHED,
ContainerResponse.JSON_PROPERTY_STATUS,
ContainerResponse.JSON_PROPERTY_ACTIVE
})
public class ContainerResponse {
public static final String JSON_PROPERTY_DISPLAY = "display";
private String display;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
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_RULESET = "ruleset";
private String ruleset;
public static final String JSON_PROPERTY_VERSION = "version";
private String version;
public static final String JSON_PROPERTY_UPTIME = "uptime";
private String uptime;
public static final String JSON_PROPERTY_CACHED = "cached";
private Boolean cached;
/**
* Status of the container
*/
public enum StatusEnum {
RUNNING("RUNNING"),
STOPPED("STOPPED"),
ERROR("ERROR");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
public static final String JSON_PROPERTY_ACTIVE = "active";
private Boolean active;
/**
* Display name
* @return display
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Display name")
@JsonProperty(JSON_PROPERTY_DISPLAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDisplay() {
return display;
}
/**
* Description
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Description")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
/**
* Client name
* @return client
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Client name")
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClient() {
return client;
}
/**
* Project name
* @return project
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Project name")
@JsonProperty(JSON_PROPERTY_PROJECT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProject() {
return project;
}
/**
* Ruleset name
* @return ruleset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Ruleset name")
@JsonProperty(JSON_PROPERTY_RULESET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRuleset() {
return ruleset;
}
/**
* Version
* @return version
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Version")
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getVersion() {
return version;
}
/**
* Total running time
* @return uptime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Total running time")
@JsonProperty(JSON_PROPERTY_UPTIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUptime() {
return uptime;
}
/**
* Is the ruleset cached?
* @return cached
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Is the ruleset cached?")
@JsonProperty(JSON_PROPERTY_CACHED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getCached() {
return cached;
}
/**
* Status of the container
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Status of the container")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() {
return status;
}
/**
* Is the ruleset active?
* @return active
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Is the ruleset active?")
@JsonProperty(JSON_PROPERTY_ACTIVE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getActive() {
return active;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ContainerResponse containerResponse = (ContainerResponse) o;
return Objects.equals(this.display, containerResponse.display) &&
Objects.equals(this.description, containerResponse.description) &&
Objects.equals(this.client, containerResponse.client) &&
Objects.equals(this.project, containerResponse.project) &&
Objects.equals(this.ruleset, containerResponse.ruleset) &&
Objects.equals(this.version, containerResponse.version) &&
Objects.equals(this.uptime, containerResponse.uptime) &&
Objects.equals(this.cached, containerResponse.cached) &&
Objects.equals(this.status, containerResponse.status) &&
Objects.equals(this.active, containerResponse.active);
}
@Override
public int hashCode() {
return Objects.hash(display, description, client, project, ruleset, version, uptime, cached, status, active);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ContainerResponse {\n");
sb.append(" display: ").append(toIndentedString(display)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" client: ").append(toIndentedString(client)).append("\n");
sb.append(" project: ").append(toIndentedString(project)).append("\n");
sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n");
sb.append(" cached: ").append(toIndentedString(cached)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" active: ").append(toIndentedString(active)).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 ");
}
}