All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cloud.genesys.webmessaging.sdk.model.ErrorBody Maven / Gradle / Ivy
package cloud.genesys.webmessaging.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import java.util.Objects;
import java.io.IOException;
import cloud.genesys.webmessaging.sdk.model.Detail;
import cloud.genesys.webmessaging.sdk.model.Limit;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.Serializable;
/**
* ErrorBody
*/
public class ErrorBody implements Serializable {
private String message = null;
private String code = null;
private Integer status = null;
private String entityId = null;
private String entityName = null;
private String messageWithParams = null;
private Map messageParams = null;
private String contextId = null;
private List details = new ArrayList();
private List errors = new ArrayList();
private Limit limit = null;
/**
**/
public ErrorBody message(String message) {
this.message = message;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("message")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
/**
**/
public ErrorBody code(String code) {
this.code = code;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("code")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
/**
**/
public ErrorBody status(Integer status) {
this.status = status;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("status")
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
/**
**/
public ErrorBody entityId(String entityId) {
this.entityId = entityId;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("entityId")
public String getEntityId() {
return entityId;
}
public void setEntityId(String entityId) {
this.entityId = entityId;
}
/**
**/
public ErrorBody entityName(String entityName) {
this.entityName = entityName;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("entityName")
public String getEntityName() {
return entityName;
}
public void setEntityName(String entityName) {
this.entityName = entityName;
}
/**
**/
public ErrorBody messageWithParams(String messageWithParams) {
this.messageWithParams = messageWithParams;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("messageWithParams")
public String getMessageWithParams() {
return messageWithParams;
}
public void setMessageWithParams(String messageWithParams) {
this.messageWithParams = messageWithParams;
}
/**
**/
public ErrorBody messageParams(Map messageParams) {
this.messageParams = messageParams;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("messageParams")
public Map getMessageParams() {
return messageParams;
}
public void setMessageParams(Map messageParams) {
this.messageParams = messageParams;
}
/**
**/
public ErrorBody contextId(String contextId) {
this.contextId = contextId;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("contextId")
public String getContextId() {
return contextId;
}
public void setContextId(String contextId) {
this.contextId = contextId;
}
/**
**/
public ErrorBody details(List details) {
this.details = details;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("details")
public List getDetails() {
return details;
}
public void setDetails(List details) {
this.details = details;
}
/**
**/
public ErrorBody errors(List errors) {
this.errors = errors;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("errors")
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
/**
**/
public ErrorBody limit(Limit limit) {
this.limit = limit;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("limit")
public Limit getLimit() {
return limit;
}
public void setLimit(Limit limit) {
this.limit = limit;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ErrorBody errorBody = (ErrorBody) o;
return Objects.equals(this.message, errorBody.message) &&
Objects.equals(this.code, errorBody.code) &&
Objects.equals(this.status, errorBody.status) &&
Objects.equals(this.entityId, errorBody.entityId) &&
Objects.equals(this.entityName, errorBody.entityName) &&
Objects.equals(this.messageWithParams, errorBody.messageWithParams) &&
Objects.equals(this.messageParams, errorBody.messageParams) &&
Objects.equals(this.contextId, errorBody.contextId) &&
Objects.equals(this.details, errorBody.details) &&
Objects.equals(this.errors, errorBody.errors) &&
Objects.equals(this.limit, errorBody.limit);
}
@Override
public int hashCode() {
return Objects.hash(message, code, status, entityId, entityName, messageWithParams, messageParams, contextId, details, errors, limit);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ErrorBody {\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
sb.append(" entityName: ").append(toIndentedString(entityName)).append("\n");
sb.append(" messageWithParams: ").append(toIndentedString(messageWithParams)).append("\n");
sb.append(" messageParams: ").append(toIndentedString(messageParams)).append("\n");
sb.append(" contextId: ").append(toIndentedString(contextId)).append("\n");
sb.append(" details: ").append(toIndentedString(details)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).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 ");
}
}