com.seeq.model.AssetTreeBatchInputV1 Maven / Gradle / Ivy
/*
* 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.AssetTreeSingleInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* AssetTreeBatchInputV1
*/
public class AssetTreeBatchInputV1 {
@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();
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;
}
@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.childHostId, assetTreeBatchInputV1.childHostId) &&
Objects.equals(this.disableAssetTreeIndexUpdateDuringSync, assetTreeBatchInputV1.disableAssetTreeIndexUpdateDuringSync) &&
Objects.equals(this.parentHostId, assetTreeBatchInputV1.parentHostId) &&
Objects.equals(this.relationships, assetTreeBatchInputV1.relationships);
}
@Override
public int hashCode() {
return Objects.hash(childHostId, disableAssetTreeIndexUpdateDuringSync, parentHostId, relationships);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AssetTreeBatchInputV1 {\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("}");
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 ");
}
}