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

com.seeq.model.AssetGroupOutputV1 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: 60.1.3-v202304250417
 * 
 *
 * 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.AssetError;
import com.seeq.model.AssetGroupTreeOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * AssetGroupOutputV1
 */
public class AssetGroupOutputV1 {
  @JsonProperty("assetTree")
  private AssetGroupTreeOutputV1 assetTree = null;

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

  public AssetGroupOutputV1 assetTree(AssetGroupTreeOutputV1 assetTree) {
    this.assetTree = assetTree;
    return this;
  }

   /**
   * Get assetTree
   * @return assetTree
  **/
  @Schema(description = "")
  public AssetGroupTreeOutputV1 getAssetTree() {
    return assetTree;
  }

  public void setAssetTree(AssetGroupTreeOutputV1 assetTree) {
    this.assetTree = assetTree;
  }

  public AssetGroupOutputV1 errors(List errors) {
    this.errors = errors;
    return this;
  }

  public AssetGroupOutputV1 addErrorsItem(AssetError errorsItem) {
    if (this.errors == null) {
      this.errors = new ArrayList();
    }
    this.errors.add(errorsItem);
    return this;
  }

   /**
   * A list of errors generated when attempting to create or update the tree
   * @return errors
  **/
  @Schema(description = "A list of errors generated when attempting to create or update the tree")
  public List getErrors() {
    return errors;
  }

  public void setErrors(List errors) {
    this.errors = errors;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AssetGroupOutputV1 assetGroupOutputV1 = (AssetGroupOutputV1) o;
    return Objects.equals(this.assetTree, assetGroupOutputV1.assetTree) &&
        Objects.equals(this.errors, assetGroupOutputV1.errors);
  }

  @Override
  public int hashCode() {
    return Objects.hash(assetTree, errors);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AssetGroupOutputV1 {\n");
    
    sb.append("    assetTree: ").append(toIndentedString(assetTree)).append("\n");
    sb.append("    errors: ").append(toIndentedString(errors)).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