![JAR search and dependency download from the Maven repository](/logo.png)
com.vmware.pbm.PbmCapabilityInstance Maven / Gradle / Ivy
package com.vmware.pbm;
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;
import com.vmware.vim25.DynamicData;
/**
* Java class for PbmCapabilityInstance complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PbmCapabilityInstance">
* <complexContent>
* <extension base="{urn:vim25}DynamicData">
* <sequence>
* <element name="id" type="{urn:pbm}PbmCapabilityMetadataUniqueId"/>
* <element name="constraint" type="{urn:pbm}PbmCapabilityConstraintInstance" maxOccurs="unbounded"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PbmCapabilityInstance", propOrder = {
"id",
"constraint"
})
public class PbmCapabilityInstance
extends DynamicData
{
@XmlElement(required = true)
protected PbmCapabilityMetadataUniqueId id;
@XmlElement(required = true)
protected List constraint;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link PbmCapabilityMetadataUniqueId }
*
*/
public PbmCapabilityMetadataUniqueId getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link PbmCapabilityMetadataUniqueId }
*
*/
public void setId(PbmCapabilityMetadataUniqueId value) {
this.id = value;
}
/**
* Gets the value of the constraint 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 constraint property.
*
*
* For example, to add a new item, do as follows:
*
* getConstraint().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PbmCapabilityConstraintInstance }
*
*
*/
public List getConstraint() {
if (constraint == null) {
constraint = new ArrayList();
}
return this.constraint;
}
}