All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.seeq.model.WorkbenchSearchResultPreviewV1 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.IdentityPreviewV1;
import com.seeq.model.ItemPreviewV1;
import com.seeq.model.PermissionsV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* Workbench items
*/
@Schema(description = "Workbench items")
public class WorkbenchSearchResultPreviewV1 {
@JsonProperty("ancestors")
private List ancestors = new ArrayList();
@JsonProperty("createdAt")
private String createdAt = null;
@JsonProperty("creator")
private IdentityPreviewV1 creator = null;
@JsonProperty("data")
private String data = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("effectivePermissions")
private PermissionsV1 effectivePermissions = null;
@JsonProperty("headline")
private String headline = null;
@JsonProperty("id")
private String id = null;
@JsonProperty("isArchived")
private Boolean isArchived = false;
@JsonProperty("isCorporate")
private Boolean isCorporate = false;
@JsonProperty("isPinned")
private Boolean isPinned = false;
@JsonProperty("isUnmodifiable")
private Boolean isUnmodifiable = false;
@JsonProperty("name")
private String name = null;
@JsonProperty("owner")
private IdentityPreviewV1 owner = null;
@JsonProperty("parentFolderId")
private String parentFolderId = null;
@JsonProperty("renderer")
private IdentityPreviewV1 renderer = null;
@JsonProperty("sharedAt")
private String sharedAt = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("updatedAt")
private String updatedAt = null;
@JsonProperty("workbookId")
private String workbookId = null;
@JsonProperty("worksheetId")
private String worksheetId = null;
public WorkbenchSearchResultPreviewV1 ancestors(List ancestors) {
this.ancestors = ancestors;
return this;
}
public WorkbenchSearchResultPreviewV1 addAncestorsItem(ItemPreviewV1 ancestorsItem) {
if (this.ancestors == null) {
this.ancestors = new ArrayList();
}
this.ancestors.add(ancestorsItem);
return this;
}
/**
* The list of the item's folder ancestors, starting at the topmost folder to which the user has access
* @return ancestors
**/
@Schema(description = "The list of the item's folder ancestors, starting at the topmost folder to which the user has access")
public List getAncestors() {
return ancestors;
}
public void setAncestors(List ancestors) {
this.ancestors = ancestors;
}
public WorkbenchSearchResultPreviewV1 createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The ISO 8601 date of when the item was created (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
* @return createdAt
**/
@Schema(required = true, description = "The ISO 8601 date of when the item was created (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public WorkbenchSearchResultPreviewV1 creator(IdentityPreviewV1 creator) {
this.creator = creator;
return this;
}
/**
* Get creator
* @return creator
**/
@Schema(description = "")
public IdentityPreviewV1 getCreator() {
return creator;
}
public void setCreator(IdentityPreviewV1 creator) {
this.creator = creator;
}
public WorkbenchSearchResultPreviewV1 data(String data) {
this.data = data;
return this;
}
/**
* Additional data about the item, provided as JSON
* @return data
**/
@Schema(description = "Additional data about the item, provided as JSON")
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
public WorkbenchSearchResultPreviewV1 description(String description) {
this.description = description;
return this;
}
/**
* The item's description
* @return description
**/
@Schema(description = "The item's description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public WorkbenchSearchResultPreviewV1 effectivePermissions(PermissionsV1 effectivePermissions) {
this.effectivePermissions = effectivePermissions;
return this;
}
/**
* Get effectivePermissions
* @return effectivePermissions
**/
@Schema(description = "")
public PermissionsV1 getEffectivePermissions() {
return effectivePermissions;
}
public void setEffectivePermissions(PermissionsV1 effectivePermissions) {
this.effectivePermissions = effectivePermissions;
}
public WorkbenchSearchResultPreviewV1 headline(String headline) {
this.headline = headline;
return this;
}
/**
* An indication of what text within this item matched a text search
* @return headline
**/
@Schema(description = "An indication of what text within this item matched a text search")
public String getHeadline() {
return headline;
}
public void setHeadline(String headline) {
this.headline = headline;
}
public WorkbenchSearchResultPreviewV1 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 WorkbenchSearchResultPreviewV1 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 WorkbenchSearchResultPreviewV1 isCorporate(Boolean isCorporate) {
this.isCorporate = isCorporate;
return this;
}
/**
* Whether the item is under the corporate folder
* @return isCorporate
**/
@Schema(description = "Whether the item is under the corporate folder")
public Boolean getIsCorporate() {
return isCorporate;
}
public void setIsCorporate(Boolean isCorporate) {
this.isCorporate = isCorporate;
}
public WorkbenchSearchResultPreviewV1 isPinned(Boolean isPinned) {
this.isPinned = isPinned;
return this;
}
/**
* Flag indicating whether this item has been marked as a favorite by the current user
* @return isPinned
**/
@Schema(description = "Flag indicating whether this item has been marked as a favorite by the current user")
public Boolean getIsPinned() {
return isPinned;
}
public void setIsPinned(Boolean isPinned) {
this.isPinned = isPinned;
}
public WorkbenchSearchResultPreviewV1 isUnmodifiable(Boolean isUnmodifiable) {
this.isUnmodifiable = isUnmodifiable;
return this;
}
/**
* Whether the item is unmodifiable
* @return isUnmodifiable
**/
@Schema(description = "Whether the item is unmodifiable")
public Boolean getIsUnmodifiable() {
return isUnmodifiable;
}
public void setIsUnmodifiable(Boolean isUnmodifiable) {
this.isUnmodifiable = isUnmodifiable;
}
public WorkbenchSearchResultPreviewV1 name(String name) {
this.name = name;
return this;
}
/**
* The name of the item
* @return name
**/
@Schema(required = true, description = "The name of the item")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public WorkbenchSearchResultPreviewV1 owner(IdentityPreviewV1 owner) {
this.owner = owner;
return this;
}
/**
* Get owner
* @return owner
**/
@Schema(description = "")
public IdentityPreviewV1 getOwner() {
return owner;
}
public void setOwner(IdentityPreviewV1 owner) {
this.owner = owner;
}
public WorkbenchSearchResultPreviewV1 parentFolderId(String parentFolderId) {
this.parentFolderId = parentFolderId;
return this;
}
/**
* The ID of the folder this item belongs to
* @return parentFolderId
**/
@Schema(description = "The ID of the folder this item belongs to")
public String getParentFolderId() {
return parentFolderId;
}
public void setParentFolderId(String parentFolderId) {
this.parentFolderId = parentFolderId;
}
public WorkbenchSearchResultPreviewV1 renderer(IdentityPreviewV1 renderer) {
this.renderer = renderer;
return this;
}
/**
* Get renderer
* @return renderer
**/
@Schema(description = "")
public IdentityPreviewV1 getRenderer() {
return renderer;
}
public void setRenderer(IdentityPreviewV1 renderer) {
this.renderer = renderer;
}
public WorkbenchSearchResultPreviewV1 sharedAt(String sharedAt) {
this.sharedAt = sharedAt;
return this;
}
/**
* The datetime when the item was shared with the current user
* @return sharedAt
**/
@Schema(description = "The datetime when the item was shared with the current user")
public String getSharedAt() {
return sharedAt;
}
public void setSharedAt(String sharedAt) {
this.sharedAt = sharedAt;
}
public WorkbenchSearchResultPreviewV1 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;
}
public WorkbenchSearchResultPreviewV1 updatedAt(String updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* The ISO 8601 date of when the item was last updated (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
* @return updatedAt
**/
@Schema(required = true, description = "The ISO 8601 date of when the item was last updated (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
public String getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
public WorkbenchSearchResultPreviewV1 workbookId(String workbookId) {
this.workbookId = workbookId;
return this;
}
/**
* Id of containing workbook if item is a journal or report
* @return workbookId
**/
@Schema(description = "Id of containing workbook if item is a journal or report")
public String getWorkbookId() {
return workbookId;
}
public void setWorkbookId(String workbookId) {
this.workbookId = workbookId;
}
public WorkbenchSearchResultPreviewV1 worksheetId(String worksheetId) {
this.worksheetId = worksheetId;
return this;
}
/**
* Id of containing worksheet if item is a journal or report
* @return worksheetId
**/
@Schema(description = "Id of containing worksheet if item is a journal or report")
public String getWorksheetId() {
return worksheetId;
}
public void setWorksheetId(String worksheetId) {
this.worksheetId = worksheetId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WorkbenchSearchResultPreviewV1 workbenchSearchResultPreviewV1 = (WorkbenchSearchResultPreviewV1) o;
return Objects.equals(this.ancestors, workbenchSearchResultPreviewV1.ancestors) &&
Objects.equals(this.createdAt, workbenchSearchResultPreviewV1.createdAt) &&
Objects.equals(this.creator, workbenchSearchResultPreviewV1.creator) &&
Objects.equals(this.data, workbenchSearchResultPreviewV1.data) &&
Objects.equals(this.description, workbenchSearchResultPreviewV1.description) &&
Objects.equals(this.effectivePermissions, workbenchSearchResultPreviewV1.effectivePermissions) &&
Objects.equals(this.headline, workbenchSearchResultPreviewV1.headline) &&
Objects.equals(this.id, workbenchSearchResultPreviewV1.id) &&
Objects.equals(this.isArchived, workbenchSearchResultPreviewV1.isArchived) &&
Objects.equals(this.isCorporate, workbenchSearchResultPreviewV1.isCorporate) &&
Objects.equals(this.isPinned, workbenchSearchResultPreviewV1.isPinned) &&
Objects.equals(this.isUnmodifiable, workbenchSearchResultPreviewV1.isUnmodifiable) &&
Objects.equals(this.name, workbenchSearchResultPreviewV1.name) &&
Objects.equals(this.owner, workbenchSearchResultPreviewV1.owner) &&
Objects.equals(this.parentFolderId, workbenchSearchResultPreviewV1.parentFolderId) &&
Objects.equals(this.renderer, workbenchSearchResultPreviewV1.renderer) &&
Objects.equals(this.sharedAt, workbenchSearchResultPreviewV1.sharedAt) &&
Objects.equals(this.type, workbenchSearchResultPreviewV1.type) &&
Objects.equals(this.updatedAt, workbenchSearchResultPreviewV1.updatedAt) &&
Objects.equals(this.workbookId, workbenchSearchResultPreviewV1.workbookId) &&
Objects.equals(this.worksheetId, workbenchSearchResultPreviewV1.worksheetId);
}
@Override
public int hashCode() {
return Objects.hash(ancestors, createdAt, creator, data, description, effectivePermissions, headline, id, isArchived, isCorporate, isPinned, isUnmodifiable, name, owner, parentFolderId, renderer, sharedAt, type, updatedAt, workbookId, worksheetId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WorkbenchSearchResultPreviewV1 {\n");
sb.append(" ancestors: ").append(toIndentedString(ancestors)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" effectivePermissions: ").append(toIndentedString(effectivePermissions)).append("\n");
sb.append(" headline: ").append(toIndentedString(headline)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" isArchived: ").append(toIndentedString(isArchived)).append("\n");
sb.append(" isCorporate: ").append(toIndentedString(isCorporate)).append("\n");
sb.append(" isPinned: ").append(toIndentedString(isPinned)).append("\n");
sb.append(" isUnmodifiable: ").append(toIndentedString(isUnmodifiable)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
sb.append(" parentFolderId: ").append(toIndentedString(parentFolderId)).append("\n");
sb.append(" renderer: ").append(toIndentedString(renderer)).append("\n");
sb.append(" sharedAt: ").append(toIndentedString(sharedAt)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" workbookId: ").append(toIndentedString(workbookId)).append("\n");
sb.append(" worksheetId: ").append(toIndentedString(worksheetId)).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 ");
}
}