
com.vmware.vim25.MethodFault Maven / Gradle / Ivy
Show all versions of vi-api Show documentation
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;
/**
* 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="dynamicType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="dynamicProperty" type="{urn:vim25}DynamicProperty" maxOccurs="unbounded" minOccurs="0"/>
* <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 = {
"dynamicType",
"dynamicProperty",
"faultCause",
"faultMessage"
})
@XmlSeeAlso({
InvalidProperty.class,
InvalidCollectorVersion.class,
RuntimeFault.class,
VimFault.class
})
public class MethodFault {
protected String dynamicType;
protected List dynamicProperty;
protected LocalizedMethodFault faultCause;
protected List faultMessage;
/**
* Gets the value of the dynamicType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDynamicType() {
return dynamicType;
}
/**
* Sets the value of the dynamicType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDynamicType(String value) {
this.dynamicType = value;
}
/**
* Gets the value of the dynamicProperty 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 dynamicProperty property.
*
*
* For example, to add a new item, do as follows:
*
* getDynamicProperty().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DynamicProperty }
*
*
*/
public List getDynamicProperty() {
if (dynamicProperty == null) {
dynamicProperty = new ArrayList();
}
return this.dynamicProperty;
}
/**
* 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;
}
/**
* Sets the value of the dynamicProperty property.
*
* @param dynamicProperty
* allowed object is
* {@link DynamicProperty }
*
*/
public void setDynamicProperty(List dynamicProperty) {
this.dynamicProperty = dynamicProperty;
}
/**
* Sets the value of the faultMessage property.
*
* @param faultMessage
* allowed object is
* {@link LocalizableMessage }
*
*/
public void setFaultMessage(List faultMessage) {
this.faultMessage = faultMessage;
}
}