
com.infobip.model.CallsSingleMessageStatus Maven / Gradle / Ivy
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Indicates whether the message is successfully sent, not sent, delivered, not delivered, waiting for delivery or any other possible status.
*/
public class CallsSingleMessageStatus {
private Integer groupId;
private String groupName;
private Integer id;
private String name;
private String description;
/**
* Sets groupId.
*
* Field description:
* Status group ID.
*
* @param groupId
* @return This {@link CallsSingleMessageStatus instance}.
*/
public CallsSingleMessageStatus groupId(Integer groupId) {
this.groupId = groupId;
return this;
}
/**
* Returns groupId.
*
* Field description:
* Status group ID.
*
* @return groupId
*/
@JsonProperty("groupId")
public Integer getGroupId() {
return groupId;
}
/**
* Sets groupId.
*
* Field description:
* Status group ID.
*
* @param groupId
*/
@JsonProperty("groupId")
public void setGroupId(Integer groupId) {
this.groupId = groupId;
}
/**
* Sets groupName.
*
* Field description:
* Status group name that describes which category the status code belongs to, e.g. PENDING, UNDELIVERABLE, DELIVERED, EXPIRED, REJECTED.
*
* @param groupName
* @return This {@link CallsSingleMessageStatus instance}.
*/
public CallsSingleMessageStatus groupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* Returns groupName.
*
* Field description:
* Status group name that describes which category the status code belongs to, e.g. PENDING, UNDELIVERABLE, DELIVERED, EXPIRED, REJECTED.
*
* @return groupName
*/
@JsonProperty("groupName")
public String getGroupName() {
return groupName;
}
/**
* Sets groupName.
*
* Field description:
* Status group name that describes which category the status code belongs to, e.g. PENDING, UNDELIVERABLE, DELIVERED, EXPIRED, REJECTED.
*
* @param groupName
*/
@JsonProperty("groupName")
public void setGroupName(String groupName) {
this.groupName = groupName;
}
/**
* Sets id.
*
* Field description:
* Status ID.
*
* @param id
* @return This {@link CallsSingleMessageStatus instance}.
*/
public CallsSingleMessageStatus id(Integer id) {
this.id = id;
return this;
}
/**
* Returns id.
*
* Field description:
* Status ID.
*
* @return id
*/
@JsonProperty("id")
public Integer getId() {
return id;
}
/**
* Sets id.
*
* Field description:
* Status ID.
*
* @param id
*/
@JsonProperty("id")
public void setId(Integer id) {
this.id = id;
}
/**
* Sets name.
*
* Field description:
* Status name.
*
* @param name
* @return This {@link CallsSingleMessageStatus instance}.
*/
public CallsSingleMessageStatus name(String name) {
this.name = name;
return this;
}
/**
* Returns name.
*
* Field description:
* Status name.
*
* @return name
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* Sets name.
*
* Field description:
* Status name.
*
* @param name
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
* Sets description.
*
* Field description:
* Human-readable description of the status.
*
* @param description
* @return This {@link CallsSingleMessageStatus instance}.
*/
public CallsSingleMessageStatus description(String description) {
this.description = description;
return this;
}
/**
* Returns description.
*
* Field description:
* Human-readable description of the status.
*
* @return description
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
* Sets description.
*
* Field description:
* Human-readable description of the status.
*
* @param description
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallsSingleMessageStatus callsSingleMessageStatus = (CallsSingleMessageStatus) o;
return Objects.equals(this.groupId, callsSingleMessageStatus.groupId)
&& Objects.equals(this.groupName, callsSingleMessageStatus.groupName)
&& Objects.equals(this.id, callsSingleMessageStatus.id)
&& Objects.equals(this.name, callsSingleMessageStatus.name)
&& Objects.equals(this.description, callsSingleMessageStatus.description);
}
@Override
public int hashCode() {
return Objects.hash(groupId, groupName, id, name, description);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class CallsSingleMessageStatus {")
.append(newLine)
.append(" groupId: ")
.append(toIndentedString(groupId))
.append(newLine)
.append(" groupName: ")
.append(toIndentedString(groupName))
.append(newLine)
.append(" id: ")
.append(toIndentedString(id))
.append(newLine)
.append(" name: ")
.append(toIndentedString(name))
.append(newLine)
.append(" description: ")
.append(toIndentedString(description))
.append(newLine)
.append("}")
.toString();
}
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
String lineSeparator = System.lineSeparator();
String lineSeparatorFollowedByIndentation = lineSeparator + " ";
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation);
}
}