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

com.seeq.model.AssetGroupTreeOutputV1 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: 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.AssetGroupTreeOutputV1;
import com.seeq.model.FormulaParameterOutputV1;
import com.seeq.model.ItemPreviewWithAssetsV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * The asset tree that was created or updated
 */
@Schema(description = "The asset tree that was created or updated")
public class AssetGroupTreeOutputV1 {
  @JsonProperty("children")
  private List children = new ArrayList();

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

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

  @JsonProperty("item")
  private ItemPreviewWithAssetsV1 item = null;

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

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

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

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

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

  public AssetGroupTreeOutputV1 datasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
    return this;
  }

   /**
   * The datasource id of the tree node
   * @return datasourceId
  **/
  @Schema(description = "The datasource id of the tree node")
  public String getDatasourceId() {
    return datasourceId;
  }

  public void setDatasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
  }

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

   /**
   * A description of the tree node
   * @return description
  **/
  @Schema(description = "A description of the tree node")
  public String getDescription() {
    return description;
  }

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

  public AssetGroupTreeOutputV1 item(ItemPreviewWithAssetsV1 item) {
    this.item = item;
    return this;
  }

   /**
   * Get item
   * @return item
  **/
  @Schema(description = "")
  public ItemPreviewWithAssetsV1 getItem() {
    return item;
  }

  public void setItem(ItemPreviewWithAssetsV1 item) {
    this.item = item;
  }

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

  public AssetGroupTreeOutputV1 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;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AssetGroupTreeOutputV1 assetGroupTreeOutputV1 = (AssetGroupTreeOutputV1) o;
    return Objects.equals(this.children, assetGroupTreeOutputV1.children) &&
        Objects.equals(this.datasourceId, assetGroupTreeOutputV1.datasourceId) &&
        Objects.equals(this.description, assetGroupTreeOutputV1.description) &&
        Objects.equals(this.item, assetGroupTreeOutputV1.item) &&
        Objects.equals(this.parameters, assetGroupTreeOutputV1.parameters);
  }

  @Override
  public int hashCode() {
    return Objects.hash(children, datasourceId, description, item, parameters);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AssetGroupTreeOutputV1 {\n");
    
    sb.append("    children: ").append(toIndentedString(children)).append("\n");
    sb.append("    datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    item: ").append(toIndentedString(item)).append("\n");
    sb.append("    parameters: ").append(toIndentedString(parameters)).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