Class VirtualMachineScaleSetUpdateStorageProfile
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetUpdateStorageProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetUpdateStorageProfile>
public final class VirtualMachineScaleSetUpdateStorageProfile
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetUpdateStorageProfile>
Describes a virtual machine scale set storage profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetUpdateStorageProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataDisks property: The data disks.Get the diskControllerType property: Specifies the disk controller type configured for the virtual machines in the scale set.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetUpdateStorageProfile from the JsonReader.Get the imageReference property: The image reference.osDisk()Get the osDisk property: The OS disk.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDataDisks(List<VirtualMachineScaleSetDataDisk> dataDisks) Set the dataDisks property: The data disks.withDiskControllerType(DiskControllerTypes diskControllerType) Set the diskControllerType property: Specifies the disk controller type configured for the virtual machines in the scale set.withImageReference(ImageReference imageReference) Set the imageReference property: The image reference.Set the osDisk property: The OS disk.Methods inherited from class 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
-
VirtualMachineScaleSetUpdateStorageProfile
public VirtualMachineScaleSetUpdateStorageProfile()Creates an instance of VirtualMachineScaleSetUpdateStorageProfile class.
-
-
Method Details
-
imageReference
Get the imageReference property: The image reference.- Returns:
- the imageReference value.
-
withImageReference
Set the imageReference property: The image reference.- Parameters:
imageReference- the imageReference value to set.- Returns:
- the VirtualMachineScaleSetUpdateStorageProfile object itself.
-
osDisk
Get the osDisk property: The OS disk.- Returns:
- the osDisk value.
-
withOsDisk
public VirtualMachineScaleSetUpdateStorageProfile withOsDisk(VirtualMachineScaleSetUpdateOSDisk osDisk) Set the osDisk property: The OS disk.- Parameters:
osDisk- the osDisk value to set.- Returns:
- the VirtualMachineScaleSetUpdateStorageProfile object itself.
-
dataDisks
Get the dataDisks property: The data disks.- Returns:
- the dataDisks value.
-
withDataDisks
public VirtualMachineScaleSetUpdateStorageProfile withDataDisks(List<VirtualMachineScaleSetDataDisk> dataDisks) Set the dataDisks property: The data disks.- Parameters:
dataDisks- the dataDisks value to set.- Returns:
- the VirtualMachineScaleSetUpdateStorageProfile object itself.
-
diskControllerType
Get the diskControllerType property: Specifies the disk controller type configured for the virtual machines in the scale set. **Note:** You need to deallocate the virtual machines in the scale set before updating its disk controller type based on the upgrade mode configured for the scale set. Minimum api-version: 2022-08-01.- Returns:
- the diskControllerType value.
-
withDiskControllerType
public VirtualMachineScaleSetUpdateStorageProfile withDiskControllerType(DiskControllerTypes diskControllerType) Set the diskControllerType property: Specifies the disk controller type configured for the virtual machines in the scale set. **Note:** You need to deallocate the virtual machines in the scale set before updating its disk controller type based on the upgrade mode configured for the scale set. Minimum api-version: 2022-08-01.- Parameters:
diskControllerType- the diskControllerType value to set.- Returns:
- the VirtualMachineScaleSetUpdateStorageProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineScaleSetUpdateStorageProfile>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetUpdateStorageProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetUpdateStorageProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetUpdateStorageProfile 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 VirtualMachineScaleSetUpdateStorageProfile.
-