All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.vim25.HostPortGroup Maven / Gradle / Ivy

There is a newer version: 0.6.60
Show newest version

package com.vmware.vim25;

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.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for HostPortGroup complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="HostPortGroup">
 *   <complexContent>
 *     <extension base="{urn:vim25}DynamicData">
 *       <sequence>
 *         <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="port" type="{urn:vim25}HostPortGroupPort" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="vswitch" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="computedPolicy" type="{urn:vim25}HostNetworkPolicy"/>
 *         <element name="spec" type="{urn:vim25}HostPortGroupSpec"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "HostPortGroup", propOrder = { "key", "port", "vswitch", "computedPolicy", "spec" }) public class HostPortGroup extends DynamicData { protected String key; protected List port; protected String vswitch; @XmlElement(required = true) protected HostNetworkPolicy computedPolicy; @XmlElement(required = true) protected HostPortGroupSpec spec; /** * Gets the value of the key property. * * @return * possible object is * {@link String } * */ public String getKey() { return key; } /** * Sets the value of the key property. * * @param value * allowed object is * {@link String } * */ public void setKey(String value) { this.key = value; } /** * Gets the value of the port property. * *

* 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 set method for the port property. * *

* For example, to add a new item, do as follows: *

     *    getPort().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link HostPortGroupPort } * * */ public List getPort() { if (port == null) { port = new ArrayList(); } return this.port; } /** * Gets the value of the vswitch property. * * @return * possible object is * {@link String } * */ public String getVswitch() { return vswitch; } /** * Sets the value of the vswitch property. * * @param value * allowed object is * {@link String } * */ public void setVswitch(String value) { this.vswitch = value; } /** * Gets the value of the computedPolicy property. * * @return * possible object is * {@link HostNetworkPolicy } * */ public HostNetworkPolicy getComputedPolicy() { return computedPolicy; } /** * Sets the value of the computedPolicy property. * * @param value * allowed object is * {@link HostNetworkPolicy } * */ public void setComputedPolicy(HostNetworkPolicy value) { this.computedPolicy = value; } /** * Gets the value of the spec property. * * @return * possible object is * {@link HostPortGroupSpec } * */ public HostPortGroupSpec getSpec() { return spec; } /** * Sets the value of the spec property. * * @param value * allowed object is * {@link HostPortGroupSpec } * */ public void setSpec(HostPortGroupSpec value) { this.spec = value; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy