infobip.api.model.nc.query.NumberContextResponseDetails 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.nc.query;
import infobip.api.model.nc.Network;
import infobip.api.model.Status;
import infobip.api.model.Error;
/**
* This is a generated class and is not intended for modification!
*/
public class NumberContextResponseDetails {
private String to;
private String mccMnc;
private String imsi;
private Network originalNetwork;
private Boolean ported;
private Network portedNetwork;
private Boolean roaming;
private Network roamingNetwork;
private String servingMSC;
private Status status;
private Error error;
public NumberContextResponseDetails() {
}
public String getTo() {
return this.to;
}
public NumberContextResponseDetails setTo(String to) {
this.to = to;
return this;
}
public String getMccMnc() {
return this.mccMnc;
}
public NumberContextResponseDetails setMccMnc(String mccMnc) {
this.mccMnc = mccMnc;
return this;
}
public String getImsi() {
return this.imsi;
}
public NumberContextResponseDetails setImsi(String imsi) {
this.imsi = imsi;
return this;
}
public Network getOriginalNetwork() {
return this.originalNetwork;
}
public NumberContextResponseDetails setOriginalNetwork(Network originalNetwork) {
this.originalNetwork = originalNetwork;
return this;
}
public Boolean getPorted() {
return this.ported;
}
public NumberContextResponseDetails setPorted(Boolean ported) {
this.ported = ported;
return this;
}
public Network getPortedNetwork() {
return this.portedNetwork;
}
public NumberContextResponseDetails setPortedNetwork(Network portedNetwork) {
this.portedNetwork = portedNetwork;
return this;
}
public Boolean getRoaming() {
return this.roaming;
}
public NumberContextResponseDetails setRoaming(Boolean roaming) {
this.roaming = roaming;
return this;
}
public Network getRoamingNetwork() {
return this.roamingNetwork;
}
public NumberContextResponseDetails setRoamingNetwork(Network roamingNetwork) {
this.roamingNetwork = roamingNetwork;
return this;
}
public String getServingMSC() {
return this.servingMSC;
}
public NumberContextResponseDetails setServingMSC(String servingMSC) {
this.servingMSC = servingMSC;
return this;
}
public Status getStatus() {
return this.status;
}
public NumberContextResponseDetails setStatus(Status status) {
this.status = status;
return this;
}
public Error getError() {
return this.error;
}
public NumberContextResponseDetails setError(Error error) {
this.error = error;
return this;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
NumberContextResponseDetails o = (NumberContextResponseDetails)obj;
if (this.to == null) {
if (o.to != null){
return false;
}
} else if (!this.to.equals(o.to)) {
return false;
}
if (this.mccMnc == null) {
if (o.mccMnc != null){
return false;
}
} else if (!this.mccMnc.equals(o.mccMnc)) {
return false;
}
if (this.imsi == null) {
if (o.imsi != null){
return false;
}
} else if (!this.imsi.equals(o.imsi)) {
return false;
}
if (this.originalNetwork == null) {
if (o.originalNetwork != null){
return false;
}
} else if (!this.originalNetwork.equals(o.originalNetwork)) {
return false;
}
if (this.ported == null) {
if (o.ported != null){
return false;
}
} else if (!this.ported.equals(o.ported)) {
return false;
}
if (this.portedNetwork == null) {
if (o.portedNetwork != null){
return false;
}
} else if (!this.portedNetwork.equals(o.portedNetwork)) {
return false;
}
if (this.roaming == null) {
if (o.roaming != null){
return false;
}
} else if (!this.roaming.equals(o.roaming)) {
return false;
}
if (this.roamingNetwork == null) {
if (o.roamingNetwork != null){
return false;
}
} else if (!this.roamingNetwork.equals(o.roamingNetwork)) {
return false;
}
if (this.servingMSC == null) {
if (o.servingMSC != null){
return false;
}
} else if (!this.servingMSC.equals(o.servingMSC)) {
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;
}
return true;
}
@Override
public String toString() {
return "NumberContextResponseDetails{" +
"to='" + to + "'" +
", mccMnc='" + mccMnc + "'" +
", imsi='" + imsi + "'" +
", originalNetwork='" + originalNetwork + "'" +
", ported='" + ported + "'" +
", portedNetwork='" + portedNetwork + "'" +
", roaming='" + roaming + "'" +
", roamingNetwork='" + roamingNetwork + "'" +
", servingMSC='" + servingMSC + "'" +
", status='" + status + "'" +
", error='" + error + "'" +
'}';
}
}