com.akeyless.auth.swagger.model.ErrorReplyObj Maven / Gradle / Ivy
/*
* Auth - Application API
* Auth manages access policies for services that need access policies management for their clients. Auth also issues temporary credentials for the services' clients and validates them for the services
*
* OpenAPI spec version: 1.0.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.akeyless.auth.swagger.model;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Response whit error description
*/
@ApiModel(description = "Response whit error description")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-21T16:11:23.052+02:00")
public class ErrorReplyObj {
@SerializedName("error")
private String error = null;
@SerializedName("message")
private String message = null;
public ErrorReplyObj error(String error) {
this.error = error;
return this;
}
/**
* Internal error code
* @return error
**/
@ApiModelProperty(value = "Internal error code")
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
public ErrorReplyObj message(String message) {
this.message = message;
return this;
}
/**
* Error message
* @return message
**/
@ApiModelProperty(value = "Error message")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ErrorReplyObj errorReplyObj = (ErrorReplyObj) o;
return Objects.equals(this.error, errorReplyObj.error) &&
Objects.equals(this.message, errorReplyObj.message);
}
@Override
public int hashCode() {
return Objects.hash(error, message);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ErrorReplyObj {\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).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 ");
}
}