
de.adorsys.psd2.model.TppMessage404SBS Maven / Gradle / Ivy
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Objects;
/**
* TppMessage404SBS
*/
@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 TppMessage404SBS {
@JsonProperty("category")
private TppMessageCategory category = null;
@JsonProperty("code")
private String code = null;
@JsonProperty("path")
private String path = null;
@JsonProperty("text")
private String text = null;
public TppMessage404SBS category(TppMessageCategory category) {
this.category = category;
return this;
}
/**
* Get category
* @return category
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
@JsonProperty("category")
public TppMessageCategory getCategory() {
return category;
}
public void setCategory(TppMessageCategory category) {
this.category = category;
}
public TppMessage404SBS code(String code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@JsonProperty("code")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public TppMessage404SBS path(String path) {
this.path = path;
return this;
}
/**
* Get path
* @return path
**/
@ApiModelProperty(value = "")
@JsonProperty("path")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public TppMessage404SBS text(String text) {
this.text = text;
return this;
}
/**
* Get text
* @return text
**/
@ApiModelProperty(value = "")
@Size(max=500)
@JsonProperty("text")
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
} TppMessage404SBS tppMessage404SBS = (TppMessage404SBS) o;
return Objects.equals(this.category, tppMessage404SBS.category) &&
Objects.equals(this.code, tppMessage404SBS.code) &&
Objects.equals(this.path, tppMessage404SBS.path) &&
Objects.equals(this.text, tppMessage404SBS.text);
}
@Override
public int hashCode() {
return Objects.hash(category, code, path, text);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TppMessage404SBS {\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).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