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

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

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * 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.FormulaParameterOutputV1;
import com.seeq.model.ItemPreviewV1;
import com.seeq.model.ScalarPropertyV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * The list of items
 */
@Schema(description = "The list of items")
public class ItemSearchPreviewV1 {
  @JsonProperty("ancestors")
  private List ancestors = new ArrayList();

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

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

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

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

  @JsonProperty("includedProperties")
  private Map includedProperties = new HashMap();

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

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

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

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

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

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

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

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

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

  public ItemSearchPreviewV1 ancestors(List ancestors) {
    this.ancestors = ancestors;
    return this;
  }

  public ItemSearchPreviewV1 addAncestorsItem(ItemPreviewV1 ancestorsItem) {
    if (this.ancestors == null) {
      this.ancestors = new ArrayList();
    }
    this.ancestors.add(ancestorsItem);
    return this;
  }

   /**
   * The list of ancestors in the asset tree, ordered with the root ancestor first, if the item is in an asset tree. If an item is in more than one asset tree an arbitrary one will be chosen.
   * @return ancestors
  **/
  @Schema(description = "The list of ancestors in the asset tree, ordered with the root ancestor first, if the item is in an asset tree. If an item is in more than one asset tree an arbitrary one will be chosen.")
  public List getAncestors() {
    return ancestors;
  }

  public void setAncestors(List ancestors) {
    this.ancestors = ancestors;
  }

  public ItemSearchPreviewV1 datasource(ItemPreviewV1 datasource) {
    this.datasource = datasource;
    return this;
  }

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

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

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

   /**
   * The description of the item
   * @return description
  **/
  @Schema(description = "The description of the item")
  public String getDescription() {
    return description;
  }

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

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

   /**
   * A boolean indicating whether or not child items exist for this item in the asset tree; the value will be true even if the child items are archived unless the tree for this item is deleted.
   * @return hasChildren
  **/
  @Schema(description = "A boolean indicating whether or not child items exist for this item in the asset tree; the value will be true even if the child items are archived unless the tree for this item is deleted.")
  public Boolean getHasChildren() {
    return hasChildren;
  }

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

  public ItemSearchPreviewV1 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 ItemSearchPreviewV1 includedProperties(Map includedProperties) {
    this.includedProperties = includedProperties;
    return this;
  }

  public ItemSearchPreviewV1 putIncludedPropertiesItem(String key, ScalarPropertyV1 includedPropertiesItem) {
    if (this.includedProperties == null) {
      this.includedProperties = new HashMap();
    }
    this.includedProperties.put(key, includedPropertiesItem);
    return this;
  }

   /**
   * Item properties mapped by name, corresponding to the properties requested for the search. Note that this will be empty if no properties were requested.
   * @return includedProperties
  **/
  @Schema(description = "Item properties mapped by name, corresponding to the properties requested for the search. Note that this will be empty if no properties were requested.")
  public Map getIncludedProperties() {
    return includedProperties;
  }

  public void setIncludedProperties(Map includedProperties) {
    this.includedProperties = includedProperties;
  }

  public ItemSearchPreviewV1 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 ItemSearchPreviewV1 isAssetGroupItem(Boolean isAssetGroupItem) {
    this.isAssetGroupItem = isAssetGroupItem;
    return this;
  }

   /**
   * True if the item belongs to an asset group
   * @return isAssetGroupItem
  **/
  @Schema(description = "True if the item belongs to an asset group")
  public Boolean getIsAssetGroupItem() {
    return isAssetGroupItem;
  }

  public void setIsAssetGroupItem(Boolean isAssetGroupItem) {
    this.isAssetGroupItem = isAssetGroupItem;
  }

  public ItemSearchPreviewV1 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 ItemSearchPreviewV1 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 ItemSearchPreviewV1 parameters(List parameters) {
    this.parameters = parameters;
    return this;
  }

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

   /**
   * Get parameters
   * @return parameters
  **/
  @Schema(description = "")
  public List getParameters() {
    return parameters;
  }

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

