package org.opennaas.extensions.quantum.model; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; /** * Internal representation of a DNS nameserver * * @author Julio Carlos Barrera * */ @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class DNSNameServer { private String address; private String subnet_id; public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getSubnet_id() { return subnet_id; } public void setSubnet_id(String subnet_id) { this.subnet_id = subnet_id; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DNSNameServer other = (DNSNameServer) obj; if (!address.equals(other.getAddress())) return false; if (!subnet_id.equals(other.getSubnet_id())) return false; return true; } }