com.docusign.esign.model.UsageHistory Maven / Gradle / Ivy
package com.docusign.esign.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
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..
*/
@ApiModel(
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 {
@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
*/
@ApiModelProperty(value = "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
*/
@ApiModelProperty(value = "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
*/
@ApiModelProperty(value = "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
*/
@ApiModelProperty(value = "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 ");
}
}