
de.adorsys.psd2.model.TppMessageGENERICPERIODINVALID400 Maven / Gradle / Ivy
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Objects;
/**
* Requested time period out of bound.
*/
@ApiModel(description = "Requested time period out of bound.")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2018-10-11T14:55" +
":45.627+02:00[Europe/Berlin]")
public class TppMessageGENERICPERIODINVALID400 {
@JsonProperty("category")
private TppMessageCategory category = null;
@JsonProperty("code")
private CodeEnum code = null;
@JsonProperty("path")
private String path = null;
@JsonProperty("text")
private String text = null;
public TppMessageGENERICPERIODINVALID400 category(TppMessageCategory category) {
this.category = category;
return this;
}
/**
* Get category
*
* @return category
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
public TppMessageCategory getCategory() {
return category;
}
public void setCategory(TppMessageCategory category) {
this.category = category;
}
public TppMessageGENERICPERIODINVALID400 code(CodeEnum code) {
this.code = code;
return this;
}
/**
* Get code
*
* @return code
**/
@ApiModelProperty(required = true, value = "")
@NotNull
public CodeEnum getCode() {
return code;
}
public void setCode(CodeEnum code) {
this.code = code;
}
public TppMessageGENERICPERIODINVALID400 path(String path) {
this.path = path;
return this;
}
/**
* Get path
*
* @return path
**/
@ApiModelProperty(value = "")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public TppMessageGENERICPERIODINVALID400 text(String text) {
this.text = text;
return this;
}
/**
* Get text
*
* @return text
**/
@ApiModelProperty(value = "")
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TppMessageGENERICPERIODINVALID400 tppMessageGENERICPERIODINVALID400 = (TppMessageGENERICPERIODINVALID400) o;
return Objects.equals(this.category, tppMessageGENERICPERIODINVALID400.category) && Objects.equals(this.code,
tppMessageGENERICPERIODINVALID400.code) && Objects.equals(this.path,
tppMessageGENERICPERIODINVALID400.path) && Objects.equals(this.text,
tppMessageGENERICPERIODINVALID400.text);
}
@Override
public int hashCode() {
return Objects.hash(category, code, path, text);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TppMessageGENERICPERIODINVALID400 {\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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Gets or Sets code
*/
public enum CodeEnum {
INVALID("PERIOD_INVALID");
private String value;
CodeEnum(String value) {
this.value = value;
}
@JsonCreator
public static CodeEnum fromValue(String text) {
for (CodeEnum b : CodeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy