com.mypurecloud.sdk.model.SocialConversationNotificationErrorBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.CallbackConversationNotificationErrorInfoDetails;
import com.mypurecloud.sdk.model.SocialConversationNotificationErrorBody;
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;
/**
* SocialConversationNotificationErrorBody
*/
public class SocialConversationNotificationErrorBody implements Serializable {
private Integer status = null;
private String code = null;
private String entityId = null;
private String entityName = null;
private String message = null;
private String messageWithParams = null;
private Map messageParams = new HashMap();
private String contextId = null;
private List details = new ArrayList();
private List errors = new ArrayList();
/**
**/
public SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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 SocialConversationNotificationErrorBody 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SocialConversationNotificationErrorBody socialConversationNotificationErrorBody = (SocialConversationNotificationErrorBody) o;
return Objects.equals(this.status, socialConversationNotificationErrorBody.status) &&
Objects.equals(this.code, socialConversationNotificationErrorBody.code) &&
Objects.equals(this.entityId, socialConversationNotificationErrorBody.entityId) &&
Objects.equals(this.entityName, socialConversationNotificationErrorBody.entityName) &&
Objects.equals(this.message, socialConversationNotificationErrorBody.message) &&
Objects.equals(this.messageWithParams, socialConversationNotificationErrorBody.messageWithParams) &&
Objects.equals(this.messageParams, socialConversationNotificationErrorBody.messageParams) &&
Objects.equals(this.contextId, socialConversationNotificationErrorBody.contextId) &&
Objects.equals(this.details, socialConversationNotificationErrorBody.details) &&
Objects.equals(this.errors, socialConversationNotificationErrorBody.errors);
}
@Override
public int hashCode() {
return Objects.hash(status, code, entityId, entityName, message, messageWithParams, messageParams, contextId, details, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SocialConversationNotificationErrorBody {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
sb.append(" entityName: ").append(toIndentedString(entityName)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).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("}");
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 ");
}
}