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

infobip.api.model.Destination Maven / Gradle / Ivy

There is a newer version: 4.4.0
Show newest version
package infobip.api.model;

/**
 * This is a generated class and is not intended for modification!
 */
public class Destination {
    private String messageId;
    private String to;

    public Destination() {
    }

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

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

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

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

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

        Destination o = (Destination)obj;
        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;
        }

        return true;
    }

    @Override
    public String toString() {
        return "Destination{" +
            "messageId='" + messageId + "'" +
            ", to='" + to + "'" +
            '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy