Class NutanixVMDiskDeviceProperties
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1.NutanixVMDiskDeviceProperties
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NutanixVMDiskDevicePropertiesBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NutanixVMDiskDeviceProperties extends Object implements io.fabric8.kubernetes.api.builder.Editable<NutanixVMDiskDevicePropertiesBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NutanixVMDiskDeviceProperties specifies the disk device properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NutanixVMDiskDeviceProperties()No args constructor for use in serializationNutanixVMDiskDeviceProperties(String adapterType, Integer deviceIndex, String deviceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NutanixVMDiskDevicePropertiesBuilderedit()StringgetAdapterType()adapterType is the adapter type of the disk address.Map<String,Object>getAdditionalProperties()IntegergetDeviceIndex()deviceIndex is the index of the disk address.StringgetDeviceType()deviceType specifies the disk device type.voidsetAdapterType(String adapterType)adapterType is the adapter type of the disk address.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDeviceIndex(Integer deviceIndex)deviceIndex is the index of the disk address.voidsetDeviceType(String deviceType)deviceType specifies the disk device type.NutanixVMDiskDevicePropertiesBuildertoBuilder()
-
-
-
Method Detail
-
getAdapterType
public String getAdapterType()
adapterType is the adapter type of the disk address. If the deviceType is "Disk", the valid adapterType can be "SCSI", "IDE", "PCI", "SATA" or "SPAPR". If the deviceType is "CDRom", the valid adapterType can be "IDE" or "SATA".
-
setAdapterType
public void setAdapterType(String adapterType)
adapterType is the adapter type of the disk address. If the deviceType is "Disk", the valid adapterType can be "SCSI", "IDE", "PCI", "SATA" or "SPAPR". If the deviceType is "CDRom", the valid adapterType can be "IDE" or "SATA".
-
getDeviceIndex
public Integer getDeviceIndex()
deviceIndex is the index of the disk address. The valid values are non-negative integers, with the default value 0. For a Machine VM, the deviceIndex for the disks with the same deviceType.adapterType combination should start from 0 and increase consecutively afterwards. Note that for each Machine VM, the Disk.SCSI.0 and CDRom.IDE.0 are reserved to be used by the VM's system. So for dataDisks of Disk.SCSI and CDRom.IDE, the deviceIndex should start from 1.
-
setDeviceIndex
public void setDeviceIndex(Integer deviceIndex)
deviceIndex is the index of the disk address. The valid values are non-negative integers, with the default value 0. For a Machine VM, the deviceIndex for the disks with the same deviceType.adapterType combination should start from 0 and increase consecutively afterwards. Note that for each Machine VM, the Disk.SCSI.0 and CDRom.IDE.0 are reserved to be used by the VM's system. So for dataDisks of Disk.SCSI and CDRom.IDE, the deviceIndex should start from 1.
-
getDeviceType
public String getDeviceType()
deviceType specifies the disk device type. The valid values are "Disk" and "CDRom", and the default is "Disk".
-
setDeviceType
public void setDeviceType(String deviceType)
deviceType specifies the disk device type. The valid values are "Disk" and "CDRom", and the default is "Disk".
-
edit
public NutanixVMDiskDevicePropertiesBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NutanixVMDiskDevicePropertiesBuilder>
-
toBuilder
public NutanixVMDiskDevicePropertiesBuilder toBuilder()
-
-