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

infobip.api.model.sms.mt.send.binary.SMSAdvancedBinaryRequest Maven / Gradle / Ivy

There is a newer version: 4.4.0
Show newest version
package infobip.api.model.sms.mt.send.binary;

import infobip.api.model.sms.mt.send.Message;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import infobip.api.model.sms.mt.send.Tracking;

/**
 * This is a generated class and is not intended for modification!
 */
public class SMSAdvancedBinaryRequest {
    private String bulkId;
    private List messages = new ArrayList();
    private Tracking tracking;

    public SMSAdvancedBinaryRequest() {
    }

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

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

    public List getMessages() {
        return this.messages;
    }

    public SMSAdvancedBinaryRequest setMessages(List messages) {
        this.messages = messages;
        return this;
    }

    public SMSAdvancedBinaryRequest addMessages(Message... messages) {
        this.messages.addAll(Arrays.asList(messages));
        return this;
    }

    public SMSAdvancedBinaryRequest removeMessages(Message... messages) {
        this.messages.removeAll(Arrays.asList(messages));
        return this;
    }

    public Tracking getTracking() {
        return this.tracking;
    }

    public SMSAdvancedBinaryRequest setTracking(Tracking tracking) {
        this.tracking = tracking;
        return this;
    }

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

        SMSAdvancedBinaryRequest o = (SMSAdvancedBinaryRequest)obj;
        if (this.bulkId == null) {
            if (o.bulkId != null){
                return false;
            }
        } else if (!this.bulkId.equals(o.bulkId)) {
            return false;
        }
        if (this.messages == null) {
            if (o.messages != null){
                return false;
            }
        } else if (!this.messages.equals(o.messages)) {
            return false;
        }
        if (this.tracking == null) {
            if (o.tracking != null){
                return false;
            }
        } else if (!this.tracking.equals(o.tracking)) {
            return false;
        }

        return true;
    }

    @Override
    public String toString() {
        return "SMSAdvancedBinaryRequest{" +
            "bulkId='" + bulkId + "'" +
            ", messages=" + (messages == null?"null":Arrays.toString(messages.toArray())) +
            ", tracking='" + tracking + "'" +
            '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy