
com.vmware.vim25.MethodFault Maven / Gradle / Ivy
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import com.vmware.pbm.PbmFault;
/**
* Java class for MethodFault complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MethodFault">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="faultCause" type="{urn:vim25}LocalizedMethodFault" minOccurs="0"/>
* <element name="faultMessage" type="{urn:vim25}LocalizableMessage" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MethodFault", propOrder = {
"faultCause",
"faultMessage"
})
@XmlSeeAlso({
InvalidCollectorVersion.class,
InvalidProperty.class,
RuntimeFault.class,
VimFault.class,
PbmFault.class
})
public class MethodFault {
protected LocalizedMethodFault faultCause;
protected List faultMessage;
/**
* Gets the value of the faultCause property.
*
* @return
* possible object is
* {@link LocalizedMethodFault }
*
*/
public LocalizedMethodFault getFaultCause() {
return faultCause;
}
/**
* Sets the value of the faultCause property.
*
* @param value
* allowed object is
* {@link LocalizedMethodFault }
*
*/
public void setFaultCause(LocalizedMethodFault value) {
this.faultCause = value;
}
/**
* Gets the value of the faultMessage 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 faultMessage property.
*
*
* For example, to add a new item, do as follows:
*
* getFaultMessage().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LocalizableMessage }
*
*
*/
public List getFaultMessage() {
if (faultMessage == null) {
faultMessage = new ArrayList();
}
return this.faultMessage;
}
}