package org.zstack.test.deployer.schema; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for SecurityGroupRuleConfig complex type. * <p> * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <complexType name="SecurityGroupRuleConfig"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="protocol" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="startPort" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0"/> * <element name="endPort" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0"/> * <element name="allowedCidr" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SecurityGroupRuleConfig", propOrder = { "type", "protocol", "startPort", "endPort", "allowedCidr" }) public class SecurityGroupRuleConfig { protected String type; protected String protocol; @XmlSchemaType(name = "unsignedInt") protected Long startPort; @XmlSchemaType(name = "unsignedInt") protected Long endPort; protected String allowedCidr; /** * Gets the value of the type property. * * @return possible object is * {@link String } */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value allowed object is * {@link String } */ public void setType(String value) { this.type = value; } /** * Gets the value of the protocol property. * * @return possible object is * {@link String } */ public String getProtocol() { return protocol; } /** * Sets the value of the protocol property. * * @param value allowed object is * {@link String } */ public void setProtocol(String value) { this.protocol = value; } /** * Gets the value of the startPort property. * * @return possible object is * {@link Long } */ public Long getStartPort() { return startPort; } /** * Sets the value of the startPort property. * * @param value allowed object is * {@link Long } */ public void setStartPort(Long value) { this.startPort = value; } /** * Gets the value of the endPort property. * * @return possible object is * {@link Long } */ public Long getEndPort() { return endPort; } /** * Sets the value of the endPort property. * * @param value allowed object is * {@link Long } */ public void setEndPort(Long value) { this.endPort = value; } /** * Gets the value of the allowedCidr property. * * @return possible object is * {@link String } */ public String getAllowedCidr() { return allowedCidr; } /** * Sets the value of the allowedCidr property. * * @param value allowed object is * {@link String } */ public void setAllowedCidr(String value) { this.allowedCidr = value; } }