All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.TreeItemOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.3.0-v202405012032
 * 
 *
 * 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.DatasourcePreviewV1;
import com.seeq.model.FormulaParameterOutputV1;
import com.seeq.model.PermissionsV1;
import com.seeq.model.PropertyOutputV1;
import com.seeq.model.TreeItemOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/**
 * The list of the specified tree node's children
 */
@Schema(description = "The list of the specified tree node's children")
public class TreeItemOutputV1 {
  @JsonProperty("cached")
  private Boolean cached = false;

  @JsonProperty("children")
  private List children = new ArrayList();

  @JsonProperty("createdBy")
  private String createdBy = null;

  @JsonProperty("datasource")
  private DatasourcePreviewV1 datasource = null;

  @JsonProperty("description")
  private String description = null;

  @JsonProperty("effectivePermissions")
  private PermissionsV1 effectivePermissions = null;

  @JsonProperty("fingerprint")
  private String fingerprint = null;

  @JsonProperty("hasChildren")
  private Boolean hasChildren = false;

  @JsonProperty("id")
  private String id = null;

  @JsonProperty("isArchived")
  private Boolean isArchived = false;

  @JsonProperty("isRedacted")
  private Boolean isRedacted = false;

  @JsonProperty("manuallyAdded")
  private String manuallyAdded = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("parameters")
  private List parameters = new ArrayList();

  @JsonProperty("properties")
  private List properties = new ArrayList();

  @JsonProperty("scopedTo")
  private String scopedTo = null;

  @JsonProperty("statusMessage")
  private String statusMessage = null;

  @JsonProperty("translationKey")
  private String translationKey = null;

  @JsonProperty("type")
  private String type = null;

  @JsonProperty("valueUnitOfMeasure")
  private String valueUnitOfMeasure = null;

  @JsonProperty("workbookId")
  private UUID workbookId = null;

  public TreeItemOutputV1 cached(Boolean cached) {
    this.cached = cached;
    return this;
  }

   /**
   * Indicates whether the item's persistent disk cache is enabled. Only present for items which support caching
   * @return cached
  **/
  @Schema(description = "Indicates whether the item's persistent disk cache is enabled. Only present for items which support caching")
  public Boolean getCached() {
    return cached;
  }

  public void setCached(Boolean cached) {
    this.cached = cached;
  }

  public TreeItemOutputV1 children(List children) {
    this.children = children;
    return this;
  }

  public TreeItemOutputV1 addChildrenItem(TreeItemOutputV1 childrenItem) {
    if (this.children == null) {
      this.children = new ArrayList();
    }
    this.children.add(childrenItem);
    return this;
  }

   /**
   * Children of the tree node
   * @return children
  **/
  @Schema(description = "Children of the tree node")
  public List getChildren() {
    return children;
  }

  public void setChildren(List children) {
    this.children = children;
  }

  public TreeItemOutputV1 createdBy(String createdBy) {
    this.createdBy = createdBy;
    return this;
  }

   /**
   * UUID of the user who created the asset tree
   * @return createdBy
  **/
  @Schema(description = "UUID of the user who created the asset tree")
  public String getCreatedBy() {
    return createdBy;
  }

  public void setCreatedBy(String createdBy) {
    this.createdBy = createdBy;
  }

  public TreeItemOutputV1 datasource(DatasourcePreviewV1 datasource) {
    this.datasource = datasource;
    return this;
  }

   /**
   * Get datasource
   * @return datasource
  **/
  @Schema(description = "")
  public DatasourcePreviewV1 getDatasource() {
    return datasource;
  }

  public void setDatasource(DatasourcePreviewV1 datasource) {
    this.datasource = datasource;
  }

  public TreeItemOutputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Clarifying information or other plain language description of this item
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public TreeItemOutputV1 effectivePermissions(PermissionsV1 effectivePermissions) {
    this.effectivePermissions = effectivePermissions;
    return this;
  }

   /**
   * Get effectivePermissions
   * @return effectivePermissions
  **/
  @Schema(description = "")
  public PermissionsV1 getEffectivePermissions() {
    return effectivePermissions;
  }

  public void setEffectivePermissions(PermissionsV1 effectivePermissions) {
    this.effectivePermissions = effectivePermissions;
  }

  public TreeItemOutputV1 fingerprint(String fingerprint) {
    this.fingerprint = fingerprint;
    return this;
  }

   /**
   * For stored items, an optional CDC (Change Data Capture) attribute.
   * @return fingerprint
  **/
  @Schema(description = "For stored items, an optional CDC (Change Data Capture) attribute.")
  public String getFingerprint() {
    return fingerprint;
  }