  public ItemSearchPreviewV1 sourceValueUnitOfMeasure(String sourceValueUnitOfMeasure) {
    this.sourceValueUnitOfMeasure = sourceValueUnitOfMeasure;
    return this;
  }

   /**
   * The datasource's original, unparsed unit of measure for the values, if it exists
   * @return sourceValueUnitOfMeasure
  **/
  @Schema(description = "The datasource's original, unparsed unit of measure for the values, if it exists")
  public String getSourceValueUnitOfMeasure() {
    return sourceValueUnitOfMeasure;
  }

  public void setSourceValueUnitOfMeasure(String sourceValueUnitOfMeasure) {
    this.sourceValueUnitOfMeasure = sourceValueUnitOfMeasure;
  }

  public ItemSearchPreviewV1 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 ItemSearchPreviewV1 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 ItemSearchPreviewV1 valueUnitOfMeasure(String valueUnitOfMeasure) {
    this.valueUnitOfMeasure = valueUnitOfMeasure;
    return this;
  }

   /**
   * The Seeq-recognized unit of measure for the values, if it exists
   * @return valueUnitOfMeasure
  **/
  @Schema(description = "The Seeq-recognized unit of measure for the values, if it exists")
  public String getValueUnitOfMeasure() {
    return valueUnitOfMeasure;
  }

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


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ItemSearchPreviewV1 itemSearchPreviewV1 = (ItemSearchPreviewV1) o;
    return Objects.equals(this.ancestors, itemSearchPreviewV1.ancestors) &&
        Objects.equals(this.datasource, itemSearchPreviewV1.datasource) &&
        Objects.equals(this.description, itemSearchPreviewV1.description) &&
        Objects.equals(this.hasChildren, itemSearchPreviewV1.hasChildren) &&
        Objects.equals(this.id, itemSearchPreviewV1.id) &&
        Objects.equals(this.includedProperties, itemSearchPreviewV1.includedProperties) &&
        Objects.equals(this.isArchived, itemSearchPreviewV1.isArchived) &&
        Objects.equals(this.isAssetGroupItem, itemSearchPreviewV1.isAssetGroupItem) &&
        Objects.equals(this.isRedacted, itemSearchPreviewV1.isRedacted) &&
        Objects.equals(this.name, itemSearchPreviewV1.name) &&
        Objects.equals(this.parameters, itemSearchPreviewV1.parameters) &&
        Objects.equals(this.sourceValueUnitOfMeasure, itemSearchPreviewV1.sourceValueUnitOfMeasure) &&
        Objects.equals(this.translationKey, itemSearchPreviewV1.translationKey) &&
        Objects.equals(this.type, itemSearchPreviewV1.type) &&
        Objects.equals(this.valueUnitOfMeasure, itemSearchPreviewV1.valueUnitOfMeasure);
  }

  @Override
  public int hashCode() {
    return Objects.hash(ancestors, datasource, description, hasChildren, id, includedProperties, isArchived, isAssetGroupItem, isRedacted, name, parameters, sourceValueUnitOfMeasure, translationKey, type, valueUnitOfMeasure);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ItemSearchPreviewV1 {\n");
    
    sb.append("    ancestors: ").append(toIndentedString(ancestors)).append("\n");
    sb.append("    datasource: ").append(toIndentedString(datasource)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    hasChildren: ").append(toIndentedString(hasChildren)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    includedProperties: ").append(toIndentedString(includedProperties)).append("\n");
    sb.append("    isArchived: ").append(toIndentedString(isArchived)).append("\n");
    sb.append("    isAssetGroupItem: ").append(toIndentedString(isAssetGroupItem)).append("\n");
    sb.append("    isRedacted: ").append(toIndentedString(isRedacted)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    parameters: ").append(toIndentedString(parameters)).append("\n");
    sb.append("    sourceValueUnitOfMeasure: ").append(toIndentedString(sourceValueUnitOfMeasure)).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("}");
    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