com.docusign.admin.model.OETRErrorDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-admin-java Show documentation
Show all versions of docusign-admin-java Show documentation
The DocuSign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.
package com.docusign.admin.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
/** OETRErrorDetails. */
public class OETRErrorDetails {
@JsonProperty("error")
private String error = null;
@JsonProperty("error_description")
private String errorDescription = null;
/**
* error.
*
* @return OETRErrorDetails
*/
public OETRErrorDetails error(String error) {
this.error = error;
return this;
}
/**
* Get error.
*
* @return error
*/
@Schema(description = "")
public String getError() {
return error;
}
/** setError. */
public void setError(String error) {
this.error = error;
}
/**
* errorDescription.
*
* @return OETRErrorDetails
*/
public OETRErrorDetails errorDescription(String errorDescription) {
this.errorDescription = errorDescription;
return this;
}
/**
* Get errorDescription.
*
* @return errorDescription
*/
@Schema(description = "")
public String getErrorDescription() {
return errorDescription;
}
/** setErrorDescription. */
public void setErrorDescription(String errorDescription) {
this.errorDescription = errorDescription;
}
/**
* 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;
}
OETRErrorDetails oeTRErrorDetails = (OETRErrorDetails) o;
return Objects.equals(this.error, oeTRErrorDetails.error)
&& Objects.equals(this.errorDescription, oeTRErrorDetails.errorDescription);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(error, errorDescription);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OETRErrorDetails {\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" errorDescription: ").append(toIndentedString(errorDescription)).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 ");
}
}