Class VirtualMachineReimageParameters

java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineReimageParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineReimageParameters>
Direct Known Subclasses:
VirtualMachineScaleSetVMReimageParameters

public class VirtualMachineReimageParameters extends Object implements com.azure.json.JsonSerializable<VirtualMachineReimageParameters>
Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged.
  • Constructor Details

    • VirtualMachineReimageParameters

      public VirtualMachineReimageParameters()
      Creates an instance of VirtualMachineReimageParameters class.
  • Method Details

    • tempDisk

      public Boolean tempDisk()
      Get the tempDisk property: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk.
      Returns:
      the tempDisk value.
    • withTempDisk

      public VirtualMachineReimageParameters withTempDisk(Boolean tempDisk)
      Set the tempDisk property: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk.
      Parameters:
      tempDisk - the tempDisk value to set.
      Returns:
      the VirtualMachineReimageParameters object itself.
    • exactVersion

      public String exactVersion()
      Get the exactVersion property: Specifies in decimal number, the version the OS disk should be reimaged to. If exact version is not provided, the OS disk is reimaged to the existing version of OS Disk.
      Returns:
      the exactVersion value.
    • withExactVersion

      public VirtualMachineReimageParameters withExactVersion(String exactVersion)
      Set the exactVersion property: Specifies in decimal number, the version the OS disk should be reimaged to. If exact version is not provided, the OS disk is reimaged to the existing version of OS Disk.
      Parameters:
      exactVersion - the exactVersion value to set.
      Returns:
      the VirtualMachineReimageParameters object itself.
    • osProfile

      public OSProfileProvisioningData osProfile()
      Get the osProfile property: Specifies information required for reimaging the non-ephemeral OS disk.
      Returns:
      the osProfile value.
    • withOsProfile

      Set the osProfile property: Specifies information required for reimaging the non-ephemeral OS disk.
      Parameters:
      osProfile - the osProfile value to set.
      Returns:
      the VirtualMachineReimageParameters object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<VirtualMachineReimageParameters>
      Throws:
      IOException
    • fromJson

      public static VirtualMachineReimageParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualMachineReimageParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualMachineReimageParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the VirtualMachineReimageParameters.