Class VirtualMachineScaleSetUpdateOSDisk


  • public final class VirtualMachineScaleSetUpdateOSDisk
    extends Object
    Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk.
    • Constructor Detail

      • VirtualMachineScaleSetUpdateOSDisk

        public VirtualMachineScaleSetUpdateOSDisk()
    • Method Detail

      • caching

        public CachingTypes caching()
        Get the caching property: The caching type.
        Returns:
        the caching value.
      • withCaching

        public VirtualMachineScaleSetUpdateOSDisk withCaching​(CachingTypes caching)
        Set the caching property: The caching type.
        Parameters:
        caching - the caching value to set.
        Returns:
        the VirtualMachineScaleSetUpdateOSDisk object itself.
      • writeAcceleratorEnabled

        public Boolean writeAcceleratorEnabled()
        Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.
        Returns:
        the writeAcceleratorEnabled value.
      • withWriteAcceleratorEnabled

        public VirtualMachineScaleSetUpdateOSDisk withWriteAcceleratorEnabled​(Boolean writeAcceleratorEnabled)
        Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.
        Parameters:
        writeAcceleratorEnabled - the writeAcceleratorEnabled value to set.
        Returns:
        the VirtualMachineScaleSetUpdateOSDisk object itself.
      • diskSizeGB

        public Integer diskSizeGB()
        Get the diskSizeGB property: Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
        Returns:
        the diskSizeGB value.
      • withDiskSizeGB

        public VirtualMachineScaleSetUpdateOSDisk withDiskSizeGB​(Integer diskSizeGB)
        Set the diskSizeGB property: Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
        Parameters:
        diskSizeGB - the diskSizeGB value to set.
        Returns:
        the VirtualMachineScaleSetUpdateOSDisk object itself.
      • image

        public VirtualHardDisk image()
        Get the image property: The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.
        Returns:
        the image value.
      • withImage

        public VirtualMachineScaleSetUpdateOSDisk withImage​(VirtualHardDisk image)
        Set the image property: The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.
        Parameters:
        image - the image value to set.
        Returns:
        the VirtualMachineScaleSetUpdateOSDisk object itself.
      • vhdContainers

        public List<String> vhdContainers()
        Get the vhdContainers property: The list of virtual hard disk container uris.
        Returns:
        the vhdContainers value.
      • withVhdContainers

        public VirtualMachineScaleSetUpdateOSDisk withVhdContainers​(List<String> vhdContainers)
        Set the vhdContainers property: The list of virtual hard disk container uris.
        Parameters:
        vhdContainers - the vhdContainers value to set.
        Returns:
        the VirtualMachineScaleSetUpdateOSDisk object itself.
      • validate

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