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

com.docusign.esign.model.CommentPublish Maven / Gradle / Ivy

Go to download

The official DocuSign eSignature JAVA client is based on version 2 of the DocuSign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.

There is a newer version: 6.0.0
Show newest version
package com.docusign.esign.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;

/** CommentPublish. */
public class CommentPublish {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("mentions")
  private java.util.List mentions = null;

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

  @JsonProperty("threadAnchorKeys")
  private java.util.Map threadAnchorKeys = null;

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

  @JsonProperty("visibleTo")
  private java.util.List visibleTo = null;

  /**
   * id.
   *
   * @return CommentPublish
   */
  public CommentPublish id(String id) {
    this.id = id;
    return this;
  }

  /**
   * .
   *
   * @return id
   */
  @Schema(description = "")
  public String getId() {
    return id;
  }

  /** setId. */
  public void setId(String id) {
    this.id = id;
  }

  /**
   * mentions.
   *
   * @return CommentPublish
   */
  public CommentPublish mentions(java.util.List mentions) {
    this.mentions = mentions;
    return this;
  }

  /**
   * addMentionsItem.
   *
   * @return CommentPublish
   */
  public CommentPublish addMentionsItem(String mentionsItem) {
    if (this.mentions == null) {
      this.mentions = new java.util.ArrayList<>();
    }
    this.mentions.add(mentionsItem);
    return this;
  }

  /**
   * .
   *
   * @return mentions
   */
  @Schema(description = "")
  public java.util.List getMentions() {
    return mentions;
  }

  /** setMentions. */
  public void setMentions(java.util.List mentions) {
    this.mentions = mentions;
  }

  /**
   * text.
   *
   * @return CommentPublish
   */
  public CommentPublish text(String text) {
    this.text = text;
    return this;
  }

  /**
   * .
   *
   * @return text
   */
  @Schema(description = "")
  public String getText() {
    return text;
  }

  /** setText. */
  public void setText(String text) {
    this.text = text;
  }

  /**
   * threadAnchorKeys.
   *
   * @return CommentPublish
   */
  public CommentPublish threadAnchorKeys(java.util.Map threadAnchorKeys) {
    this.threadAnchorKeys = threadAnchorKeys;
    return this;
  }

  /**
   * putThreadAnchorKeysItem.
   *
   * @return CommentPublish
   */
  public CommentPublish putThreadAnchorKeysItem(String key, String threadAnchorKeysItem) {
    if (this.threadAnchorKeys == null) {
      this.threadAnchorKeys = new java.util.HashMap<>();
    }
    this.threadAnchorKeys.put(key, threadAnchorKeysItem);
    return this;
  }

  /**
   * .
   *
   * @return threadAnchorKeys
   */
  @Schema(description = "")
  public java.util.Map getThreadAnchorKeys() {
    return threadAnchorKeys;
  }

  /** setThreadAnchorKeys. */
  public void setThreadAnchorKeys(java.util.Map threadAnchorKeys) {
    this.threadAnchorKeys = threadAnchorKeys;
  }

  /**
   * threadId.
   *
   * @return CommentPublish
   */
  public CommentPublish threadId(String threadId) {
    this.threadId = threadId;
    return this;
  }

  /**
   * .
   *
   * @return threadId
   */
  @Schema(description = "")
  public String getThreadId() {
    return threadId;
  }

  /** setThreadId. */
  public void setThreadId(String threadId) {
    this.threadId = threadId;
  }

  /**
   * visibleTo.
   *
   * @return CommentPublish
   */
  public CommentPublish visibleTo(java.util.List visibleTo) {
    this.visibleTo = visibleTo;
    return this;
  }

  /**
   * addVisibleToItem.
   *
   * @return CommentPublish
   */
  public CommentPublish addVisibleToItem(String visibleToItem) {
    if (this.visibleTo == null) {
      this.visibleTo = new java.util.ArrayList<>();
    }
    this.visibleTo.add(visibleToItem);
    return this;
  }

  /**
   * .
   *
   * @return visibleTo
   */
  @Schema(description = "")
  public java.util.List getVisibleTo() {
    return visibleTo;
  }

  /** setVisibleTo. */
  public void setVisibleTo(java.util.List visibleTo) {
    this.visibleTo = visibleTo;
  }

  /**
   * Compares objects.
   *
   * @return true or false depending on comparison result.
   */
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CommentPublish commentPublish = (CommentPublish) o;
    return Objects.equals(this.id, commentPublish.id)
        && Objects.equals(this.mentions, commentPublish.mentions)
        && Objects.equals(this.text, commentPublish.text)
        && Objects.equals(this.threadAnchorKeys, commentPublish.threadAnchorKeys)
        && Objects.equals(this.threadId, commentPublish.threadId)
        && Objects.equals(this.visibleTo, commentPublish.visibleTo);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(id, mentions, text, threadAnchorKeys, threadId, visibleTo);
  }

  /** Converts the given object to string. */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CommentPublish {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    mentions: ").append(toIndentedString(mentions)).append("\n");
    sb.append("    text: ").append(toIndentedString(text)).append("\n");
    sb.append("    threadAnchorKeys: ").append(toIndentedString(threadAnchorKeys)).append("\n");
    sb.append("    threadId: ").append(toIndentedString(threadId)).append("\n");
    sb.append("    visibleTo: ").append(toIndentedString(visibleTo)).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