package org.zstack.test.deployer.schema; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DnsConfig complex type. * <p> * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <complexType name="DnsConfig"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="address" type="{http://www.w3.org/2001/XMLSchema}string" default="8.8.8.8" /> * </restriction> * </complexContent> * </complexType> * </pre> */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DnsConfig") public class DnsConfig { @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "address") protected String address; /** * Gets the value of the name property. * * @return possible object is * {@link String } */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value allowed object is * {@link String } */ public void setName(String value) { this.name = value; } /** * Gets the value of the address property. * * @return possible object is * {@link String } */ public String getAddress() { if (address == null) { return "8.8.8.8"; } else { return address; } } /** * Sets the value of the address property. * * @param value allowed object is * {@link String } */ public void setAddress(String value) { this.address = value; } }