
com.infobip.model.MmsInboundReport 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.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Results.
*/
public class MmsInboundReport {
private String messageId;
private String to;
private String from;
private String message;
private List group = null;
private String receivedAt;
private Integer mmsCount;
private String callbackData;
private MessagePrice price;
private String applicationId;
private String entityId;
/**
* Sets messageId.
*
* Field description:
* ID that uniquely identifies the received message.
*
* @param messageId
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport messageId(String messageId) {
this.messageId = messageId;
return this;
}
/**
* Returns messageId.
*
* Field description:
* ID that uniquely identifies the received message.
*
* @return messageId
*/
@JsonProperty("messageId")
public String getMessageId() {
return messageId;
}
/**
* Sets messageId.
*
* Field description:
* ID that uniquely identifies the received message.
*
* @param messageId
*/
@JsonProperty("messageId")
public void setMessageId(String messageId) {
this.messageId = messageId;
}
/**
* Sets to.
*
* Field description:
* Message destination address.
*
* @param to
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport to(String to) {
this.to = to;
return this;
}
/**
* Returns to.
*
* Field description:
* Message destination address.
*
* @return to
*/
@JsonProperty("to")
public String getTo() {
return to;
}
/**
* Sets to.
*
* Field description:
* Message destination address.
*
* @param to
*/
@JsonProperty("to")
public void setTo(String to) {
this.to = to;
}
/**
* Sets from.
*
* Field description:
* Sender ID that can be alphanumeric or numeric.
*
* @param from
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport from(String from) {
this.from = from;
return this;
}
/**
* Returns from.
*
* Field description:
* Sender ID that can be alphanumeric or numeric.
*
* @return from
*/
@JsonProperty("from")
public String getFrom() {
return from;
}
/**
* Sets from.
*
* Field description:
* Sender ID that can be alphanumeric or numeric.
*
* @param from
*/
@JsonProperty("from")
public void setFrom(String from) {
this.from = from;
}
/**
* Sets message.
*
* Field description:
* Full text of the received message.
*
* @param message
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport message(String message) {
this.message = message;
return this;
}
/**
* Returns message.
*
* Field description:
* Full text of the received message.
*
* @return message
*/
@JsonProperty("message")
public String getMessage() {
return message;
}
/**
* Sets message.
*
* Field description:
* Full text of the received message.
*
* @param message
*/
@JsonProperty("message")
public void setMessage(String message) {
this.message = message;
}
/**
* Sets group.
*
* Field description:
* Recipients of group MMS.
*
* @param group
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport group(List group) {
this.group = group;
return this;
}
/**
* Adds and item into group.
*
* Field description:
* Recipients of group MMS.
*
* @param groupItem The item to be added to the list.
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport addGroupItem(MmsInboundDestination groupItem) {
if (this.group == null) {
this.group = new ArrayList<>();
}
this.group.add(groupItem);
return this;
}
/**
* Returns group.
*
* Field description:
* Recipients of group MMS.
*
* @return group
*/
@JsonProperty("group")
public List getGroup() {
return group;
}
/**
* Sets group.
*
* Field description:
* Recipients of group MMS.
*
* @param group
*/
@JsonProperty("group")
public void setGroup(List group) {
this.group = group;
}
/**
* Sets receivedAt.
*
* Field description:
* Tells when Infobip platform received the message. It has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
*
* @param receivedAt
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport receivedAt(String receivedAt) {
this.receivedAt = receivedAt;
return this;
}
/**
* Returns receivedAt.
*
* Field description:
* Tells when Infobip platform received the message. It has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
*
* @return receivedAt
*/
@JsonProperty("receivedAt")
public String getReceivedAt() {
return receivedAt;
}
/**
* Sets receivedAt.
*
* Field description:
* Tells when Infobip platform received the message. It has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
*
* @param receivedAt
*/
@JsonProperty("receivedAt")
public void setReceivedAt(String receivedAt) {
this.receivedAt = receivedAt;
}
/**
* Sets mmsCount.
*
* Field description:
* The number of sent message segments.
*
* @param mmsCount
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport mmsCount(Integer mmsCount) {
this.mmsCount = mmsCount;
return this;
}
/**
* Returns mmsCount.
*
* Field description:
* The number of sent message segments.
*
* @return mmsCount
*/
@JsonProperty("mmsCount")
public Integer getMmsCount() {
return mmsCount;
}
/**
* Sets mmsCount.
*
* Field description:
* The number of sent message segments.
*
* @param mmsCount
*/
@JsonProperty("mmsCount")
public void setMmsCount(Integer mmsCount) {
this.mmsCount = mmsCount;
}
/**
* Sets callbackData.
*
* Field description:
* Custom callback data can be inserted during the setup phase.
*
* @param callbackData
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport callbackData(String callbackData) {
this.callbackData = callbackData;
return this;
}
/**
* Returns callbackData.
*
* Field description:
* Custom callback data can be inserted during the setup phase.
*
* @return callbackData
*/
@JsonProperty("callbackData")
public String getCallbackData() {
return callbackData;
}
/**
* Sets callbackData.
*
* Field description:
* Custom callback data can be inserted during the setup phase.
*
* @param callbackData
*/
@JsonProperty("callbackData")
public void setCallbackData(String callbackData) {
this.callbackData = callbackData;
}
/**
* Sets price.
*
* @param price
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport price(MessagePrice price) {
this.price = price;
return this;
}
/**
* Returns price.
*
* @return price
*/
@JsonProperty("price")
public MessagePrice getPrice() {
return price;
}
/**
* Sets price.
*
* @param price
*/
@JsonProperty("price")
public void setPrice(MessagePrice price) {
this.price = price;
}
/**
* Sets applicationId.
*
* Field description:
* [Application](https://www.infobip.com/docs/cpaas-x/application-and-entity-management#application) identifier the message belongs to.
*
* @param applicationId
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* Returns applicationId.
*
* Field description:
* [Application](https://www.infobip.com/docs/cpaas-x/application-and-entity-management#application) identifier the message belongs to.
*
* @return applicationId
*/
@JsonProperty("applicationId")
public String getApplicationId() {
return applicationId;
}
/**
* Sets applicationId.
*
* Field description:
* [Application](https://www.infobip.com/docs/cpaas-x/application-and-entity-management#application) identifier the message belongs to.
*
* @param applicationId
*/
@JsonProperty("applicationId")
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
/**
* Sets entityId.
*
* Field description:
* [Entity](https://www.infobip.com/docs/cpaas-x/application-and-entity-management#entity) identifier the message belongs to.
*
* @param entityId
* @return This {@link MmsInboundReport instance}.
*/
public MmsInboundReport entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* Returns entityId.
*
* Field description:
* [Entity](https://www.infobip.com/docs/cpaas-x/application-and-entity-management#entity) identifier the message belongs to.
*
* @return entityId
*/
@JsonProperty("entityId")
public String getEntityId() {
return entityId;
}
/**
* Sets entityId.
*
* Field description:
* [Entity](https://www.infobip.com/docs/cpaas-x/application-and-entity-management#entity) identifier the message belongs to.
*
* @param entityId
*/
@JsonProperty("entityId")
public void setEntityId(String entityId) {
this.entityId = entityId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MmsInboundReport mmsInboundReport = (MmsInboundReport) o;
return Objects.equals(this.messageId, mmsInboundReport.messageId)
&& Objects.equals(this.to, mmsInboundReport.to)
&& Objects.equals(this.from, mmsInboundReport.from)
&& Objects.equals(this.message, mmsInboundReport.message)
&& Objects.equals(this.group, mmsInboundReport.group)
&& Objects.equals(this.receivedAt, mmsInboundReport.receivedAt)
&& Objects.equals(this.mmsCount, mmsInboundReport.mmsCount)
&& Objects.equals(this.callbackData, mmsInboundReport.callbackData)
&& Objects.equals(this.price, mmsInboundReport.price)
&& Objects.equals(this.applicationId, mmsInboundReport.applicationId)
&& Objects.equals(this.entityId, mmsInboundReport.entityId);
}
@Override
public int hashCode() {
return Objects.hash(
messageId,
to,
from,
message,
group,
receivedAt,
mmsCount,
callbackData,
price,
applicationId,
entityId);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class MmsInboundReport {")
.append(newLine)
.append(" messageId: ")
.append(toIndentedString(messageId))
.append(newLine)
.append(" to: ")
.append(toIndentedString(to))
.append(newLine)
.append(" from: ")
.append(toIndentedString(from))
.append(newLine)
.append(" message: ")
.append(toIndentedString(message))
.append(newLine)
.append(" group: ")
.append(toIndentedString(group))
.append(newLine)
.append(" receivedAt: ")
.append(toIndentedString(receivedAt))
.append(newLine)
.append(" mmsCount: ")
.append(toIndentedString(mmsCount))
.append(newLine)
.append(" callbackData: ")
.append(toIndentedString(callbackData))
.append(newLine)
.append(" price: ")
.append(toIndentedString(price))
.append(newLine)
.append(" applicationId: ")
.append(toIndentedString(applicationId))
.append(newLine)
.append(" entityId: ")
.append(toIndentedString(entityId))
.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);
}
}