com.seeq.model.TreemapOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.AssetOutputV1;
import com.seeq.model.FormulaCompilerErrorOutputV1;
import com.seeq.model.FormulaLogV1;
import com.seeq.model.FormulaUpgradeOutputV1;
import com.seeq.model.TreemapItemOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* TreemapOutputV1
*/
public class TreemapOutputV1 {
@JsonProperty("errors")
private List errors = new ArrayList();
@JsonProperty("metadata")
private Map metadata = new HashMap();
@JsonProperty("parentAsset")
private AssetOutputV1 parentAsset = null;
@JsonProperty("returnType")
private String returnType = null;
@JsonProperty("statusMessage")
private String statusMessage = null;
@JsonProperty("tree")
private List tree = new ArrayList();
@JsonProperty("upgradeDetails")
private FormulaUpgradeOutputV1 upgradeDetails = null;
@JsonProperty("warningCount")
private Integer warningCount = null;
@JsonProperty("warningLogs")
private List warningLogs = new ArrayList();
public TreemapOutputV1 errors(List errors) {
this.errors = errors;
return this;
}
public TreemapOutputV1 addErrorsItem(FormulaCompilerErrorOutputV1 errorsItem) {
if (this.errors == null) {
this.errors = new ArrayList();
}
this.errors.add(errorsItem);
return this;
}
/**
* Errors (if any) from the formula
* @return errors
**/
@Schema(description = "Errors (if any) from the formula")
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
public TreemapOutputV1 metadata(Map metadata) {
this.metadata = metadata;
return this;
}
public TreemapOutputV1 putMetadataItem(String key, String metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap();
}
this.metadata.put(key, metadataItem);
return this;
}
/**
* Metadata describing the compiled formula's result
* @return metadata
**/
@Schema(description = "Metadata describing the compiled formula's result")
public Map getMetadata() {
return metadata;
}
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
public TreemapOutputV1 parentAsset(AssetOutputV1 parentAsset) {
this.parentAsset = parentAsset;
return this;
}
/**
* Get parentAsset
* @return parentAsset
**/
@Schema(description = "")
public AssetOutputV1 getParentAsset() {
return parentAsset;
}
public void setParentAsset(AssetOutputV1 parentAsset) {
this.parentAsset = parentAsset;
}
public TreemapOutputV1 returnType(String returnType) {
this.returnType = returnType;
return this;
}
/**
* The data type of the compiled formula's result
* @return returnType
**/
@Schema(description = "The data type of the compiled formula's result")
public String getReturnType() {
return returnType;
}
public void setReturnType(String returnType) {
this.returnType = returnType;
}
public TreemapOutputV1 statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
/**
* A plain language status message with information about any issues that may have been encountered during an operation. Null if the status message has not been set.
* @return statusMessage
**/
@Schema(description = "A plain language status message with information about any issues that may have been encountered during an operation. Null if the status message has not been set.")
public String getStatusMessage() {
return statusMessage;
}
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
public TreemapOutputV1 tree(List tree) {
this.tree = tree;
return this;
}
public TreemapOutputV1 addTreeItem(TreemapItemOutputV1 treeItem) {
if (this.tree == null) {
this.tree = new ArrayList();
}
this.tree.add(treeItem);
return this;
}
/**
* The size and priority of child leaf assets or aggregations of child asset trees.
* @return tree
**/
@Schema(description = "The size and priority of child leaf assets or aggregations of child asset trees.")
public List getTree() {
return tree;
}
public void setTree(List tree) {
this.tree = tree;
}
public TreemapOutputV1 upgradeDetails(FormulaUpgradeOutputV1 upgradeDetails) {
this.upgradeDetails = upgradeDetails;
return this;
}
/**
* Get upgradeDetails
* @return upgradeDetails
**/
@Schema(description = "")
public FormulaUpgradeOutputV1 getUpgradeDetails() {
return upgradeDetails;
}
public void setUpgradeDetails(FormulaUpgradeOutputV1 upgradeDetails) {
this.upgradeDetails = upgradeDetails;
}
public TreemapOutputV1 warningCount(Integer warningCount) {
this.warningCount = warningCount;
return this;
}
/**
* The total number of warnings that have occurred
* @return warningCount
**/
@Schema(description = "The total number of warnings that have occurred")
public Integer getWarningCount() {
return warningCount;
}
public void setWarningCount(Integer warningCount) {
this.warningCount = warningCount;
}
public TreemapOutputV1 warningLogs(List warningLogs) {
this.warningLogs = warningLogs;
return this;
}
public TreemapOutputV1 addWarningLogsItem(FormulaLogV1 warningLogsItem) {
if (this.warningLogs == null) {
this.warningLogs = new ArrayList();
}
this.warningLogs.add(warningLogsItem);
return this;
}
/**
* The Formula warning logs, which includes the text, line number, and column number where the warning occurred in addition to the warning details
* @return warningLogs
**/
@Schema(description = "The Formula warning logs, which includes the text, line number, and column number where the warning occurred in addition to the warning details")
public List getWarningLogs() {
return warningLogs;
}
public void setWarningLogs(List warningLogs) {
this.warningLogs = warningLogs;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TreemapOutputV1 treemapOutputV1 = (TreemapOutputV1) o;
return Objects.equals(this.errors, treemapOutputV1.errors) &&
Objects.equals(this.metadata, treemapOutputV1.metadata) &&
Objects.equals(this.parentAsset, treemapOutputV1.parentAsset) &&
Objects.equals(this.returnType, treemapOutputV1.returnType) &&
Objects.equals(this.statusMessage, treemapOutputV1.statusMessage) &&
Objects.equals(this.tree, treemapOutputV1.tree) &&
Objects.equals(this.upgradeDetails, treemapOutputV1.upgradeDetails) &&
Objects.equals(this.warningCount, treemapOutputV1.warningCount) &&
Objects.equals(this.warningLogs, treemapOutputV1.warningLogs);
}
@Override
public int hashCode() {
return Objects.hash(errors, metadata, parentAsset, returnType, statusMessage, tree, upgradeDetails, warningCount, warningLogs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TreemapOutputV1 {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" parentAsset: ").append(toIndentedString(parentAsset)).append("\n");
sb.append(" returnType: ").append(toIndentedString(returnType)).append("\n");
sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
sb.append(" tree: ").append(toIndentedString(tree)).append("\n");
sb.append(" upgradeDetails: ").append(toIndentedString(upgradeDetails)).append("\n");
sb.append(" warningCount: ").append(toIndentedString(warningCount)).append("\n");
sb.append(" warningLogs: ").append(toIndentedString(warningLogs)).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 ");
}
}