All Downloads are FREE. Search and download functionalities are using the official Maven repository.

infobip.api.model.omni.reports.OMNIReport Maven / Gradle / Ivy

There is a newer version: 5.1.0
Show newest version
package infobip.api.model.omni.reports;

import java.util.Date;
import infobip.api.model.omni.Price;
import infobip.api.model.omni.Status;
import infobip.api.model.omni.Error;
import infobip.api.model.omni.OmniChannel;

/**
 * This is a generated class and is not intended for modification!
 */
public class OMNIReport {
    private String bulkId;
    private String messageId;
    private String to;
    private Date sentAt;
    private Date doneAt;
    private Integer messageCount;
    private String mccMnc;
    private Price price;
    private Status status;
    private Error error;
    private OmniChannel channel;

    public OMNIReport() {
    }

    public String getBulkId() {
        return this.bulkId;
    }

    public OMNIReport setBulkId(String bulkId) {
        this.bulkId = bulkId;
        return this;
    }

    public String getMessageId() {
        return this.messageId;
    }

    public OMNIReport setMessageId(String messageId) {
        this.messageId = messageId;
        return this;
    }

    public String getTo() {
        return this.to;
    }

    public OMNIReport setTo(String to) {
        this.to = to;
        return this;
    }

    public Date getSentAt() {
        return this.sentAt;
    }

    public OMNIReport setSentAt(Date sentAt) {
        this.sentAt = sentAt;
        return this;
    }

    public Date getDoneAt() {
        return this.doneAt;
    }

    public OMNIReport setDoneAt(Date doneAt) {
        this.doneAt = doneAt;
        return this;
    }

    public Integer getMessageCount() {
        return this.messageCount;
    }

    public OMNIReport setMessageCount(Integer messageCount) {
        this.messageCount = messageCount;
        return this;
    }

    public String getMccMnc() {
        return this.mccMnc;
    }

    public OMNIReport setMccMnc(String mccMnc) {
        this.mccMnc = mccMnc;
        return this;
    }

    public Price getPrice() {
        return this.price;
    }

    public OMNIReport setPrice(Price price) {
        this.price = price;
        return this;
    }

    public Status getStatus() {
        return this.status;
    }

    public OMNIReport setStatus(Status status) {
        this.status = status;
        return this;
    }

    public Error getError() {
        return this.error;
    }

    public OMNIReport setError(Error error) {
        this.error = error;
        return this;
    }

    public OmniChannel getChannel() {
        return this.channel;
    }

    public OMNIReport setChannel(OmniChannel channel) {
        this.channel = channel;
        return this;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }

        OMNIReport o = (OMNIReport)obj;
        if (this.bulkId == null) {
            if (o.bulkId != null){
                return false;
            }
        } else if (!this.bulkId.equals(o.bulkId)) {
            return false;
        }
        if (this.messageId == null) {
            if (o.messageId != null){
                return false;
            }
        } else if (!this.messageId.equals(o.messageId)) {
            return false;
        }
        if (this.to == null) {
            if (o.to != null){
                return false;
            }
        } else if (!this.to.equals(o.to)) {
            return false;
        }
        if (this.sentAt == null) {
            if (o.sentAt != null){
                return false;
            }
        } else if (!this.sentAt.equals(o.sentAt)) {
            return false;
        }
        if (this.doneAt == null) {
            if (o.doneAt != null){
                return false;
            }
        } else if (!this.doneAt.equals(o.doneAt)) {
            return false;
        }
        if (this.messageCount == null) {
            if (o.messageCount != null){
                return false;
            }
        } else if (!this.messageCount.equals(o.messageCount)) {
            return false;
        }
        if (this.mccMnc == null) {
            if (o.mccMnc != null){
                return false;
            }
        } else if (!this.mccMnc.equals(o.mccMnc)) {
            return false;
        }
        if (this.price == null) {
            if (o.price != null){
                return false;
            }
        } else if (!this.price.equals(o.price)) {
            return false;
        }
        if (this.status == null) {
            if (o.status != null){
                return false;
            }
        } else if (!this.status.equals(o.status)) {
            return false;
        }
        if (this.error == null) {
            if (o.error != null){
                return false;
            }
        } else if (!this.error.equals(o.error)) {
            return false;
        }
        if (this.channel == null) {
            if (o.channel != null){
                return false;
            }
        } else if (!this.channel.equals(o.channel)) {
            return false;
        }

        return true;
    }

    @Override
    public String toString() {
        return "OMNIReport{" +
            "bulkId='" + bulkId + "'" +
            ", messageId='" + messageId + "'" +
            ", to='" + to + "'" +
            ", sentAt='" + sentAt + "'" +
            ", doneAt='" + doneAt + "'" +
            ", messageCount='" + messageCount + "'" +
            ", mccMnc='" + mccMnc + "'" +
            ", price='" + price + "'" +
            ", status='" + status + "'" +
            ", error='" + error + "'" +
            ", channel='" + channel + "'" +
            '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy