com.seeq.model.ItemPreviewWithAssetsV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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.ItemPreviewV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* The list of all items referenced by the specified workstep and worksheet
*/
@Schema(description = "The list of all items referenced by the specified workstep and worksheet")
public class ItemPreviewWithAssetsV1 {
@JsonProperty("ancestors")
private List ancestors = 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("translationKey")
private String translationKey = null;
@JsonProperty("type")
private String type = null;
public ItemPreviewWithAssetsV1 ancestors(List ancestors) {
this.ancestors = ancestors;
return this;
}
public ItemPreviewWithAssetsV1 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 ItemPreviewWithAssetsV1 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 ItemPreviewWithAssetsV1 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 ItemPreviewWithAssetsV1 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 ItemPreviewWithAssetsV1 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 ItemPreviewWithAssetsV1 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 ItemPreviewWithAssetsV1 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 ItemPreviewWithAssetsV1 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;
}
ItemPreviewWithAssetsV1 itemPreviewWithAssetsV1 = (ItemPreviewWithAssetsV1) o;
return Objects.equals(this.ancestors, itemPreviewWithAssetsV1.ancestors) &&
Objects.equals(this.hasChildren, itemPreviewWithAssetsV1.hasChildren) &&
Objects.equals(this.id, itemPreviewWithAssetsV1.id) &&
Objects.equals(this.isArchived, itemPreviewWithAssetsV1.isArchived) &&
Objects.equals(this.isRedacted, itemPreviewWithAssetsV1.isRedacted) &&
Objects.equals(this.name, itemPreviewWithAssetsV1.name) &&
Objects.equals(this.translationKey, itemPreviewWithAssetsV1.translationKey) &&
Objects.equals(this.type, itemPreviewWithAssetsV1.type);
}
@Override
public int hashCode() {
return Objects.hash(ancestors, hasChildren, id, isArchived, isRedacted, name, translationKey, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ItemPreviewWithAssetsV1 {\n");
sb.append(" ancestors: ").append(toIndentedString(ancestors)).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(" 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 ");
}
}