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

com.seeq.model.AssetTreeBatchInputV1 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.AssetTreeSingleInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * AssetTreeBatchInputV1
 */
public class AssetTreeBatchInputV1 {
  @JsonProperty("assetTreeRelationships")
  private List assetTreeRelationships = new ArrayList();

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

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

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

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

  @JsonProperty("updateAssetTreeIndexDuringSync")
  private Boolean updateAssetTreeIndexDuringSync = null;

  public AssetTreeBatchInputV1 assetTreeRelationships(List assetTreeRelationships) {
    this.assetTreeRelationships = assetTreeRelationships;
    return this;
  }

  public AssetTreeBatchInputV1 addAssetTreeRelationshipsItem(AssetTreeSingleInputV1 assetTreeRelationshipsItem) {
    if (this.assetTreeRelationships == null) {
      this.assetTreeRelationships = new ArrayList();
    }
    this.assetTreeRelationships.add(assetTreeRelationshipsItem);
    return this;
  }

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

  public void setAssetTreeRelationships(List assetTreeRelationships) {
    this.assetTreeRelationships = assetTreeRelationships;
  }

  public AssetTreeBatchInputV1 childHostId(String childHostId) {
    this.childHostId = childHostId;
    return this;
  }

   /**
   * The Seeq ID of the datasource host in which the children are located.
   * @return childHostId
  **/
  @Schema(required = true, description = "The Seeq ID of the datasource host in which the children are located.")
  public String getChildHostId() {
    return childHostId;
  }

  public void setChildHostId(String childHostId) {
    this.childHostId = childHostId;
  }

  public AssetTreeBatchInputV1 disableAssetTreeIndexUpdateDuringSync(Boolean disableAssetTreeIndexUpdateDuringSync) {
    this.disableAssetTreeIndexUpdateDuringSync = disableAssetTreeIndexUpdateDuringSync;
    return this;
  }

   /**
   * Whether to keep asset tree search index up to date during the sync or not
   * @return disableAssetTreeIndexUpdateDuringSync
  **/
  @Schema(description = "Whether to keep asset tree search index up to date during the sync or not")
  public Boolean getDisableAssetTreeIndexUpdateDuringSync() {
    return disableAssetTreeIndexUpdateDuringSync;
  }

  public void setDisableAssetTreeIndexUpdateDuringSync(Boolean disableAssetTreeIndexUpdateDuringSync) {
    this.disableAssetTreeIndexUpdateDuringSync = disableAssetTreeIndexUpdateDuringSync;
  }

  public AssetTreeBatchInputV1 parentHostId(String parentHostId) {
    this.parentHostId = parentHostId;
    return this;
  }

   /**
   * The Seeq ID of the datasource host in which the parents are located.
   * @return parentHostId
  **/
  @Schema(required = true, description = "The Seeq ID of the datasource host in which the parents are located.")
  public String getParentHostId() {
    return parentHostId;
  }

  public void setParentHostId(String parentHostId) {
    this.parentHostId = parentHostId;
  }

  public AssetTreeBatchInputV1 relationships(List relationships) {
    this.relationships = relationships;
    return this;
  }

  public AssetTreeBatchInputV1 addRelationshipsItem(AssetTreeSingleInputV1 relationshipsItem) {
    if (this.relationships == null) {
      this.relationships = new ArrayList();
    }
    this.relationships.add(relationshipsItem);
    return this;
  }

   /**
   * The list containing AssetTreeSingleInputV1s to create/update parent-child relationships with.
   * @return relationships
  **/
  @Schema(description = "The list containing AssetTreeSingleInputV1s to create/update parent-child relationships with.")
  public List getRelationships() {
    return relationships;
  }

  public void setRelationships(List relationships) {
    this.relationships = relationships;
  }

  public AssetTreeBatchInputV1 updateAssetTreeIndexDuringSync(Boolean updateAssetTreeIndexDuringSync) {
    this.updateAssetTreeIndexDuringSync = updateAssetTreeIndexDuringSync;
    return this;
  }

   /**
   * Get updateAssetTreeIndexDuringSync
   * @return updateAssetTreeIndexDuringSync
  **/
  @Schema(description = "")
  public Boolean getUpdateAssetTreeIndexDuringSync() {
    return updateAssetTreeIndexDuringSync;
  }

  public void setUpdateAssetTreeIndexDuringSync(Boolean updateAssetTreeIndexDuringSync) {
    this.updateAssetTreeIndexDuringSync = updateAssetTreeIndexDuringSync;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AssetTreeBatchInputV1 assetTreeBatchInputV1 = (AssetTreeBatchInputV1) o;
    return Objects.equals(this.assetTreeRelationships, assetTreeBatchInputV1.assetTreeRelationships) &&
        Objects.equals(this.childHostId, assetTreeBatchInputV1.childHostId) &&
        Objects.equals(this.disableAssetTreeIndexUpdateDuringSync, assetTreeBatchInputV1.disableAssetTreeIndexUpdateDuringSync) &&
        Objects.equals(this.parentHostId, assetTreeBatchInputV1.parentHostId) &&
        Objects.equals(this.relationships, assetTreeBatchInputV1.relationships) &&
        Objects.equals(this.updateAssetTreeIndexDuringSync, assetTreeBatchInputV1.updateAssetTreeIndexDuringSync);
  }

  @Override
  public int hashCode() {
    return Objects.hash(assetTreeRelationships, childHostId, disableAssetTreeIndexUpdateDuringSync, parentHostId, relationships, updateAssetTreeIndexDuringSync);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AssetTreeBatchInputV1 {\n");
    
    sb.append("    assetTreeRelationships: ").append(toIndentedString(assetTreeRelationships)).append("\n");
    sb.append("    childHostId: ").append(toIndentedString(childHostId)).append("\n");
    sb.append("    disableAssetTreeIndexUpdateDuringSync: ").append(toIndentedString(disableAssetTreeIndexUpdateDuringSync)).append("\n");
    sb.append("    parentHostId: ").append(toIndentedString(parentHostId)).append("\n");
    sb.append("    relationships: ").append(toIndentedString(relationships)).append("\n");
    sb.append("    updateAssetTreeIndexDuringSync: ").append(toIndentedString(updateAssetTreeIndexDuringSync)).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