  public void setFingerprint(String fingerprint) {
    this.fingerprint = fingerprint;
  }

  public TreeItemOutputV1 hasChildren(Boolean hasChildren) {
    this.hasChildren = hasChildren;
    return this;
  }

   /**
   * True if this item has children
   * @return hasChildren
  **/
  @Schema(description = "True if this item has children")
  public Boolean getHasChildren() {
    return hasChildren;
  }

  public void setHasChildren(Boolean hasChildren) {
    this.hasChildren = hasChildren;
  }

  public TreeItemOutputV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The ID that can be used to interact with the item
   * @return id
  **/
  @Schema(required = true, description = "The ID that can be used to interact with the item")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public TreeItemOutputV1 isArchived(Boolean isArchived) {
    this.isArchived = isArchived;
    return this;
  }

   /**
   * Whether item is archived
   * @return isArchived
  **/
  @Schema(description = "Whether item is archived")
  public Boolean getIsArchived() {
    return isArchived;
  }

  public void setIsArchived(Boolean isArchived) {
    this.isArchived = isArchived;
  }

  public TreeItemOutputV1 isRedacted(Boolean isRedacted) {
    this.isRedacted = isRedacted;
    return this;
  }

   /**
   * Whether item is redacted
   * @return isRedacted
  **/
  @Schema(description = "Whether item is redacted")
  public Boolean getIsRedacted() {
    return isRedacted;
  }

  public void setIsRedacted(Boolean isRedacted) {
    this.isRedacted = isRedacted;
  }

  public TreeItemOutputV1 manuallyAdded(String manuallyAdded) {
    this.manuallyAdded = manuallyAdded;
    return this;
  }

   /**
   * UUID of the user who manually added the asset to the group
   * @return manuallyAdded
  **/
  @Schema(description = "UUID of the user who manually added the asset to the group")
  public String getManuallyAdded() {
    return manuallyAdded;
  }

  public void setManuallyAdded(String manuallyAdded) {
    this.manuallyAdded = manuallyAdded;
  }

  public TreeItemOutputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * The human readable name
   * @return name
  **/
  @Schema(required = true, description = "The human readable name")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public TreeItemOutputV1 parameters(List parameters) {
    this.parameters = parameters;
    return this;
  }

  public TreeItemOutputV1 addParametersItem(FormulaParameterOutputV1 parametersItem) {
    if (this.parameters == null) {
      this.parameters = new ArrayList();
    }
    this.parameters.add(parametersItem);
    return this;
  }

   /**
   * Formula Parameters used to create the formula
   * @return parameters
  **/
  @Schema(description = "Formula Parameters used to create the formula")
  public List getParameters() {
    return parameters;
  }

  public void setParameters(List parameters) {
    this.parameters = parameters;
  }

  public TreeItemOutputV1 properties(List properties) {
    this.properties = properties;
    return this;
  }

  public TreeItemOutputV1 addPropertiesItem(PropertyOutputV1 propertiesItem) {
    this.properties.add(propertiesItem);
    return this;
  }

   /**
   * The list of the item's properties
   * @return properties
  **/
  @Schema(required = true, description = "The list of the item's properties")
  public List getProperties() {
    return properties;
  }

  public void setProperties(List properties) {
    this.properties = properties;
  }

  public TreeItemOutputV1 scopedTo(String scopedTo) {
    this.scopedTo = scopedTo;
    return this;
  }

   /**
   * The ID of the workbook to which this item is scoped or null if it is in the global scope.
   * @return scopedTo
  **/
  @Schema(description = "The ID of the workbook to which this item is scoped or null if it is in the global scope.")
  public String getScopedTo() {
    return scopedTo;
  }

  public void setScopedTo(String scopedTo) {
    this.scopedTo = scopedTo;
  }

  public TreeItemOutputV1 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
   * @return statusMessage
  **/
  @Schema(description = "A plain language status message with information about any issues that may have been encountered during an operation")
  public String getStatusMessage() {
    return statusMessage;
  }

  public void setStatusMessage(String statusMessage) {
    this.statusMessage = statusMessage;
  }

  public TreeItemOutputV1 translationKey(String translationKey) {
    this.translationKey = translationKey;
    return this;
  }

   /**
   * The item's translation key, if any
   * @return translationKey
  **/
  @Schema(description = "The item's translation key, if any")
  public String getTranslationKey() {
    return translationKey;
  }

  public void setTranslationKey(String translationKey) {
    this.translationKey = translationKey;
  }

