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

com.seeq.model.ItemDependencyOutputV1 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: 64.4.1-v202409112255
 * 
 *
 * 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.ItemParameterOfOutputV1;
import com.seeq.model.ItemPreviewV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * ItemDependencyOutputV1
 */
public class ItemDependencyOutputV1 {
  @JsonProperty("ancestors")
  private List ancestors = new ArrayList();

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

  @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("name")
  private String name = null;

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

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

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

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

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

  public ItemDependencyOutputV1 addDependenciesItem(ItemParameterOfOutputV1 dependenciesItem) {
    this.dependencies.add(dependenciesItem);
    return this;
  }

   /**
   * The dependencies of the item, direct and indirect
   * @return dependencies
  **/
  @Schema(required = true, description = "The dependencies of the item, direct and indirect")
  public List getDependencies() {
    return dependencies;
  }

  public void setDependencies(List dependencies) {
    this.dependencies = dependencies;
  }

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


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ItemDependencyOutputV1 itemDependencyOutputV1 = (ItemDependencyOutputV1) o;
    return Objects.equals(this.ancestors, itemDependencyOutputV1.ancestors) &&
        Objects.equals(this.dependencies, itemDependencyOutputV1.dependencies) &&
        Objects.equals(this.hasChildren, itemDependencyOutputV1.hasChildren) &&
        Objects.equals(this.id, itemDependencyOutputV1.id) &&
        Objects.equals(this.isArchived, itemDependencyOutputV1.isArchived) &&
        Objects.equals(this.isRedacted, itemDependencyOutputV1.isRedacted) &&
        Objects.equals(this.name, itemDependencyOutputV1.name) &&
        Objects.equals(this.statusMessage, itemDependencyOutputV1.statusMessage) &&
        Objects.equals(this.translationKey, itemDependencyOutputV1.translationKey) &&
        Objects.equals(this.type, itemDependencyOutputV1.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(ancestors, dependencies, hasChildren, id, isArchived, isRedacted, name, statusMessage, translationKey, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ItemDependencyOutputV1 {\n");
    
    sb.append("    ancestors: ").append(toIndentedString(ancestors)).append("\n");
    sb.append("    dependencies: ").append(toIndentedString(dependencies)).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("    name: ").append(toIndentedString(name)).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("}");
    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