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

com.seeq.model.AnnotationInputV1 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: 65.1.3-v202408082312
 * 
 *
 * 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.AnnotationInterestInputV1;
import com.seeq.model.OptionalReportInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * AnnotationInputV1
 */
public class AnnotationInputV1 {
  @JsonProperty("backupName")
  private String backupName = null;

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

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

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

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

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

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

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

  @JsonProperty("reportInput")
  private OptionalReportInputV1 reportInput = null;

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

  public AnnotationInputV1 backupName(String backupName) {
    this.backupName = backupName;
    return this;
  }

   /**
   * The name of a Document backup to restore, when updating an annotation.
   * @return backupName
  **/
  @Schema(description = "The name of a Document backup to restore, when updating an annotation.")
  public String getBackupName() {
    return backupName;
  }

  public void setBackupName(String backupName) {
    this.backupName = backupName;
  }

  public AnnotationInputV1 createdById(String createdById) {
    this.createdById = createdById;
    return this;
  }

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

  public void setCreatedById(String createdById) {
    this.createdById = createdById;
  }

  public AnnotationInputV1 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 AnnotationInputV1 discoverable(Boolean discoverable) {
    this.discoverable = discoverable;
    return this;
  }

   /**
   * Whether this annotation is discoverable.
   * @return discoverable
  **/
  @Schema(description = "Whether this annotation is discoverable.")
  public Boolean getDiscoverable() {
    return discoverable;
  }

  public void setDiscoverable(Boolean discoverable) {
    this.discoverable = discoverable;
  }

  public AnnotationInputV1 document(String document) {
    this.document = document;
    return this;
  }

   /**
   * This annotation's document.
   * @return document
  **/
  @Schema(description = "This annotation's document.")
  public String getDocument() {
    return document;
  }

  public void setDocument(String document) {
    this.document = document;
  }

  public AnnotationInputV1 interests(List interests) {
    this.interests = interests;
    return this;
  }

  public AnnotationInputV1 addInterestsItem(AnnotationInterestInputV1 interestsItem) {
    if (this.interests == null) {
      this.interests = new ArrayList();
    }
    this.interests.add(interestsItem);
    return this;
  }

   /**
   * A list of IDs representing the annotation's items of interest
   * @return interests
  **/
  @Schema(description = "A list of IDs representing the annotation's items of interest")
  public List getInterests() {
    return interests;
  }

  public void setInterests(List interests) {
    this.interests = interests;
  }

  public AnnotationInputV1 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 AnnotationInputV1 repliesTo(String repliesTo) {
    this.repliesTo = repliesTo;
    return this;
  }

   /**
   * The ID of the Annotation that this annotation replies to.
   * @return repliesTo
  **/
  @Schema(description = "The ID of the Annotation that this annotation replies to.")
  public String getRepliesTo() {
    return repliesTo;
  }

  public void setRepliesTo(String repliesTo) {
    this.repliesTo = repliesTo;
  }

  public AnnotationInputV1 reportInput(OptionalReportInputV1 reportInput) {
    this.reportInput = reportInput;
    return this;
  }

   /**
   * Get reportInput
   * @return reportInput
  **/
  @Schema(description = "")
  public OptionalReportInputV1 getReportInput() {
    return reportInput;
  }

  public void setReportInput(OptionalReportInputV1 reportInput) {
    this.reportInput = reportInput;
  }

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

   /**
   * This annotation's type: Report or Journal. Defaults to Journal.
   * @return type
  **/
  @Schema(description = "This annotation's type: Report or Journal. Defaults to Journal.")
  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;
    }
    AnnotationInputV1 annotationInputV1 = (AnnotationInputV1) o;
    return Objects.equals(this.backupName, annotationInputV1.backupName) &&
        Objects.equals(this.createdById, annotationInputV1.createdById) &&
        Objects.equals(this.description, annotationInputV1.description) &&
        Objects.equals(this.discoverable, annotationInputV1.discoverable) &&
        Objects.equals(this.document, annotationInputV1.document) &&
        Objects.equals(this.interests, annotationInputV1.interests) &&
        Objects.equals(this.name, annotationInputV1.name) &&
        Objects.equals(this.repliesTo, annotationInputV1.repliesTo) &&
        Objects.equals(this.reportInput, annotationInputV1.reportInput) &&
        Objects.equals(this.type, annotationInputV1.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(backupName, createdById, description, discoverable, document, interests, name, repliesTo, reportInput, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AnnotationInputV1 {\n");
    
    sb.append("    backupName: ").append(toIndentedString(backupName)).append("\n");
    sb.append("    createdById: ").append(toIndentedString(createdById)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    discoverable: ").append(toIndentedString(discoverable)).append("\n");
    sb.append("    document: ").append(toIndentedString(document)).append("\n");
    sb.append("    interests: ").append(toIndentedString(interests)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    repliesTo: ").append(toIndentedString(repliesTo)).append("\n");
    sb.append("    reportInput: ").append(toIndentedString(reportInput)).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