![JAR search and dependency download from the Maven repository](/logo.png)
com.vmware.vim25.VirtualDeviceConfigSpec 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.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for VirtualDeviceConfigSpec complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="VirtualDeviceConfigSpec">
* <complexContent>
* <extension base="{urn:vim25}DynamicData">
* <sequence>
* <element name="operation" type="{urn:vim25}VirtualDeviceConfigSpecOperation" minOccurs="0"/>
* <element name="fileOperation" type="{urn:vim25}VirtualDeviceConfigSpecFileOperation" minOccurs="0"/>
* <element name="device" type="{urn:vim25}VirtualDevice"/>
* <element name="profile" type="{urn:vim25}VirtualMachineProfileSpec" maxOccurs="unbounded" minOccurs="0"/>
* <element name="backing" type="{urn:vim25}VirtualDeviceConfigSpecBackingSpec" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VirtualDeviceConfigSpec", propOrder = {
"operation",
"fileOperation",
"device",
"profile",
"backing"
})
@XmlSeeAlso({
VirtualDiskConfigSpec.class
})
public class VirtualDeviceConfigSpec
extends DynamicData
{
@XmlSchemaType(name = "string")
protected VirtualDeviceConfigSpecOperation operation;
@XmlSchemaType(name = "string")
protected VirtualDeviceConfigSpecFileOperation fileOperation;
@XmlElement(required = true)
protected VirtualDevice device;
protected List profile;
protected VirtualDeviceConfigSpecBackingSpec backing;
/**
* Gets the value of the operation property.
*
* @return
* possible object is
* {@link VirtualDeviceConfigSpecOperation }
*
*/
public VirtualDeviceConfigSpecOperation getOperation() {
return operation;
}
/**
* Sets the value of the operation property.
*
* @param value
* allowed object is
* {@link VirtualDeviceConfigSpecOperation }
*
*/
public void setOperation(VirtualDeviceConfigSpecOperation value) {
this.operation = value;
}
/**
* Gets the value of the fileOperation property.
*
* @return
* possible object is
* {@link VirtualDeviceConfigSpecFileOperation }
*
*/
public VirtualDeviceConfigSpecFileOperation getFileOperation() {
return fileOperation;
}
/**
* Sets the value of the fileOperation property.
*
* @param value
* allowed object is
* {@link VirtualDeviceConfigSpecFileOperation }
*
*/
public void setFileOperation(VirtualDeviceConfigSpecFileOperation value) {
this.fileOperation = value;
}
/**
* Gets the value of the device property.
*
* @return
* possible object is
* {@link VirtualDevice }
*
*/
public VirtualDevice getDevice() {
return device;
}
/**
* Sets the value of the device property.
*
* @param value
* allowed object is
* {@link VirtualDevice }
*
*/
public void setDevice(VirtualDevice value) {
this.device = value;
}
/**
* Gets the value of the profile 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 profile property.
*
*
* For example, to add a new item, do as follows:
*
* getProfile().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link VirtualMachineProfileSpec }
*
*
*/
public List getProfile() {
if (profile == null) {
profile = new ArrayList();
}
return this.profile;
}
/**
* Gets the value of the backing property.
*
* @return
* possible object is
* {@link VirtualDeviceConfigSpecBackingSpec }
*
*/
public VirtualDeviceConfigSpecBackingSpec getBacking() {
return backing;
}
/**
* Sets the value of the backing property.
*
* @param value
* allowed object is
* {@link VirtualDeviceConfigSpecBackingSpec }
*
*/
public void setBacking(VirtualDeviceConfigSpecBackingSpec value) {
this.backing = value;
}
}