Class VirtualDisk


  • public final class VirtualDisk
    extends Object
    Virtual disk model.
    • Constructor Detail

      • VirtualDisk

        public VirtualDisk()
    • Method Detail

      • name

        public String name()
        Get the name property: Gets or sets the name of the disk.
        Returns:
        the name value.
      • withName

        public VirtualDisk withName​(String name)
        Set the name property: Gets or sets the name of the disk.
        Parameters:
        name - the name value to set.
        Returns:
        the VirtualDisk object itself.
      • displayName

        public String displayName()
        Get the displayName property: Gets the display name of the virtual disk as shown in the vmmServer. This is the fallback label for a disk when the name is not set.
        Returns:
        the displayName value.
      • diskId

        public String diskId()
        Get the diskId property: Gets or sets the disk id.
        Returns:
        the diskId value.
      • withDiskId

        public VirtualDisk withDiskId​(String diskId)
        Set the diskId property: Gets or sets the disk id.
        Parameters:
        diskId - the diskId value to set.
        Returns:
        the VirtualDisk object itself.
      • diskSizeGB

        public Integer diskSizeGB()
        Get the diskSizeGB property: Gets or sets the disk total size.
        Returns:
        the diskSizeGB value.
      • withDiskSizeGB

        public VirtualDisk withDiskSizeGB​(Integer diskSizeGB)
        Set the diskSizeGB property: Gets or sets the disk total size.
        Parameters:
        diskSizeGB - the diskSizeGB value to set.
        Returns:
        the VirtualDisk object itself.
      • maxDiskSizeGB

        public Integer maxDiskSizeGB()
        Get the maxDiskSizeGB property: Gets or sets the max disk size.
        Returns:
        the maxDiskSizeGB value.
      • bus

        public Integer bus()
        Get the bus property: Gets or sets the disk bus.
        Returns:
        the bus value.
      • withBus

        public VirtualDisk withBus​(Integer bus)
        Set the bus property: Gets or sets the disk bus.
        Parameters:
        bus - the bus value to set.
        Returns:
        the VirtualDisk object itself.
      • lun

        public Integer lun()
        Get the lun property: Gets or sets the disk lun.
        Returns:
        the lun value.
      • withLun

        public VirtualDisk withLun​(Integer lun)
        Set the lun property: Gets or sets the disk lun.
        Parameters:
        lun - the lun value to set.
        Returns:
        the VirtualDisk object itself.
      • busType

        public String busType()
        Get the busType property: Gets or sets the disk bus type.
        Returns:
        the busType value.
      • withBusType

        public VirtualDisk withBusType​(String busType)
        Set the busType property: Gets or sets the disk bus type.
        Parameters:
        busType - the busType value to set.
        Returns:
        the VirtualDisk object itself.
      • vhdType

        public String vhdType()
        Get the vhdType property: Gets or sets the disk vhd type.
        Returns:
        the vhdType value.
      • withVhdType

        public VirtualDisk withVhdType​(String vhdType)
        Set the vhdType property: Gets or sets the disk vhd type.
        Parameters:
        vhdType - the vhdType value to set.
        Returns:
        the VirtualDisk object itself.
      • volumeType

        public String volumeType()
        Get the volumeType property: Gets or sets the disk volume type.
        Returns:
        the volumeType value.
      • vhdFormatType

        public String vhdFormatType()
        Get the vhdFormatType property: Gets the disk vhd format type.
        Returns:
        the vhdFormatType value.
      • templateDiskId

        public String templateDiskId()
        Get the templateDiskId property: Gets or sets the disk id in the template.
        Returns:
        the templateDiskId value.
      • withTemplateDiskId

        public VirtualDisk withTemplateDiskId​(String templateDiskId)
        Set the templateDiskId property: Gets or sets the disk id in the template.
        Parameters:
        templateDiskId - the templateDiskId value to set.
        Returns:
        the VirtualDisk object itself.
      • storageQoSPolicy

        public StorageQoSPolicyDetails storageQoSPolicy()
        Get the storageQoSPolicy property: The QoS policy for the disk.
        Returns:
        the storageQoSPolicy value.
      • withStorageQoSPolicy

        public VirtualDisk withStorageQoSPolicy​(StorageQoSPolicyDetails storageQoSPolicy)
        Set the storageQoSPolicy property: The QoS policy for the disk.
        Parameters:
        storageQoSPolicy - the storageQoSPolicy value to set.
        Returns:
        the VirtualDisk object itself.
      • createDiffDisk

        public CreateDiffDisk createDiffDisk()
        Get the createDiffDisk property: Gets or sets a value indicating diff disk.
        Returns:
        the createDiffDisk value.
      • withCreateDiffDisk

        public VirtualDisk withCreateDiffDisk​(CreateDiffDisk createDiffDisk)
        Set the createDiffDisk property: Gets or sets a value indicating diff disk.
        Parameters:
        createDiffDisk - the createDiffDisk value to set.
        Returns:
        the VirtualDisk object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.