  public TreeItemOutputV1 type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The type of the item
   * @return type
  **/
  @Schema(required = true, description = "The type of the item")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public TreeItemOutputV1 valueUnitOfMeasure(String valueUnitOfMeasure) {
    this.valueUnitOfMeasure = valueUnitOfMeasure;
    return this;
  }

   /**
   * If item is a signal, the unit of measure for the values
   * @return valueUnitOfMeasure
  **/
  @Schema(description = "If item is a signal, the unit of measure for the values")
  public String getValueUnitOfMeasure() {
    return valueUnitOfMeasure;
  }

  public void setValueUnitOfMeasure(String valueUnitOfMeasure) {
    this.valueUnitOfMeasure = valueUnitOfMeasure;
  }

  public TreeItemOutputV1 workbookId(UUID workbookId) {
    this.workbookId = workbookId;
    return this;
  }

   /**
   * If the item is a worksheet, the ID of its associated workbook
   * @return workbookId
  **/
  @Schema(description = "If the item is a worksheet, the ID of its associated workbook")
  public UUID getWorkbookId() {
    return workbookId;
  }

  public void setWorkbookId(UUID workbookId) {
    this.workbookId = workbookId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TreeItemOutputV1 treeItemOutputV1 = (TreeItemOutputV1) o;
    return Objects.equals(this.cached, treeItemOutputV1.cached) &&
        Objects.equals(this.children, treeItemOutputV1.children) &&
        Objects.equals(this.createdBy, treeItemOutputV1.createdBy) &&
        Objects.equals(this.datasource, treeItemOutputV1.datasource) &&
        Objects.equals(this.description, treeItemOutputV1.description) &&
        Objects.equals(this.effectivePermissions, treeItemOutputV1.effectivePermissions) &&
        Objects.equals(this.fingerprint, treeItemOutputV1.fingerprint) &&
        Objects.equals(this.hasChildren, treeItemOutputV1.hasChildren) &&
        Objects.equals(this.id, treeItemOutputV1.id) &&
        Objects.equals(this.isArchived, treeItemOutputV1.isArchived) &&
        Objects.equals(this.isRedacted, treeItemOutputV1.isRedacted) &&
        Objects.equals(this.manuallyAdded, treeItemOutputV1.manuallyAdded) &&
        Objects.equals(this.name, treeItemOutputV1.name) &&
        Objects.equals(this.parameters, treeItemOutputV1.parameters) &&
        Objects.equals(this.properties, treeItemOutputV1.properties) &&
        Objects.equals(this.scopedTo, treeItemOutputV1.scopedTo) &&
        Objects.equals(this.statusMessage, treeItemOutputV1.statusMessage) &&
        Objects.equals(this.translationKey, treeItemOutputV1.translationKey) &&
        Objects.equals(this.type, treeItemOutputV1.type) &&
        Objects.equals(this.valueUnitOfMeasure, treeItemOutputV1.valueUnitOfMeasure) &&
        Objects.equals(this.workbookId, treeItemOutputV1.workbookId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cached, children, createdBy, datasource, description, effectivePermissions, fingerprint, hasChildren, id, isArchived, isRedacted, manuallyAdded, name, parameters, properties, scopedTo, statusMessage, translationKey, type, valueUnitOfMeasure, workbookId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TreeItemOutputV1 {\n");
    
    sb.append("    cached: ").append(toIndentedString(cached)).append("\n");
    sb.append("    children: ").append(toIndentedString(children)).append("\n");
    sb.append("    createdBy: ").append(toIndentedString(createdBy)).append("\n");
    sb.append("    datasource: ").append(toIndentedString(datasource)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    effectivePermissions: ").append(toIndentedString(effectivePermissions)).append("\n");
    sb.append("    fingerprint: ").append(toIndentedString(fingerprint)).append("\n");
    sb.append("    hasChildren: ").append(toIndentedString(hasChildren)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    isArchived: ").append(toIndentedString(isArchived)).append("\n");
    sb.append("    isRedacted: ").append(toIndentedString(isRedacted)).append("\n");
    sb.append("    manuallyAdded: ").append(toIndentedString(manuallyAdded)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    parameters: ").append(toIndentedString(parameters)).append("\n");
    sb.append("    properties: ").append(toIndentedString(properties)).append("\n");
    sb.append("    scopedTo: ").append(toIndentedString(scopedTo)).append("\n");
    sb.append("    statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
    sb.append("    translationKey: ").append(toIndentedString(translationKey)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    valueUnitOfMeasure: ").append(toIndentedString(valueUnitOfMeasure)).append("\n");
    sb.append("    workbookId: ").append(toIndentedString(workbookId)).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    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy