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

com.docusign.esign.model.UsageHistory 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.io.Serializable;
import java.util.Objects;

/**
 * A complex element consisting of: * lastSentDateTime - the date and time the user last sent an
 * envelope. * lastSignedDateTime - the date and time the user last signed an envelope. * sentCount
 * - the number of envelopes the user has sent. * signedCount - the number of envelopes the user has
 * signed..
 */
@Schema(
    description =
        "A complex element consisting of:   * lastSentDateTime - the date and time the user last sent an envelope.  * lastSignedDateTime - the date and time the user last signed an envelope. * sentCount - the number of envelopes the user has sent. * signedCount - the number of envelopes the user has signed.")
public class UsageHistory implements Serializable {
  private static final long serialVersionUID = 1L;

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

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

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

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

  /**
   * lastSentDateTime.
   *
   * @return UsageHistory
   */
  public UsageHistory lastSentDateTime(String lastSentDateTime) {
    this.lastSentDateTime = lastSentDateTime;
    return this;
  }

  /**
   * The date and time the user last sent an envelope. .
   *
   * @return lastSentDateTime
   */
  @Schema(description = "The date and time the user last sent an envelope. ")
  public String getLastSentDateTime() {
    return lastSentDateTime;
  }

  /** setLastSentDateTime. */
  public void setLastSentDateTime(String lastSentDateTime) {
    this.lastSentDateTime = lastSentDateTime;
  }

  /**
   * lastSignedDateTime.
   *
   * @return UsageHistory
   */
  public UsageHistory lastSignedDateTime(String lastSignedDateTime) {
    this.lastSignedDateTime = lastSignedDateTime;
    return this;
  }

  /**
   * The date and time the user last signed an envelope..
   *
   * @return lastSignedDateTime
   */
  @Schema(description = "The date and time the user last signed an envelope.")
  public String getLastSignedDateTime() {
    return lastSignedDateTime;
  }

  /** setLastSignedDateTime. */
  public void setLastSignedDateTime(String lastSignedDateTime) {
    this.lastSignedDateTime = lastSignedDateTime;
  }

  /**
   * sentCount.
   *
   * @return UsageHistory
   */
  public UsageHistory sentCount(String sentCount) {
    this.sentCount = sentCount;
    return this;
  }

  /**
   * The number of envelopes the user has sent. .
   *
   * @return sentCount
   */
  @Schema(description = "The number of envelopes the user has sent. ")
  public String getSentCount() {
    return sentCount;
  }

  /** setSentCount. */
  public void setSentCount(String sentCount) {
    this.sentCount = sentCount;
  }

  /**
   * signedCount.
   *
   * @return UsageHistory
   */
  public UsageHistory signedCount(String signedCount) {
    this.signedCount = signedCount;
    return this;
  }

  /**
   * The number of envelopes the user has signed. .
   *
   * @return signedCount
   */
  @Schema(description = "The number of envelopes the user has signed. ")
  public String getSignedCount() {
    return signedCount;
  }

  /** setSignedCount. */
  public void setSignedCount(String signedCount) {
    this.signedCount = signedCount;
  }

  /**
   * 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;
    }
    UsageHistory usageHistory = (UsageHistory) o;
    return Objects.equals(this.lastSentDateTime, usageHistory.lastSentDateTime)
        && Objects.equals(this.lastSignedDateTime, usageHistory.lastSignedDateTime)
        && Objects.equals(this.sentCount, usageHistory.sentCount)
        && Objects.equals(this.signedCount, usageHistory.signedCount);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(lastSentDateTime, lastSignedDateTime, sentCount, signedCount);
  }

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

    sb.append("    lastSentDateTime: ").append(toIndentedString(lastSentDateTime)).append("\n");
    sb.append("    lastSignedDateTime: ").append(toIndentedString(lastSignedDateTime)).append("\n");
    sb.append("    sentCount: ").append(toIndentedString(sentCount)).append("\n");
    sb.append("    signedCount: ").append(toIndentedString(signedCount)).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