com.seeq.model.TreemapItemOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* 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.ScalarValueOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* The size and priority of child leaf assets or aggregations of child asset trees.
*/
@Schema(description = "The size and priority of child leaf assets or aggregations of child asset trees.")
public class TreemapItemOutputV1 {
@JsonProperty("asset")
private AssetOutputV1 asset = null;
@JsonProperty("displayScalars")
private List displayScalars = new ArrayList();
@JsonProperty("isLeafAsset")
private Boolean isLeafAsset = null;
@JsonProperty("priority")
private Integer priority = null;
@JsonProperty("size")
private Object size = null;
@JsonProperty("uncertain")
private Boolean uncertain = false;
public TreemapItemOutputV1 asset(AssetOutputV1 asset) {
this.asset = asset;
return this;
}
/**
* Get asset
* @return asset
**/
@Schema(description = "")
public AssetOutputV1 getAsset() {
return asset;
}
public void setAsset(AssetOutputV1 asset) {
this.asset = asset;
}
public TreemapItemOutputV1 displayScalars(List displayScalars) {
this.displayScalars = displayScalars;
return this;
}
public TreemapItemOutputV1 addDisplayScalarsItem(ScalarValueOutputV1 displayScalarsItem) {
if (this.displayScalars == null) {
this.displayScalars = new ArrayList();
}
this.displayScalars.add(displayScalarsItem);
return this;
}
/**
* The display scalars evaluated for this asset
* @return displayScalars
**/
@Schema(description = "The display scalars evaluated for this asset")
public List getDisplayScalars() {
return displayScalars;
}
public void setDisplayScalars(List displayScalars) {
this.displayScalars = displayScalars;
}
/**
* Get isLeafAsset
* @return isLeafAsset
**/
@Schema(description = "")
public Boolean getIsLeafAsset() {
return isLeafAsset;
}
public TreemapItemOutputV1 priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* The highest priority condition met by this asset or asset tree. The highest priority condition possible has a value of 0; when no conditions are met, -1 is returned.
* @return priority
**/
@Schema(description = "The highest priority condition met by this asset or asset tree. The highest priority condition possible has a value of 0; when no conditions are met, -1 is returned.")
public Integer getPriority() {
return priority;
}
public void setPriority(Integer priority) {
this.priority = priority;
}
public TreemapItemOutputV1 size(Object size) {
this.size = size;
return this;
}
/**
* The relative size of this asset or asset tree
* @return size
**/
@Schema(description = "The relative size of this asset or asset tree")
public Object getSize() {
return size;
}
public void setSize(Object size) {
this.size = size;
}
public TreemapItemOutputV1 uncertain(Boolean uncertain) {
this.uncertain = uncertain;
return this;
}
/**
* True if this item's priority is uncertain
* @return uncertain
**/
@Schema(description = "True if this item's priority is uncertain")
public Boolean getUncertain() {
return uncertain;
}
public void setUncertain(Boolean uncertain) {
this.uncertain = uncertain;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TreemapItemOutputV1 treemapItemOutputV1 = (TreemapItemOutputV1) o;
return Objects.equals(this.asset, treemapItemOutputV1.asset) &&
Objects.equals(this.displayScalars, treemapItemOutputV1.displayScalars) &&
Objects.equals(this.isLeafAsset, treemapItemOutputV1.isLeafAsset) &&
Objects.equals(this.priority, treemapItemOutputV1.priority) &&
Objects.equals(this.size, treemapItemOutputV1.size) &&
Objects.equals(this.uncertain, treemapItemOutputV1.uncertain);
}
@Override
public int hashCode() {
return Objects.hash(asset, displayScalars, isLeafAsset, priority, size, uncertain);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TreemapItemOutputV1 {\n");
sb.append(" asset: ").append(toIndentedString(asset)).append("\n");
sb.append(" displayScalars: ").append(toIndentedString(displayScalars)).append("\n");
sb.append(" isLeafAsset: ").append(toIndentedString(isLeafAsset)).append("\n");
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" uncertain: ").append(toIndentedString(uncertain)).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 ");
}
}