infobip.api.model.sms.mt.send.binary.SMSBinaryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-api-java-client Show documentation
Show all versions of infobip-api-java-client Show documentation
API client in Java for Infobip's API (http://dev.infobip.com/).
package infobip.api.model.sms.mt.send.binary;
import java.util.ArrayList;
import java.util.List;
import infobip.api.model.sms.mt.send.binary.BinaryContent;
/**
* This is a generated class and is not intended for modification!
*/
public class SMSBinaryRequest {
private String from;
private List to = new ArrayList<>();
private BinaryContent binary;
private String campaignId;
private String operatorClientId;
public SMSBinaryRequest() {
}
public String getFrom() {
return this.from;
}
public SMSBinaryRequest setFrom(String from) {
this.from = from;
return this;
}
public List getTo() {
return this.to;
}
public SMSBinaryRequest setTo(List to) {
this.to = to;
return this;
}
public BinaryContent getBinary() {
return this.binary;
}
public SMSBinaryRequest setBinary(BinaryContent binary) {
this.binary = binary;
return this;
}
public String getCampaignId() {
return this.campaignId;
}
public SMSBinaryRequest setCampaignId(String campaignId) {
this.campaignId = campaignId;
return this;
}
public String getOperatorClientId() {
return this.operatorClientId;
}
public SMSBinaryRequest setOperatorClientId(String operatorClientId) {
this.operatorClientId = operatorClientId;
return this;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
SMSBinaryRequest o = (SMSBinaryRequest)obj;
if (this.from == null) {
if (o.from != null){
return false;
}
} else if (!this.from.equals(o.from)) {
return false;
}
if (this.to == null) {
if (o.to != null){
return false;
}
} else if (!this.to.equals(o.to)) {
return false;
}
if (this.binary == null) {
if (o.binary != null){
return false;
}
} else if (!this.binary.equals(o.binary)) {
return false;
}
if (this.campaignId == null) {
if (o.campaignId != null){
return false;
}
} else if (!this.campaignId.equals(o.campaignId)) {
return false;
}
if (this.operatorClientId == null) {
if (o.operatorClientId != null){
return false;
}
} else if (!this.operatorClientId.equals(o.operatorClientId)) {
return false;
}
return true;
}
@Override
public String toString() {
return "SMSBinaryRequest{" +
"from='" + from + "'" +
", to='" + to + "'" +
", binary='" + binary + "'" +
", campaignId='" + campaignId + "'" +
", operatorClientId='" + operatorClientId + "'" +
'}';
}
}