com.docusign.esign.model.BulkSendTestResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-esign-java Show documentation
Show all versions of docusign-esign-java Show documentation
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.
The 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;
/** This object contains the results of a bulk send test.. */
@Schema(description = "This object contains the results of a bulk send test.")
public class BulkSendTestResponse implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty("canBeSent")
private Boolean canBeSent = null;
@JsonProperty("validationErrorDetails")
private java.util.List validationErrorDetails = null;
@JsonProperty("validationErrors")
private java.util.List validationErrors = null;
/**
* canBeSent.
*
* @return BulkSendTestResponse
*/
public BulkSendTestResponse canBeSent(Boolean canBeSent) {
this.canBeSent = canBeSent;
return this;
}
/**
* .
*
* @return canBeSent
*/
@Schema(description = "")
public Boolean isCanBeSent() {
return canBeSent;
}
/** setCanBeSent. */
public void setCanBeSent(Boolean canBeSent) {
this.canBeSent = canBeSent;
}
/**
* validationErrorDetails.
*
* @return BulkSendTestResponse
*/
public BulkSendTestResponse validationErrorDetails(
java.util.List validationErrorDetails) {
this.validationErrorDetails = validationErrorDetails;
return this;
}
/**
* addValidationErrorDetailsItem.
*
* @return BulkSendTestResponse
*/
public BulkSendTestResponse addValidationErrorDetailsItem(String validationErrorDetailsItem) {
if (this.validationErrorDetails == null) {
this.validationErrorDetails = new java.util.ArrayList<>();
}
this.validationErrorDetails.add(validationErrorDetailsItem);
return this;
}
/**
* .
*
* @return validationErrorDetails
*/
@Schema(description = "")
public java.util.List getValidationErrorDetails() {
return validationErrorDetails;
}
/** setValidationErrorDetails. */
public void setValidationErrorDetails(java.util.List validationErrorDetails) {
this.validationErrorDetails = validationErrorDetails;
}
/**
* validationErrors.
*
* @return BulkSendTestResponse
*/
public BulkSendTestResponse validationErrors(java.util.List validationErrors) {
this.validationErrors = validationErrors;
return this;
}
/**
* addValidationErrorsItem.
*
* @return BulkSendTestResponse
*/
public BulkSendTestResponse addValidationErrorsItem(String validationErrorsItem) {
if (this.validationErrors == null) {
this.validationErrors = new java.util.ArrayList<>();
}
this.validationErrors.add(validationErrorsItem);
return this;
}
/**
* .
*
* @return validationErrors
*/
@Schema(description = "")
public java.util.List getValidationErrors() {
return validationErrors;
}
/** setValidationErrors. */
public void setValidationErrors(java.util.List validationErrors) {
this.validationErrors = validationErrors;
}
/**
* 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;
}
BulkSendTestResponse bulkSendTestResponse = (BulkSendTestResponse) o;
return Objects.equals(this.canBeSent, bulkSendTestResponse.canBeSent)
&& Objects.equals(this.validationErrorDetails, bulkSendTestResponse.validationErrorDetails)
&& Objects.equals(this.validationErrors, bulkSendTestResponse.validationErrors);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(canBeSent, validationErrorDetails, validationErrors);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BulkSendTestResponse {\n");
sb.append(" canBeSent: ").append(toIndentedString(canBeSent)).append("\n");
sb.append(" validationErrorDetails: ")
.append(toIndentedString(validationErrorDetails))
.append("\n");
sb.append(" validationErrors: ").append(toIndentedString(validationErrors)).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 ");
}
}