
com.infobip.model.MessageError Maven / Gradle / Ivy
/*
* Infobip Client API Libraries OpenAPI Specification
* OpenAPI specification containing public endpoints supported in client API libraries.
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.infobip.model;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
/** MessageError */
public class MessageError {
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_PERMANENT = "permanent";
@SerializedName(SERIALIZED_NAME_PERMANENT)
private Boolean permanent;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Integer id;
public static final String SERIALIZED_NAME_GROUP_NAME = "groupName";
@SerializedName(SERIALIZED_NAME_GROUP_NAME)
private String groupName;
public static final String SERIALIZED_NAME_GROUP_ID = "groupId";
@SerializedName(SERIALIZED_NAME_GROUP_ID)
private Integer groupId;
public MessageError description(String description) {
this.description = description;
return this;
}
/**
* Human-readable description of the error..
*
* @return description
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public MessageError permanent(Boolean permanent) {
this.permanent = permanent;
return this;
}
/**
* Indicates whether the error is permanent.
*
* @return permanent
*/
public Boolean getPermanent() {
return permanent;
}
public void setPermanent(Boolean permanent) {
this.permanent = permanent;
}
public MessageError name(String name) {
this.name = name;
return this;
}
/**
* Error name.
*
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public MessageError id(Integer id) {
this.id = id;
return this;
}
/**
* Error ID.
*
* @return id
*/
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public MessageError groupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* Error group name.
*
* @return groupName
*/
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public MessageError groupId(Integer groupId) {
this.groupId = groupId;
return this;
}
/**
* Error group ID.
*
* @return groupId
*/
public Integer getGroupId() {
return groupId;
}
public void setGroupId(Integer groupId) {
this.groupId = groupId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MessageError messageError = (MessageError) o;
return Objects.equals(this.description, messageError.description)
&& Objects.equals(this.permanent, messageError.permanent)
&& Objects.equals(this.name, messageError.name)
&& Objects.equals(this.id, messageError.id)
&& Objects.equals(this.groupName, messageError.groupName)
&& Objects.equals(this.groupId, messageError.groupId);
}
@Override
public int hashCode() {
return Objects.hash(description, permanent, name, id, groupName, groupId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MessageError {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" permanent: ").append(toIndentedString(permanent)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
sb.append(" groupId: ").append(toIndentedString(groupId)).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