Class VirtualMachineScaleSetUpdateStorageProfile
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachineScaleSetUpdateStorageProfile
-
public final class VirtualMachineScaleSetUpdateStorageProfile extends Object
Describes a virtual machine scale set storage profile.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineScaleSetUpdateStorageProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VirtualMachineScaleSetDataDisk>dataDisks()Get the dataDisks property: The data disks.ImageReferenceimageReference()Get the imageReference property: The image reference.VirtualMachineScaleSetUpdateOSDiskosDisk()Get the osDisk property: The OS disk.voidvalidate()Validates the instance.VirtualMachineScaleSetUpdateStorageProfilewithDataDisks(List<VirtualMachineScaleSetDataDisk> dataDisks)Set the dataDisks property: The data disks.VirtualMachineScaleSetUpdateStorageProfilewithImageReference(ImageReference imageReference)Set the imageReference property: The image reference.VirtualMachineScaleSetUpdateStorageProfilewithOsDisk(VirtualMachineScaleSetUpdateOSDisk osDisk)Set the osDisk property: The OS disk.
-
-
-
Method Detail
-
imageReference
public ImageReference imageReference()
Get the imageReference property: The image reference.- Returns:
- the imageReference value.
-
withImageReference
public VirtualMachineScaleSetUpdateStorageProfile withImageReference(ImageReference imageReference)
Set the imageReference property: The image reference.- Parameters:
imageReference- the imageReference value to set.- Returns:
- the VirtualMachineScaleSetUpdateStorageProfile object itself.
-
osDisk
public VirtualMachineScaleSetUpdateOSDisk 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
public List<VirtualMachineScaleSetDataDisk> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-