Class ImageStorageProfile
java.lang.Object
com.azure.resourcemanager.compute.models.ImageStorageProfile
Describes a storage profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.osDisk()Get the osDisk property: Specifies information about the operating system disk used by the virtual machine.voidvalidate()Validates the instance.withDataDisks(List<ImageDataDisk> dataDisks) Set the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.withOsDisk(ImageOSDisk osDisk) Set the osDisk property: Specifies information about the operating system disk used by the virtual machine.withZoneResilient(Boolean zoneResilient) Set the zoneResilient property: Specifies whether an image is zone resilient or not.Get the zoneResilient property: Specifies whether an image is zone resilient or not.
-
Constructor Details
-
ImageStorageProfile
public ImageStorageProfile()Creates an instance of ImageStorageProfile class.
-
-
Method Details
-
osDisk
Get the osDisk property: Specifies information about the operating system disk used by the virtual machine. <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
Set the osDisk property: Specifies information about the operating system disk used by the virtual machine. <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 ImageStorageProfile object itself.
-
dataDisks
Get the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine. <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
Set the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine. <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 ImageStorageProfile object itself.
-
zoneResilient
Get the zoneResilient property: Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).- Returns:
- the zoneResilient value.
-
withZoneResilient
Set the zoneResilient property: Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).- Parameters:
zoneResilient- the zoneResilient value to set.- Returns:
- the ImageStorageProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-