com.softlayer.api.service.virtual.host.PciDevice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.virtual.host;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.hardware.component.Model;
import com.softlayer.api.service.virtual.Host;
/**
* This type represents a PCI device on a host.
*
* @see SoftLayer_Virtual_Host_PciDevice
*/
@ApiType("SoftLayer_Virtual_Host_PciDevice")
public class PciDevice extends Entity {
@ApiProperty
protected Model hardwareComponentModel;
public Model getHardwareComponentModel() {
return hardwareComponentModel;
}
public void setHardwareComponentModel(Model hardwareComponentModel) {
this.hardwareComponentModel = hardwareComponentModel;
}
@ApiProperty
protected Host host;
public Host getHost() {
return host;
}
public void setHost(Host host) {
this.host = host;
}
/**
* ID of the PCI device.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* The unique id of the PCI device's record on a virtualization platform.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String uuid;
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
uuidSpecified = true;
this.uuid = uuid;
}
protected boolean uuidSpecified;
public boolean isUuidSpecified() {
return uuidSpecified;
}
public void unsetUuid() {
uuid = null;
uuidSpecified = false;
}
/**
* The BDF (Domain:Bus:Device.Function) id of the PCI device in XenServer.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String xenPciId;
public String getXenPciId() {
return xenPciId;
}
public void setXenPciId(String xenPciId) {
xenPciIdSpecified = true;
this.xenPciId = xenPciId;
}
protected boolean xenPciIdSpecified;
public boolean isXenPciIdSpecified() {
return xenPciIdSpecified;
}
public void unsetXenPciId() {
xenPciId = null;
xenPciIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.hardware.component.Model.Mask hardwareComponentModel() {
return withSubMask("hardwareComponentModel", com.softlayer.api.service.hardware.component.Model.Mask.class);
}
public com.softlayer.api.service.virtual.Host.Mask host() {
return withSubMask("host", com.softlayer.api.service.virtual.Host.Mask.class);
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask uuid() {
withLocalProperty("uuid");
return this;
}
public Mask xenPciId() {
withLocalProperty("xenPciId");
return this;
}
}
}