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

com.docusign.monitor.model.CursoredResult Maven / Gradle / Ivy

Go to download

The official DocuSign Monitor Java client provides libraries for Java application integration with DocuSign Monitor for real estate and mortgage workflows. It is recommended that you use this version of the library for new development.

The newest version!
package com.docusign.monitor.model;

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

/** . */
@Schema(description = "")
public class CursoredResult {
  @JsonProperty("endCursor")
  private String endCursor = null;

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

  /**
   * endCursor.
   *
   * @return CursoredResult
   */
  public CursoredResult endCursor(String endCursor) {
    this.endCursor = endCursor;
    return this;
  }

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

  /** setEndCursor. */
  public void setEndCursor(String endCursor) {
    this.endCursor = endCursor;
  }

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

  /**
   * addDataItem.
   *
   * @return CursoredResult
   */
  public CursoredResult addDataItem(Object dataItem) {
    if (this.data == null) {
      this.data = new java.util.ArrayList<>();
    }
    this.data.add(dataItem);
    return this;
  }

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

  /** setData. */
  public void setData(java.util.List data) {
    this.data = data;
  }

  /**
   * 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;
    }
    CursoredResult cursoredResult = (CursoredResult) o;
    return Objects.equals(this.endCursor, cursoredResult.endCursor)
        && Objects.equals(this.data, cursoredResult.data);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(endCursor, data);
  }

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

    sb.append("    endCursor: ").append(toIndentedString(endCursor)).append("\n");
    sb.append("    data: ").append(toIndentedString(data)).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    ");
  }
}