org.jclouds.azure.management.domain.role.DNS Maven / Gradle / Ivy
package org.jclouds.azure.management.domain.role;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "Dns")
public class DNS {
/**
* Contains the parameters specifying the DNS servers to use for the virtual machine.
*/
@XmlElementWrapper(required = true, name = "DnsServers")
@XmlElement(name = "DnsServer")
private List dnsServers = new ArrayList();
public DNS() {
super();
}
public List getDnsServers() {
return dnsServers;
}
public void setDnsServers(List dnsServers) {
this.dnsServers = dnsServers;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((dnsServers == null) ? 0 : dnsServers.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
DNS other = (DNS) obj;
if (dnsServers == null) {
if (other.dnsServers != null)
return false;
} else if (!dnsServers.equals(other.dnsServers))
return false;
return true;
}
@Override
public String toString() {
return "DNS [dnsServers=" + dnsServers + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy