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 IpRangeConfig complex type. * <p> * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <complexType name="IpRangeConfig"> * <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="description" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="startIp" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="endIp" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="netmask" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="gateway" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="Guest" /> * </restriction> * </complexContent> * </complexType> * </pre> */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "IpRangeConfig") public class IpRangeConfig { @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "description") protected String description; @XmlAttribute(name = "startIp", required = true) protected String startIp; @XmlAttribute(name = "endIp", required = true) protected String endIp; @XmlAttribute(name = "netmask", required = true) protected String netmask; @XmlAttribute(name = "gateway", required = true) protected String gateway; @XmlAttribute(name = "type") protected String type; /** * 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 description property. * * @return possible object is * {@link String } */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value allowed object is * {@link String } */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the startIp property. * * @return possible object is * {@link String } */ public String getStartIp() { return startIp; } /** * Sets the value of the startIp property. * * @param value allowed object is * {@link String } */ public void setStartIp(String value) { this.startIp = value; } /** * Gets the value of the endIp property. * * @return possible object is * {@link String } */ public String getEndIp() { return endIp; } /** * Sets the value of the endIp property. * * @param value allowed object is * {@link String } */ public void setEndIp(String value) { this.endIp = value; } /** * Gets the value of the netmask property. * * @return possible object is * {@link String } */ public String getNetmask() { return netmask; } /** * Sets the value of the netmask property. * * @param value allowed object is * {@link String } */ public void setNetmask(String value) { this.netmask = value; } /** * Gets the value of the gateway property. * * @return possible object is * {@link String } */ public String getGateway() { return gateway; } /** * Sets the value of the gateway property. * * @param value allowed object is * {@link String } */ public void setGateway(String value) { this.gateway = value; } /** * Gets the value of the type property. * * @return possible object is * {@link String } */ public String getType() { if (type == null) { return "Guest"; } else { return type; } } /** * Sets the value of the type property. * * @param value allowed object is * {@link String } */ public void setType(String value) { this.type = value; } }