Class VirtualMachineScaleSetStorageProfile
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetStorageProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetStorageProfile>
public final class VirtualMachineScaleSetStorageProfile
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetStorageProfile>
Describes a virtual machine scale set storage profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetStorageProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataDisks property: Specifies the parameters that are used to add data disks to the virtual machines in the scale set.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 VirtualMachineScaleSetStorageProfile from the JsonReader.Get the imageReference property: Specifies information about the image to use.osDisk()Get the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDataDisks(List<VirtualMachineScaleSetDataDisk> dataDisks) Set the dataDisks property: Specifies the parameters that are used to add data disks to the virtual machines in the scale set.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: Specifies information about the image to use.Set the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set.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
-
VirtualMachineScaleSetStorageProfile
public VirtualMachineScaleSetStorageProfile()Creates an instance of VirtualMachineScaleSetStorageProfile class.
-
-
Method Details
-
imageReference
Get the imageReference property: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.- Returns:
- the imageReference value.
-
withImageReference
Set the imageReference property: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.- Parameters:
imageReference- the imageReference value to set.- Returns:
- the VirtualMachineScaleSetStorageProfile object itself.
-
osDisk
Get the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).- Returns:
- the osDisk value.
-
withOsDisk
Set the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).- Parameters:
osDisk- the osDisk value to set.- Returns:
- the VirtualMachineScaleSetStorageProfile object itself.
-
dataDisks
Get the dataDisks property: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).- Returns:
- the dataDisks value.
-
withDataDisks
public VirtualMachineScaleSetStorageProfile withDataDisks(List<VirtualMachineScaleSetDataDisk> dataDisks) Set the dataDisks property: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).- Parameters:
dataDisks- the dataDisks value to set.- Returns:
- the VirtualMachineScaleSetStorageProfile object itself.
-
diskControllerType
Get the diskControllerType property: Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01.- Returns:
- the diskControllerType value.
-
withDiskControllerType
public VirtualMachineScaleSetStorageProfile withDiskControllerType(DiskControllerTypes diskControllerType) Set the diskControllerType property: Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01.- Parameters:
diskControllerType- the diskControllerType value to set.- Returns:
- the VirtualMachineScaleSetStorageProfile 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<VirtualMachineScaleSetStorageProfile>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetStorageProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetStorageProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetStorageProfile 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 VirtualMachineScaleSetStorageProfile.
-