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

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

Go to download

The official Docusign eSignature JAVA client is based on version 2.1 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;

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

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

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

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

  /**
   * docGenDocumentStatus.
   *
   * @return DocGenFormFields
   */
  public DocGenFormFields docGenDocumentStatus(String docGenDocumentStatus) {
    this.docGenDocumentStatus = docGenDocumentStatus;
    return this;
  }

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

  /** setDocGenDocumentStatus. */
  public void setDocGenDocumentStatus(String docGenDocumentStatus) {
    this.docGenDocumentStatus = docGenDocumentStatus;
  }

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

  /**
   * addDocGenErrorsItem.
   *
   * @return DocGenFormFields
   */
  public DocGenFormFields addDocGenErrorsItem(DocGenSyntaxError docGenErrorsItem) {
    if (this.docGenErrors == null) {
      this.docGenErrors = new java.util.ArrayList<>();
    }
    this.docGenErrors.add(docGenErrorsItem);
    return this;
  }

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

  /** setDocGenErrors. */
  public void setDocGenErrors(java.util.List docGenErrors) {
    this.docGenErrors = docGenErrors;
  }

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

  /**
   * addDocGenFormFieldListItem.
   *
   * @return DocGenFormFields
   */
  public DocGenFormFields addDocGenFormFieldListItem(DocGenFormField docGenFormFieldListItem) {
    if (this.docGenFormFieldList == null) {
      this.docGenFormFieldList = new java.util.ArrayList<>();
    }
    this.docGenFormFieldList.add(docGenFormFieldListItem);
    return this;
  }

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

  /** setDocGenFormFieldList. */
  public void setDocGenFormFieldList(java.util.List docGenFormFieldList) {
    this.docGenFormFieldList = docGenFormFieldList;
  }

  /**
   * documentId.
   *
   * @return DocGenFormFields
   */
  public DocGenFormFields documentId(String documentId) {
    this.documentId = documentId;
    return this;
  }

  /**
   * Specifies the document ID number that the tab is placed on. This must refer to an existing
   * Document's ID attribute..
   *
   * @return documentId
   */
  @Schema(
      description =
          "Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.")
  public String getDocumentId() {
    return documentId;
  }

  /** setDocumentId. */
  public void setDocumentId(String documentId) {
    this.documentId = documentId;
  }

  /**
   * 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;
    }
    DocGenFormFields docGenFormFields = (DocGenFormFields) o;
    return Objects.equals(this.docGenDocumentStatus, docGenFormFields.docGenDocumentStatus)
        && Objects.equals(this.docGenErrors, docGenFormFields.docGenErrors)
        && Objects.equals(this.docGenFormFieldList, docGenFormFields.docGenFormFieldList)
        && Objects.equals(this.documentId, docGenFormFields.documentId);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(docGenDocumentStatus, docGenErrors, docGenFormFieldList, documentId);
  }

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

    sb.append("    docGenDocumentStatus: ")
        .append(toIndentedString(docGenDocumentStatus))
        .append("\n");
    sb.append("    docGenErrors: ").append(toIndentedString(docGenErrors)).append("\n");
    sb.append("    docGenFormFieldList: ")
        .append(toIndentedString(docGenFormFieldList))
        .append("\n");
    sb.append("    documentId: ").append(toIndentedString(documentId)).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