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