//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2010.05.11 at 10:12:06 AM CEST 
//


package es.bsc.nuba.fco.tcloud;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * OVF section which describes affinity rules for a OVF descriptor
 * 
 * <p>Java class for AffinityRulesSection_Type complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="AffinityRulesSection_Type">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="AffinityRule" maxOccurs="unbounded" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="VirtualSystem" type="{http://schemas.tcloud.telefonica.com/tcloud/0.1}VirtualSystemPath_Type" maxOccurs="2" minOccurs="2"/>
 *                 &lt;/sequence>
 *                 &lt;attribute name="type">
 *                   &lt;simpleType>
 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *                       &lt;enumeration value="together"/>
 *                       &lt;enumeration value="separated"/>
 *                     &lt;/restriction>
 *                   &lt;/simpleType>
 *                 &lt;/attribute>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AffinityRulesSection_Type", namespace = "http://schemas.tcloud.telefonica.com/tcloud/0.1", propOrder = {
    "affinityRule"
})
public class AffinityRulesSectionType {

    @XmlElement(name = "AffinityRule", namespace = "http://schemas.tcloud.telefonica.com/tcloud/0.1")
    protected List<AffinityRulesSectionType.AffinityRule> affinityRule;

    /**
     * Gets the value of the affinityRule property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the affinityRule property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getAffinityRule().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link AffinityRulesSectionType.AffinityRule }
     * 
     * 
     */
    public List<AffinityRulesSectionType.AffinityRule> getAffinityRule() {
        if (affinityRule == null) {
            affinityRule = new ArrayList<AffinityRulesSectionType.AffinityRule>();
        }
        return this.affinityRule;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="VirtualSystem" type="{http://schemas.tcloud.telefonica.com/tcloud/0.1}VirtualSystemPath_Type" maxOccurs="2" minOccurs="2"/>
     *       &lt;/sequence>
     *       &lt;attribute name="type">
     *         &lt;simpleType>
     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
     *             &lt;enumeration value="together"/>
     *             &lt;enumeration value="separated"/>
     *           &lt;/restriction>
     *         &lt;/simpleType>
     *       &lt;/attribute>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "virtualSystem"
    })
    public static class AffinityRule {

        @XmlElement(name = "VirtualSystem", namespace = "http://schemas.tcloud.telefonica.com/tcloud/0.1", required = true)
        protected List<String> virtualSystem;
        @XmlAttribute
        protected String type;

        /**
         * Gets the value of the virtualSystem property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the virtualSystem property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getVirtualSystem().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link String }
         * 
         * 
         */
        public List<String> getVirtualSystem() {
            if (virtualSystem == null) {
                virtualSystem = new ArrayList<String>();
            }
            return this.virtualSystem;
        }

        /**
         * 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;
        }

    }

}
