Class VirtualMachineScaleSetVMReimageParameters
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineReimageParameters
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetVMReimageParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineReimageParameters>
- Direct Known Subclasses:
VirtualMachineScaleSetReimageParameters
Describes a Virtual Machine Scale Set VM Reimage Parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetVMReimageParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the forceUpdateOSDiskForEphemeral property: Parameter to force update ephemeral OS disk for a virtual machine scale set VM.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetVMReimageParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withExactVersion(String exactVersion) Set the exactVersion property: Specifies in decimal number, the version the OS disk should be reimaged to.withForceUpdateOSDiskForEphemeral(Boolean forceUpdateOSDiskForEphemeral) Set the forceUpdateOSDiskForEphemeral property: Parameter to force update ephemeral OS disk for a virtual machine scale set VM.withOsProfile(OSProfileProvisioningData osProfile) Set the osProfile property: Specifies information required for reimaging the non-ephemeral OS disk.withTempDisk(Boolean tempDisk) Set the tempDisk property: Specifies whether to reimage temp disk.Methods inherited from class com.azure.resourcemanager.compute.models.VirtualMachineReimageParameters
exactVersion, osProfile, tempDiskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualMachineScaleSetVMReimageParameters
public VirtualMachineScaleSetVMReimageParameters()Creates an instance of VirtualMachineScaleSetVMReimageParameters class.
-
-
Method Details
-
forceUpdateOSDiskForEphemeral
Get the forceUpdateOSDiskForEphemeral property: Parameter to force update ephemeral OS disk for a virtual machine scale set VM.- Returns:
- the forceUpdateOSDiskForEphemeral value.
-
withForceUpdateOSDiskForEphemeral
public VirtualMachineScaleSetVMReimageParameters withForceUpdateOSDiskForEphemeral(Boolean forceUpdateOSDiskForEphemeral) Set the forceUpdateOSDiskForEphemeral property: Parameter to force update ephemeral OS disk for a virtual machine scale set VM.- Parameters:
forceUpdateOSDiskForEphemeral- the forceUpdateOSDiskForEphemeral value to set.- Returns:
- the VirtualMachineScaleSetVMReimageParameters object itself.
-
withTempDisk
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.- Overrides:
withTempDiskin classVirtualMachineReimageParameters- Parameters:
tempDisk- the tempDisk value to set.- Returns:
- the VirtualMachineReimageParameters object itself.
-
withExactVersion
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.- Overrides:
withExactVersionin classVirtualMachineReimageParameters- Parameters:
exactVersion- the exactVersion value to set.- Returns:
- the VirtualMachineReimageParameters object itself.
-
withOsProfile
Set the osProfile property: Specifies information required for reimaging the non-ephemeral OS disk.- Overrides:
withOsProfilein classVirtualMachineReimageParameters- Parameters:
osProfile- the osProfile value to set.- Returns:
- the VirtualMachineReimageParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classVirtualMachineReimageParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineReimageParameters>- Overrides:
toJsonin classVirtualMachineReimageParameters- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetVMReimageParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetVMReimageParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetVMReimageParameters 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 VirtualMachineScaleSetVMReimageParameters.
-