Class VirtualMachineScaleSetStorageProfile
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachineScaleSetStorageProfile
-
public final class VirtualMachineScaleSetStorageProfile extends Object
Describes a virtual machine scale set storage profile.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineScaleSetStorageProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VirtualMachineScaleSetDataDisk>dataDisks()Get the dataDisks property: Specifies the parameters that are used to add data disks to the virtual machines in the scale set.ImageReferenceimageReference()Get the imageReference property: Specifies information about the image to use.VirtualMachineScaleSetOSDiskosDisk()Get the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set.voidvalidate()Validates the instance.VirtualMachineScaleSetStorageProfilewithDataDisks(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.VirtualMachineScaleSetStorageProfilewithImageReference(ImageReference imageReference)Set the imageReference property: Specifies information about the image to use.VirtualMachineScaleSetStorageProfilewithOsDisk(VirtualMachineScaleSetOSDisk osDisk)Set the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set.
-
-
-
Method Detail
-
imageReference
public ImageReference 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
public VirtualMachineScaleSetStorageProfile withImageReference(ImageReference imageReference)
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
public VirtualMachineScaleSetOSDisk osDisk()
Get the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> 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
public VirtualMachineScaleSetStorageProfile withOsDisk(VirtualMachineScaleSetOSDisk osDisk)
Set the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> 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
public List<VirtualMachineScaleSetDataDisk> dataDisks()
Get the dataDisks property: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> 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. <br><br> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-