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

com.seeq.model.WorkbookInputV1 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 io.swagger.v3.oas.annotations.media.Schema;
/**
 * WorkbookInputV1
 */
public class WorkbookInputV1 {
  @JsonProperty("branchFrom")
  private String branchFrom = null;

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

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

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

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

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

  public WorkbookInputV1 branchFrom(String branchFrom) {
    this.branchFrom = branchFrom;
    return this;
  }

   /**
   * Create a new workbook by duplicating the contents and history of the workbook with the specified ID. When null, no branching will occur; resulting workbook will be empty.
   * @return branchFrom
  **/
  @Schema(description = "Create a new workbook by duplicating the contents and history of the workbook with the specified ID. When null, no branching will occur; resulting workbook will be empty.")
  public String getBranchFrom() {
    return branchFrom;
  }

  public void setBranchFrom(String branchFrom) {
    this.branchFrom = branchFrom;
  }

  public WorkbookInputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public WorkbookInputV1 folderId(String folderId) {
    this.folderId = folderId;
    return this;
  }

   /**
   * The id of the folder to place the new workbook into. Special values of 'mine' or 'corporate' to place the item in the authenticated user's home folder or the corporate folder, respectively. If null, the workbook will be created in the authenticated user's home folder.
   * @return folderId
  **/
  @Schema(description = "The id of the folder to place the new workbook into. Special values of 'mine' or 'corporate' to place the item in the authenticated user's home folder or the corporate folder, respectively. If null, the workbook will be created in the authenticated user's home folder.")
  public String getFolderId() {
    return folderId;
  }

  public void setFolderId(String folderId) {
    this.folderId = folderId;
  }

  public WorkbookInputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.
   * @return name
  **/
  @Schema(required = true, description = "Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public WorkbookInputV1 ownerId(String ownerId) {
    this.ownerId = ownerId;
    return this;
  }

   /**
   * The ID of the User that owns this workbook. If omitted when creating a new Workbook, the authenticated user is used by default. Only administrators may set this value.
   * @return ownerId
  **/
  @Schema(description = "The ID of the User that owns this workbook. If omitted when creating a new Workbook, the authenticated user is used by default. Only administrators may set this value.")
  public String getOwnerId() {
    return ownerId;
  }

  public void setOwnerId(String ownerId) {
    this.ownerId = ownerId;
  }

  public WorkbookInputV1 type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The type of workbook, either 'Analysis' or 'Topic'. Defaults to 'Analysis'.
   * @return type
  **/
  @Schema(description = "The type of workbook, either 'Analysis' or 'Topic'. Defaults to 'Analysis'.")
  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;
    }
    WorkbookInputV1 workbookInputV1 = (WorkbookInputV1) o;
    return Objects.equals(this.branchFrom, workbookInputV1.branchFrom) &&
        Objects.equals(this.description, workbookInputV1.description) &&
        Objects.equals(this.folderId, workbookInputV1.folderId) &&
        Objects.equals(this.name, workbookInputV1.name) &&
        Objects.equals(this.ownerId, workbookInputV1.ownerId) &&
        Objects.equals(this.type, workbookInputV1.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(branchFrom, description, folderId, name, ownerId, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class WorkbookInputV1 {\n");
    
    sb.append("    branchFrom: ").append(toIndentedString(branchFrom)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    folderId: ").append(toIndentedString(folderId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    ownerId: ").append(toIndentedString(ownerId)).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