com.symphony.api.model.UserError Maven / Gradle / Ivy
package com.symphony.api.model;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* User error information
**/
@Schema(description="User error information")
public class UserError {
@Schema(description = "Error code informing what is wrong")
/**
* Error code informing what is wrong
**/
private String error = null;
@Schema(description = "Email with error. Only one of the following fields should be present: email or id")
/**
* Email with error. Only one of the following fields should be present: email or id
**/
private String email = null;
@Schema(description = "Id with error. Only one of the following fields should be present: email or id")
/**
* Id with error. Only one of the following fields should be present: email or id
**/
private String id = null;
/**
* Error code informing what is wrong
* @return error
**/
@JsonProperty("error")
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
public UserError error(String error) {
this.error = error;
return this;
}
/**
* Email with error. Only one of the following fields should be present: email or id
* @return email
**/
@JsonProperty("email")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public UserError email(String email) {
this.email = email;
return this;
}
/**
* Id with error. Only one of the following fields should be present: email or id
* @return id
**/
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public UserError id(String id) {
this.id = id;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserError {\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).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 static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy