Class Template
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.virtual.guest.block.device.Template
-
@ApiType("SoftLayer_Virtual_Guest_Block_Device_Template") public class Template extends Entity
The virtual block device template data type presents the structure in which all archived image templates are presented.
A virtual block device template, also known as a image template, represents the image of a virtual guest instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Template.Mask
-
Field Summary
Fields Modifier and Type Field Description protected String
device
A name that identifies a block device template.protected boolean
deviceSpecified
protected Image
diskImage
A block device template's disk image.protected Long
diskImageId
A block device template's [[SoftLayer_Virtual_Disk_Image|disk image]] ID.protected boolean
diskImageIdSpecified
protected BigDecimal
diskSpace
The amount of disk space that a block device template is using.protected boolean
diskSpaceSpecified
protected Group
group
A block device template's group.protected Long
groupId
A block device template's [[SoftLayer_Virtual_Guest_Block_Device_Template_Group|group]] ID.protected boolean
groupIdSpecified
protected Long
id
A block device template's unique ID.protected boolean
idSpecified
protected String
units
The units that will be used with the disk space property to identify the amount of disk space used.protected boolean
unitsSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDevice()
Image
getDiskImage()
Long
getDiskImageId()
BigDecimal
getDiskSpace()
Group
getGroup()
Long
getGroupId()
Long
getId()
String
getUnits()
boolean
isDeviceSpecified()
boolean
isDiskImageIdSpecified()
boolean
isDiskSpaceSpecified()
boolean
isGroupIdSpecified()
boolean
isIdSpecified()
boolean
isUnitsSpecified()
void
setDevice(String device)
void
setDiskImage(Image diskImage)
void
setDiskImageId(Long diskImageId)
void
setDiskSpace(BigDecimal diskSpace)
void
setGroup(Group group)
void
setGroupId(Long groupId)
void
setId(Long id)
void
setUnits(String units)
void
unsetDevice()
void
unsetDiskImageId()
void
unsetDiskSpace()
void
unsetGroupId()
void
unsetId()
void
unsetUnits()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
diskImage
@ApiProperty protected Image diskImage
A block device template's disk image.
-
group
@ApiProperty protected Group group
A block device template's group. Several block device templates can be combined together into a group for archiving purposes.
-
device
@ApiProperty(canBeNullOrNotSet=true) protected String device
A name that identifies a block device template.
-
deviceSpecified
protected boolean deviceSpecified
-
diskImageId
@ApiProperty(canBeNullOrNotSet=true) protected Long diskImageId
A block device template's [[SoftLayer_Virtual_Disk_Image|disk image]] ID.
-
diskImageIdSpecified
protected boolean diskImageIdSpecified
-
diskSpace
@ApiProperty(canBeNullOrNotSet=true) protected BigDecimal diskSpace
The amount of disk space that a block device template is using. Use this number along with the units property to obtain the correct space used.
-
diskSpaceSpecified
protected boolean diskSpaceSpecified
-
groupId
@ApiProperty(canBeNullOrNotSet=true) protected Long groupId
A block device template's [[SoftLayer_Virtual_Guest_Block_Device_Template_Group|group]] ID.
-
groupIdSpecified
protected boolean groupIdSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
A block device template's unique ID.
-
idSpecified
protected boolean idSpecified
-
units
@ApiProperty(canBeNullOrNotSet=true) protected String units
The units that will be used with the disk space property to identify the amount of disk space used.
-
unitsSpecified
protected boolean unitsSpecified
-
-
Method Detail
-
getDiskImage
public Image getDiskImage()
-
setDiskImage
public void setDiskImage(Image diskImage)
-
getGroup
public Group getGroup()
-
setGroup
public void setGroup(Group group)
-
getDevice
public String getDevice()
-
setDevice
public void setDevice(String device)
-
isDeviceSpecified
public boolean isDeviceSpecified()
-
unsetDevice
public void unsetDevice()
-
getDiskImageId
public Long getDiskImageId()
-
setDiskImageId
public void setDiskImageId(Long diskImageId)
-
isDiskImageIdSpecified
public boolean isDiskImageIdSpecified()
-
unsetDiskImageId
public void unsetDiskImageId()
-
getDiskSpace
public BigDecimal getDiskSpace()
-
setDiskSpace
public void setDiskSpace(BigDecimal diskSpace)
-
isDiskSpaceSpecified
public boolean isDiskSpaceSpecified()
-
unsetDiskSpace
public void unsetDiskSpace()
-
getGroupId
public Long getGroupId()
-
setGroupId
public void setGroupId(Long groupId)
-
isGroupIdSpecified
public boolean isGroupIdSpecified()
-
unsetGroupId
public void unsetGroupId()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getUnits
public String getUnits()
-
setUnits
public void setUnits(String units)
-
isUnitsSpecified
public boolean isUnitsSpecified()
-
unsetUnits
public void unsetUnits()
-
-