
de.adorsys.psd2.model.Error405PISCANCAdditionalErrors Maven / Gradle / Ivy
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.Size;
import java.util.Objects;
/**
* This is a data element to support the declaration of additional errors in the context of [RFC7807].
*/
@ApiModel(description = "This is a data element to support the declaration of additional errors in the context of [RFC7807].")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-05-24T13:41:46.273636+03:00[Europe/Kiev]")
public class Error405PISCANCAdditionalErrors {
@JsonProperty("title")
private String title = null;
@JsonProperty("detail")
private String detail = null;
@JsonProperty("code")
private String code = null;
public Error405PISCANCAdditionalErrors title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@ApiModelProperty(value = "")
@Size(max=70)
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Error405PISCANCAdditionalErrors detail(String detail) {
this.detail = detail;
return this;
}
/**
* Get detail
* @return detail
**/
@ApiModelProperty(value = "")
@Size(max=500)
@JsonProperty("detail")
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public Error405PISCANCAdditionalErrors code(String code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
**/
@ApiModelProperty(value = "")
@JsonProperty("code")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
} Error405PISCANCAdditionalErrors error405PISCANCAdditionalErrors = (Error405PISCANCAdditionalErrors) o;
return Objects.equals(this.title, error405PISCANCAdditionalErrors.title) &&
Objects.equals(this.detail, error405PISCANCAdditionalErrors.detail) &&
Objects.equals(this.code, error405PISCANCAdditionalErrors.code);
}
@Override
public int hashCode() {
return Objects.hash(title, detail, code);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Error405PISCANCAdditionalErrors {\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" detail: ").append(toIndentedString(detail)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy